From db64ff9ee8f3bcdd0168c51a14dadbb1fe977c18 Mon Sep 17 00:00:00 2001 From: Dingmeng Xue Date: Tue, 16 Apr 2024 22:44:43 +0800 Subject: [PATCH] update API version to 2024-05-01-preview (#7511) --- src/spring/azext_spring/_app_factory.py | 2 +- src/spring/azext_spring/_build_service.py | 2 +- .../azext_spring/_buildservices_factory.py | 2 +- src/spring/azext_spring/_client_factory.py | 2 +- .../azext_spring/_deployment_factory.py | 2 +- .../_deployment_source_factory.py | 2 +- src/spring/azext_spring/_params.py | 2 +- src/spring/azext_spring/_tanzu_component.py | 4 +- src/spring/azext_spring/_util_enterprise.py | 2 +- src/spring/azext_spring/_utils.py | 2 +- src/spring/azext_spring/_validators.py | 2 +- .../azext_spring/_validators_enterprise.py | 4 +- src/spring/azext_spring/api_portal.py | 2 +- src/spring/azext_spring/apm.py | 2 +- .../azext_spring/app_managed_identity.py | 2 +- .../azext_spring/application_accelerator.py | 4 +- .../application_configuration_service.py | 4 +- .../azext_spring/application_live_view.py | 2 +- src/spring/azext_spring/buildpack_binding.py | 2 +- src/spring/azext_spring/custom.py | 2 +- src/spring/azext_spring/dev_tool_portal.py | 2 +- src/spring/azext_spring/gateway.py | 2 +- src/spring/azext_spring/spring_instance.py | 2 +- .../recordings/test_app_identity_crud.yaml | 116 +- .../test_app_identity_force_set.yaml | 112 +- .../test_create_app_with_assign_identity.yaml | 38 +- .../test_create_app_with_both_identity.yaml | 38 +- .../test_create_app_with_system_assigned.yaml | 38 +- .../test_create_app_with_user_identity.yaml | 38 +- ...app_managed_identity_force_set_scenario.py | 2 +- .../test_app_managed_identity_remove.py | 2 +- .../test_app_managed_identity_scenario.py | 2 +- ..._create_app_with_both_identity_scenario.py | 2 +- ...reate_app_with_system_identity_scenario.py | 2 +- ..._create_app_with_user_identity_scenario.py | 2 +- .../tests/latest/custom_preparers.py | 6 +- .../tests/latest/recordings/test_Builder.yaml | 736 +- .../latest/recordings/test_api_portal.yaml | 46 +- .../tests/latest/recordings/test_apm.yaml | 804 +- .../latest/recordings/test_app_connect.yaml | 2 +- ...t_app_create_binding_tanzu_components.yaml | 332 +- .../latest/recordings/test_app_crud.yaml | 1007 +- .../latest/recordings/test_app_crud_1.yaml | 641 +- .../recordings/test_app_deploy_container.yaml | 76 +- .../test_app_deploy_container_command.yaml | 74 +- .../latest/recordings/test_app_i2a_tls.yaml | 112 +- .../test_application_accelerator.yaml | 1927 +-- ...est_application_configuration_service.yaml | 2769 ++-- .../test_asc_app_insights_update.yaml | 366 +- .../latest/recordings/test_asc_update.yaml | 178 +- .../latest/recordings/test_az_asc_create.yaml | 56 +- .../recordings/test_bind_cert_to_domain.yaml | 136 +- .../test_blue_green_deployment.yaml | 1041 +- .../tests/latest/recordings/test_build.yaml | 26 +- .../latest/recordings/test_build_service.yaml | 4 +- .../recordings/test_buildpack_binding.yaml | 510 +- .../latest/recordings/test_client_auth.yaml | 60 +- .../recordings/test_container_registry.yaml | 16 +- .../test_create_asc_heavy_cases.yaml | 382 +- .../test_create_asc_with_ai_basic_case.yaml | 130 +- .../test_create_asc_without_ai_cases.yaml | 78 +- .../test_customized_accelerator.yaml | 551 +- ...stomized_accelerator_of_fragment_type.yaml | 312 +- .../latest/recordings/test_deploy_app.yaml | 1110 +- .../latest/recordings/test_deploy_app_1.yaml | 792 +- .../test_enable_planned_maintenance.yaml | 160 +- ...h_virtualnetwork_dns_settings_service.yaml | 34 +- .../tests/latest/recordings/test_gateway.yaml | 306 +- .../test_generate_deployment_dump.yaml | 724 +- .../test_list_support_server_versions.yaml | 40 +- .../latest/recordings/test_live_view.yaml | 716 +- .../test_load_public_cert_to_app.yaml | 112 +- .../recordings/test_persistent_storage.yaml | 180 +- .../test_predefined_accelerator.yaml | 444 +- .../recordings/test_remote_debugging.yaml | 62 +- .../recordings/test_response_cache.yaml | 362 +- .../recordings/test_service_registry.yaml | 1278 +- .../test_stop_and_start_service.yaml | 104 +- .../test_try_out_api_for_api_portal.yaml | 106 +- .../recordings/test_vnet_public_endpoint.yaml | 86 +- .../tests/latest/test_asa_accelerator.py | 14 +- .../tests/latest/test_asa_api_portal.py | 2 +- .../azext_spring/tests/latest/test_asa_app.py | 2 +- .../test_asa_application_accelerator.py | 2 +- ...lication_configuration_service_scenario.py | 56 +- .../latest/test_asa_application_live_view.py | 2 +- .../tests/latest/test_asa_certificate.py | 2 +- .../tests/latest/test_asa_create.py | 2 +- .../tests/latest/test_asa_service_registry.py | 4 +- .../appplatform/v2020_07_01/__init__.py | 26 - .../_app_platform_management_client.py | 168 - .../appplatform/v2020_07_01/_configuration.py | 66 - .../appplatform/v2020_07_01/_patch.py | 20 - .../appplatform/v2020_07_01/_vendor.py | 16 - .../appplatform/v2020_07_01/_version.py | 9 - .../appplatform/v2020_07_01/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 172 - .../v2020_07_01/aio/_configuration.py | 66 - .../appplatform/v2020_07_01/aio/_patch.py | 20 - .../v2020_07_01/aio/operations/__init__.py | 39 - .../aio/operations/_apps_operations.py | 946 -- .../aio/operations/_bindings_operations.py | 769 -- .../operations/_certificates_operations.py | 526 - .../operations/_config_servers_operations.py | 709 - .../operations/_custom_domains_operations.py | 772 -- .../aio/operations/_deployments_operations.py | 1260 -- .../_monitoring_settings_operations.py | 515 - .../v2020_07_01/aio/operations/_operations.py | 130 - .../v2020_07_01/aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 100 - .../aio/operations/_services_operations.py | 1199 -- .../aio/operations/_skus_operations.py | 131 - .../v2020_07_01/models/__init__.py | 187 - .../_app_platform_management_client_enums.py | 157 - .../v2020_07_01/models/_models_py3.py | 2984 ----- .../appplatform/v2020_07_01/models/_patch.py | 20 - .../v2020_07_01/operations/__init__.py | 39 - .../operations/_apps_operations.py | 1168 -- .../operations/_bindings_operations.py | 932 -- .../operations/_certificates_operations.py | 649 - .../operations/_config_servers_operations.py | 836 -- .../operations/_custom_domains_operations.py | 935 -- .../operations/_deployments_operations.py | 1633 --- .../_monitoring_settings_operations.py | 607 - .../v2020_07_01/operations/_operations.py | 152 - .../v2020_07_01/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 122 - .../operations/_services_operations.py | 1522 --- .../operations/_skus_operations.py | 157 - .../v2020_11_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 178 - .../v2020_11_01_preview/_configuration.py | 66 - .../appplatform/v2020_11_01_preview/_patch.py | 20 - .../v2020_11_01_preview/_vendor.py | 16 - .../v2020_11_01_preview/_version.py | 9 - .../v2020_11_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 180 - .../v2020_11_01_preview/aio/_configuration.py | 66 - .../v2020_11_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 39 - .../aio/operations/_apps_operations.py | 967 -- .../aio/operations/_bindings_operations.py | 787 -- .../operations/_certificates_operations.py | 539 - .../operations/_config_servers_operations.py | 726 - .../operations/_custom_domains_operations.py | 788 -- .../aio/operations/_deployments_operations.py | 1294 -- .../_monitoring_settings_operations.py | 525 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../aio/operations/_services_operations.py | 1227 -- .../aio/operations/_skus_operations.py | 133 - .../v2020_11_01_preview/models/__init__.py | 189 - .../_app_platform_management_client_enums.py | 157 - .../v2020_11_01_preview/models/_models_py3.py | 3073 ----- .../v2020_11_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 39 - .../operations/_apps_operations.py | 1196 -- .../operations/_bindings_operations.py | 950 -- .../operations/_certificates_operations.py | 662 - .../operations/_config_servers_operations.py | 853 -- .../operations/_custom_domains_operations.py | 951 -- .../operations/_deployments_operations.py | 1667 --- .../_monitoring_settings_operations.py | 617 - .../operations/_operations.py | 154 - .../v2020_11_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../operations/_services_operations.py | 1550 --- .../operations/_skus_operations.py | 160 - .../v2021_06_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 178 - .../v2021_06_01_preview/_configuration.py | 66 - .../appplatform/v2021_06_01_preview/_patch.py | 20 - .../v2021_06_01_preview/_vendor.py | 16 - .../v2021_06_01_preview/_version.py | 9 - .../v2021_06_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 180 - .../v2021_06_01_preview/aio/_configuration.py | 66 - .../v2021_06_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 39 - .../aio/operations/_apps_operations.py | 967 -- .../aio/operations/_bindings_operations.py | 787 -- .../operations/_certificates_operations.py | 539 - .../operations/_config_servers_operations.py | 726 - .../operations/_custom_domains_operations.py | 788 -- .../aio/operations/_deployments_operations.py | 1294 -- .../_monitoring_settings_operations.py | 525 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../aio/operations/_services_operations.py | 1227 -- .../aio/operations/_skus_operations.py | 133 - .../v2021_06_01_preview/models/__init__.py | 195 - .../_app_platform_management_client_enums.py | 158 - .../v2021_06_01_preview/models/_models_py3.py | 3216 ----- .../v2021_06_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 39 - .../operations/_apps_operations.py | 1196 -- .../operations/_bindings_operations.py | 950 -- .../operations/_certificates_operations.py | 662 - .../operations/_config_servers_operations.py | 853 -- .../operations/_custom_domains_operations.py | 951 -- .../operations/_deployments_operations.py | 1667 --- .../_monitoring_settings_operations.py | 617 - .../operations/_operations.py | 154 - .../v2021_06_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../operations/_services_operations.py | 1550 --- .../operations/_skus_operations.py | 160 - .../v2021_09_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 184 - .../v2021_09_01_preview/_configuration.py | 66 - .../appplatform/v2021_09_01_preview/_patch.py | 20 - .../v2021_09_01_preview/_vendor.py | 16 - .../v2021_09_01_preview/_version.py | 9 - .../v2021_09_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 186 - .../v2021_09_01_preview/aio/_configuration.py | 66 - .../v2021_09_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 41 - .../aio/operations/_apps_operations.py | 967 -- .../aio/operations/_bindings_operations.py | 787 -- .../operations/_certificates_operations.py | 539 - .../operations/_config_servers_operations.py | 726 - .../operations/_custom_domains_operations.py | 788 -- .../aio/operations/_deployments_operations.py | 1924 --- .../_monitoring_settings_operations.py | 525 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../aio/operations/_services_operations.py | 1431 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 538 - .../v2021_09_01_preview/models/__init__.py | 229 - .../_app_platform_management_client_enums.py | 188 - .../v2021_09_01_preview/models/_models_py3.py | 3849 ------ .../v2021_09_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 41 - .../operations/_apps_operations.py | 1196 -- .../operations/_bindings_operations.py | 950 -- .../operations/_certificates_operations.py | 662 - .../operations/_config_servers_operations.py | 853 -- .../operations/_custom_domains_operations.py | 951 -- .../operations/_deployments_operations.py | 2414 ---- .../_monitoring_settings_operations.py | 617 - .../operations/_operations.py | 154 - .../v2021_09_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../operations/_services_operations.py | 1810 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 659 - .../v2022_01_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 260 - .../v2022_01_01_preview/_configuration.py | 66 - .../appplatform/v2022_01_01_preview/_patch.py | 20 - .../v2022_01_01_preview/_vendor.py | 16 - .../v2022_01_01_preview/_version.py | 9 - .../v2022_01_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 262 - .../v2022_01_01_preview/aio/_configuration.py | 66 - .../v2022_01_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 561 - .../aio/operations/_api_portals_operations.py | 681 - .../aio/operations/_apps_operations.py | 1183 -- .../aio/operations/_bindings_operations.py | 787 -- .../_build_service_agent_pool_operations.py | 447 - .../_build_service_builder_operations.py | 557 - .../operations/_build_service_operations.py | 1100 -- .../_buildpack_binding_operations.py | 601 - .../operations/_certificates_operations.py | 539 - .../operations/_config_servers_operations.py | 726 - .../_configuration_services_operations.py | 754 -- .../operations/_custom_domains_operations.py | 788 -- .../aio/operations/_deployments_operations.py | 1924 --- .../_gateway_custom_domains_operations.py | 561 - .../_gateway_route_configs_operations.py | 564 - .../aio/operations/_gateways_operations.py | 681 - .../_monitoring_settings_operations.py | 525 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 442 - .../aio/operations/_services_operations.py | 1431 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 538 - .../v2022_01_01_preview/models/__init__.py | 411 - .../_app_platform_management_client_enums.py | 287 - .../v2022_01_01_preview/models/_models_py3.py | 7053 ---------- .../v2022_01_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 705 - .../operations/_api_portals_operations.py | 836 -- .../operations/_apps_operations.py | 1445 -- .../operations/_bindings_operations.py | 950 -- .../_build_service_agent_pool_operations.py | 555 - .../_build_service_builder_operations.py | 701 - .../operations/_build_service_operations.py | 1551 --- .../_buildpack_binding_operations.py | 757 -- .../operations/_certificates_operations.py | 662 - .../operations/_config_servers_operations.py | 853 -- .../_configuration_services_operations.py | 911 -- .../operations/_custom_domains_operations.py | 951 -- .../operations/_deployments_operations.py | 2414 ---- .../_gateway_custom_domains_operations.py | 705 - .../_gateway_route_configs_operations.py | 708 - .../operations/_gateways_operations.py | 836 -- .../_monitoring_settings_operations.py | 617 - .../operations/_operations.py | 154 - .../v2022_01_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 562 - .../operations/_services_operations.py | 1810 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 659 - .../v2022_03_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 260 - .../v2022_03_01_preview/_configuration.py | 66 - .../appplatform/v2022_03_01_preview/_patch.py | 20 - .../v2022_03_01_preview/_vendor.py | 16 - .../v2022_03_01_preview/_version.py | 9 - .../v2022_03_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 262 - .../v2022_03_01_preview/aio/_configuration.py | 66 - .../v2022_03_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 561 - .../aio/operations/_api_portals_operations.py | 681 - .../aio/operations/_apps_operations.py | 1183 -- .../aio/operations/_bindings_operations.py | 787 -- .../_build_service_agent_pool_operations.py | 447 - .../_build_service_builder_operations.py | 557 - .../operations/_build_service_operations.py | 1100 -- .../_buildpack_binding_operations.py | 601 - .../operations/_certificates_operations.py | 539 - .../operations/_config_servers_operations.py | 726 - .../_configuration_services_operations.py | 754 -- .../operations/_custom_domains_operations.py | 788 -- .../aio/operations/_deployments_operations.py | 1924 --- .../_gateway_custom_domains_operations.py | 561 - .../_gateway_route_configs_operations.py | 564 - .../aio/operations/_gateways_operations.py | 681 - .../_monitoring_settings_operations.py | 525 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 442 - .../aio/operations/_services_operations.py | 1431 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 538 - .../v2022_03_01_preview/models/__init__.py | 413 - .../_app_platform_management_client_enums.py | 287 - .../v2022_03_01_preview/models/_models_py3.py | 7097 ---------- .../v2022_03_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 705 - .../operations/_api_portals_operations.py | 836 -- .../operations/_apps_operations.py | 1445 -- .../operations/_bindings_operations.py | 950 -- .../_build_service_agent_pool_operations.py | 555 - .../_build_service_builder_operations.py | 701 - .../operations/_build_service_operations.py | 1551 --- .../_buildpack_binding_operations.py | 757 -- .../operations/_certificates_operations.py | 662 - .../operations/_config_servers_operations.py | 853 -- .../_configuration_services_operations.py | 911 -- .../operations/_custom_domains_operations.py | 951 -- .../operations/_deployments_operations.py | 2414 ---- .../_gateway_custom_domains_operations.py | 705 - .../_gateway_route_configs_operations.py | 708 - .../operations/_gateways_operations.py | 836 -- .../_monitoring_settings_operations.py | 617 - .../operations/_operations.py | 154 - .../v2022_03_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 562 - .../operations/_services_operations.py | 1810 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 659 - .../appplatform/v2022_04_01/__init__.py | 26 - .../_app_platform_management_client.py | 209 - .../appplatform/v2022_04_01/_configuration.py | 66 - .../appplatform/v2022_04_01/_patch.py | 20 - .../appplatform/v2022_04_01/_vendor.py | 16 - .../appplatform/v2022_04_01/_version.py | 9 - .../appplatform/v2022_04_01/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 214 - .../v2022_04_01/aio/_configuration.py | 66 - .../appplatform/v2022_04_01/aio/_patch.py | 20 - .../v2022_04_01/aio/operations/__init__.py | 51 - .../aio/operations/_apps_operations.py | 1146 -- .../aio/operations/_bindings_operations.py | 760 -- .../_build_service_agent_pool_operations.py | 436 - .../_build_service_builder_operations.py | 538 - .../operations/_build_service_operations.py | 1074 -- .../_buildpack_binding_operations.py | 582 - .../operations/_certificates_operations.py | 520 - .../operations/_config_servers_operations.py | 703 - .../_configuration_services_operations.py | 732 -- .../operations/_custom_domains_operations.py | 763 -- .../aio/operations/_deployments_operations.py | 1848 --- .../_monitoring_settings_operations.py | 509 - .../v2022_04_01/aio/operations/_operations.py | 130 - .../v2022_04_01/aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 100 - .../_service_registries_operations.py | 424 - .../aio/operations/_services_operations.py | 1190 -- .../aio/operations/_skus_operations.py | 131 - .../v2022_04_01/models/__init__.py | 329 - .../_app_platform_management_client_enums.py | 248 - .../v2022_04_01/models/_models_py3.py | 5410 -------- .../appplatform/v2022_04_01/models/_patch.py | 20 - .../v2022_04_01/operations/__init__.py | 51 - .../operations/_apps_operations.py | 1402 -- .../operations/_bindings_operations.py | 926 -- .../_build_service_agent_pool_operations.py | 545 - .../_build_service_builder_operations.py | 684 - .../operations/_build_service_operations.py | 1523 --- .../_buildpack_binding_operations.py | 740 -- .../operations/_certificates_operations.py | 645 - .../operations/_config_servers_operations.py | 832 -- .../_configuration_services_operations.py | 891 -- .../operations/_custom_domains_operations.py | 929 -- .../operations/_deployments_operations.py | 2347 ---- .../_monitoring_settings_operations.py | 603 - .../v2022_04_01/operations/_operations.py | 152 - .../v2022_04_01/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 122 - .../_service_registries_operations.py | 546 - .../operations/_services_operations.py | 1516 --- .../operations/_skus_operations.py | 157 - .../v2022_05_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 260 - .../v2022_05_01_preview/_configuration.py | 66 - .../appplatform/v2022_05_01_preview/_patch.py | 20 - .../v2022_05_01_preview/_vendor.py | 16 - .../v2022_05_01_preview/_version.py | 9 - .../v2022_05_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 262 - .../v2022_05_01_preview/aio/_configuration.py | 66 - .../v2022_05_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 551 - .../operations/_build_service_operations.py | 1100 -- .../_buildpack_binding_operations.py | 595 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 748 -- .../operations/_custom_domains_operations.py | 779 -- .../aio/operations/_deployments_operations.py | 1897 --- .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 675 - .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 1416 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2022_05_01_preview/models/__init__.py | 443 - .../_app_platform_management_client_enums.py | 329 - .../v2022_05_01_preview/models/_models_py3.py | 7638 ----------- .../v2022_05_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 697 - .../operations/_build_service_operations.py | 1551 --- .../_buildpack_binding_operations.py | 753 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 907 -- .../operations/_custom_domains_operations.py | 945 -- .../operations/_deployments_operations.py | 2396 ---- .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 832 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2022_05_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 1800 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2022_09_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 260 - .../v2022_09_01_preview/_configuration.py | 66 - .../appplatform/v2022_09_01_preview/_patch.py | 20 - .../v2022_09_01_preview/_vendor.py | 16 - .../v2022_09_01_preview/_version.py | 9 - .../v2022_09_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 262 - .../v2022_09_01_preview/aio/_configuration.py | 66 - .../v2022_09_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1100 -- .../_buildpack_binding_operations.py | 595 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 748 -- .../operations/_custom_domains_operations.py | 779 -- .../aio/operations/_deployments_operations.py | 2315 ---- .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 675 - .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 1416 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2022_09_01_preview/models/__init__.py | 459 - .../_app_platform_management_client_enums.py | 350 - .../v2022_09_01_preview/models/_models_py3.py | 7817 ----------- .../v2022_09_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1551 --- .../_buildpack_binding_operations.py | 753 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 907 -- .../operations/_custom_domains_operations.py | 945 -- .../operations/_deployments_operations.py | 2928 ----- .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 832 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2022_09_01_preview/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 1800 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2022_11_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 295 - .../v2022_11_01_preview/_configuration.py | 66 - .../appplatform/v2022_11_01_preview/_patch.py | 20 - .../v2022_11_01_preview/_vendor.py | 16 - .../v2022_11_01_preview/_version.py | 9 - .../v2022_11_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 297 - .../v2022_11_01_preview/aio/_configuration.py | 66 - .../v2022_11_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 73 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1100 -- .../_buildpack_binding_operations.py | 595 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 748 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2315 ---- .../_dev_tool_portals_operations.py | 531 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 739 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 1416 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2022_11_01_preview/models/__init__.py | 545 - .../_app_platform_management_client_enums.py | 439 - .../v2022_11_01_preview/models/_models_py3.py | 9260 ------------- .../v2022_11_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 73 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1551 --- .../_buildpack_binding_operations.py | 753 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 907 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2928 ----- .../_dev_tool_portals_operations.py | 656 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 927 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2022_11_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 1800 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../appplatform/v2022_12_01/__init__.py | 26 - .../_app_platform_management_client.py | 244 - .../appplatform/v2022_12_01/_configuration.py | 66 - .../appplatform/v2022_12_01/_patch.py | 20 - .../appplatform/v2022_12_01/_vendor.py | 16 - .../appplatform/v2022_12_01/_version.py | 9 - .../appplatform/v2022_12_01/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 249 - .../v2022_12_01/aio/_configuration.py | 66 - .../appplatform/v2022_12_01/aio/_patch.py | 20 - .../v2022_12_01/aio/operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 543 - .../aio/operations/_api_portals_operations.py | 660 - .../aio/operations/_apps_operations.py | 1146 -- .../aio/operations/_bindings_operations.py | 760 -- .../_build_service_agent_pool_operations.py | 436 - .../_build_service_builder_operations.py | 603 - .../operations/_build_service_operations.py | 1074 -- .../_buildpack_binding_operations.py | 582 - .../operations/_certificates_operations.py | 520 - .../operations/_config_servers_operations.py | 703 - .../_configuration_services_operations.py | 732 -- .../operations/_custom_domains_operations.py | 763 -- .../aio/operations/_deployments_operations.py | 2256 ---- .../_gateway_custom_domains_operations.py | 543 - .../_gateway_route_configs_operations.py | 546 - .../aio/operations/_gateways_operations.py | 659 - .../_monitoring_settings_operations.py | 509 - .../v2022_12_01/aio/operations/_operations.py | 130 - .../v2022_12_01/aio/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 100 - .../_service_registries_operations.py | 424 - .../aio/operations/_services_operations.py | 1380 -- .../aio/operations/_skus_operations.py | 131 - .../aio/operations/_storages_operations.py | 519 - .../v2022_12_01/models/__init__.py | 457 - .../_app_platform_management_client_enums.py | 350 - .../v2022_12_01/models/_models_py3.py | 7689 ----------- .../appplatform/v2022_12_01/models/_patch.py | 20 - .../v2022_12_01/operations/__init__.py | 63 - .../_api_portal_custom_domains_operations.py | 689 - .../operations/_api_portals_operations.py | 817 -- .../operations/_apps_operations.py | 1402 -- .../operations/_bindings_operations.py | 926 -- .../_build_service_agent_pool_operations.py | 545 - .../_build_service_builder_operations.py | 786 -- .../operations/_build_service_operations.py | 1523 --- .../_buildpack_binding_operations.py | 740 -- .../operations/_certificates_operations.py | 645 - .../operations/_config_servers_operations.py | 832 -- .../_configuration_services_operations.py | 891 -- .../operations/_custom_domains_operations.py | 929 -- .../operations/_deployments_operations.py | 2869 ---- .../_gateway_custom_domains_operations.py | 689 - .../_gateway_route_configs_operations.py | 692 - .../operations/_gateways_operations.py | 816 -- .../_monitoring_settings_operations.py | 603 - .../v2022_12_01/operations/_operations.py | 152 - .../v2022_12_01/operations/_patch.py | 20 - .../_runtime_versions_operations.py | 122 - .../_service_registries_operations.py | 546 - .../operations/_services_operations.py | 1764 --- .../operations/_skus_operations.py | 157 - .../operations/_storages_operations.py | 642 - .../v2023_01_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 295 - .../v2023_01_01_preview/_configuration.py | 66 - .../appplatform/v2023_01_01_preview/_patch.py | 20 - .../v2023_01_01_preview/_vendor.py | 16 - .../v2023_01_01_preview/_version.py | 9 - .../v2023_01_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 297 - .../v2023_01_01_preview/aio/_configuration.py | 66 - .../v2023_01_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 73 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1100 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 748 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2315 ---- .../_dev_tool_portals_operations.py | 531 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 955 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 1416 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2023_01_01_preview/models/__init__.py | 563 - .../_app_platform_management_client_enums.py | 439 - .../v2023_01_01_preview/models/_models_py3.py | 9627 -------------- .../v2023_01_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 73 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1551 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 907 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2928 ----- .../_dev_tool_portals_operations.py | 656 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1177 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2023_01_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 1800 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2023_03_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 302 - .../v2023_03_01_preview/_configuration.py | 66 - .../appplatform/v2023_03_01_preview/_patch.py | 20 - .../v2023_03_01_preview/_vendor.py | 16 - .../v2023_03_01_preview/_version.py | 9 - .../v2023_03_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 304 - .../v2023_03_01_preview/aio/_configuration.py | 66 - .../v2023_03_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 75 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1431 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 748 -- .../_container_registries_operations.py | 428 - .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2315 ---- .../_dev_tool_portals_operations.py | 531 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 1066 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 1416 -- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2023_03_01_preview/models/__init__.py | 579 - .../_app_platform_management_client_enums.py | 458 - .../v2023_03_01_preview/models/_models_py3.py | 9899 -------------- .../v2023_03_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 75 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1953 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 907 -- .../_container_registries_operations.py | 526 - .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2928 ----- .../_dev_tool_portals_operations.py | 656 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1319 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2023_03_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 1800 --- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2023_05_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 313 - .../v2023_05_01_preview/_configuration.py | 66 - .../appplatform/v2023_05_01_preview/_patch.py | 20 - .../v2023_05_01_preview/_vendor.py | 16 - .../v2023_05_01_preview/_version.py | 9 - .../v2023_05_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 315 - .../v2023_05_01_preview/aio/_configuration.py | 66 - .../v2023_05_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apms_operations.py | 596 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1431 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 748 -- .../_container_registries_operations.py | 756 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2315 ---- .../_dev_tool_portals_operations.py | 531 - .../operations/_eureka_servers_operations.py | 589 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 1066 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 1926 --- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2023_05_01_preview/models/__init__.py | 617 - .../_app_platform_management_client_enums.py | 511 - .../v2023_05_01_preview/models/_models_py3.py | 10411 --------------- .../v2023_05_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apms_operations.py | 750 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1953 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 907 -- .../_container_registries_operations.py | 923 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2928 ----- .../_dev_tool_portals_operations.py | 656 - .../operations/_eureka_servers_operations.py | 712 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1319 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2023_05_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 2434 ---- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2023_07_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 313 - .../v2023_07_01_preview/_configuration.py | 66 - .../appplatform/v2023_07_01_preview/_patch.py | 20 - .../v2023_07_01_preview/_vendor.py | 16 - .../v2023_07_01_preview/_version.py | 9 - .../v2023_07_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 315 - .../v2023_07_01_preview/aio/_configuration.py | 66 - .../v2023_07_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apms_operations.py | 596 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1431 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 967 -- .../_container_registries_operations.py | 756 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2315 ---- .../_dev_tool_portals_operations.py | 531 - .../operations/_eureka_servers_operations.py | 589 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 1066 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 2033 --- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2023_07_01_preview/models/__init__.py | 625 - .../_app_platform_management_client_enums.py | 529 - .../v2023_07_01_preview/models/_models_py3.py | 10502 --------------- .../v2023_07_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apms_operations.py | 750 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1953 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 1170 -- .../_container_registries_operations.py | 923 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2928 ----- .../_dev_tool_portals_operations.py | 656 - .../operations/_eureka_servers_operations.py | 712 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1319 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2023_07_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 2571 ---- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2023_09_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 313 - .../v2023_09_01_preview/_configuration.py | 66 - .../appplatform/v2023_09_01_preview/_patch.py | 20 - .../v2023_09_01_preview/_vendor.py | 16 - .../v2023_09_01_preview/_version.py | 9 - .../v2023_09_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 315 - .../v2023_09_01_preview/aio/_configuration.py | 66 - .../v2023_09_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apms_operations.py | 596 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1431 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 967 -- .../_container_registries_operations.py | 756 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2327 ---- .../_dev_tool_portals_operations.py | 531 - .../operations/_eureka_servers_operations.py | 589 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 1066 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 2123 --- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2023_09_01_preview/models/__init__.py | 635 - .../_app_platform_management_client_enums.py | 543 - .../v2023_09_01_preview/models/_models_py3.py | 10678 --------------- .../v2023_09_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apms_operations.py | 750 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1953 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 1170 -- .../_container_registries_operations.py | 923 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2946 ----- .../_dev_tool_portals_operations.py | 656 - .../operations/_eureka_servers_operations.py | 712 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1319 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2023_09_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 2691 ---- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2023_11_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 313 - .../v2023_11_01_preview/_configuration.py | 66 - .../appplatform/v2023_11_01_preview/_patch.py | 20 - .../v2023_11_01_preview/_vendor.py | 16 - .../v2023_11_01_preview/_version.py | 9 - .../v2023_11_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 315 - .../v2023_11_01_preview/aio/_configuration.py | 66 - .../v2023_11_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apms_operations.py | 596 - .../_application_accelerators_operations.py | 533 - .../_application_live_views_operations.py | 531 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1431 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 967 -- .../_container_registries_operations.py | 756 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 731 -- .../aio/operations/_deployments_operations.py | 2327 ---- .../_dev_tool_portals_operations.py | 531 - .../operations/_eureka_servers_operations.py | 589 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 1066 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 461 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 2123 --- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2023_11_01_preview/models/__init__.py | 645 - .../_app_platform_management_client_enums.py | 564 - .../v2023_11_01_preview/models/_models_py3.py | 10858 --------------- .../v2023_11_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apms_operations.py | 750 -- .../_application_accelerators_operations.py | 664 - .../_application_live_views_operations.py | 656 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1953 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 1170 -- .../_container_registries_operations.py | 923 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 927 -- .../operations/_deployments_operations.py | 2946 ----- .../_dev_tool_portals_operations.py | 656 - .../operations/_eureka_servers_operations.py | 712 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1319 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2023_11_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 612 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 2691 ---- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - .../v2024_01_01_preview/__init__.py | 26 - .../_app_platform_management_client.py | 313 - .../v2024_01_01_preview/_configuration.py | 66 - .../appplatform/v2024_01_01_preview/_patch.py | 20 - .../v2024_01_01_preview/_vendor.py | 16 - .../v2024_01_01_preview/_version.py | 9 - .../v2024_01_01_preview/aio/__init__.py | 23 - .../aio/_app_platform_management_client.py | 315 - .../v2024_01_01_preview/aio/_configuration.py | 66 - .../v2024_01_01_preview/aio/_patch.py | 20 - .../aio/operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 555 - .../aio/operations/_api_portals_operations.py | 675 - .../aio/operations/_apms_operations.py | 596 - .../_application_accelerators_operations.py | 537 - .../_application_live_views_operations.py | 535 - .../aio/operations/_apps_operations.py | 1171 -- .../aio/operations/_bindings_operations.py | 778 -- .../_build_service_agent_pool_operations.py | 444 - .../_build_service_builder_operations.py | 618 - .../operations/_build_service_operations.py | 1431 -- .../_buildpack_binding_operations.py | 685 - .../operations/_certificates_operations.py | 533 - .../operations/_config_servers_operations.py | 720 - .../_configuration_services_operations.py | 967 -- .../_container_registries_operations.py | 756 -- .../operations/_custom_domains_operations.py | 779 -- .../_customized_accelerators_operations.py | 801 -- .../aio/operations/_deployments_operations.py | 2327 ---- .../_dev_tool_portals_operations.py | 535 - .../operations/_eureka_servers_operations.py | 589 - .../_gateway_custom_domains_operations.py | 555 - .../_gateway_route_configs_operations.py | 558 - .../aio/operations/_gateways_operations.py | 1066 -- .../_monitoring_settings_operations.py | 519 - .../aio/operations/_operations.py | 132 - .../aio/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 469 - .../_runtime_versions_operations.py | 102 - .../_service_registries_operations.py | 436 - .../aio/operations/_services_operations.py | 2122 --- .../aio/operations/_skus_operations.py | 133 - .../aio/operations/_storages_operations.py | 532 - .../v2024_01_01_preview/models/__init__.py | 647 - .../_app_platform_management_client_enums.py | 577 - .../v2024_01_01_preview/models/_models_py3.py | 10897 ---------------- .../v2024_01_01_preview/models/_patch.py | 20 - .../operations/__init__.py | 79 - .../_api_portal_custom_domains_operations.py | 701 - .../operations/_api_portals_operations.py | 832 -- .../operations/_apms_operations.py | 750 -- .../_application_accelerators_operations.py | 668 - .../_application_live_views_operations.py | 666 - .../operations/_apps_operations.py | 1437 -- .../operations/_bindings_operations.py | 944 -- .../_build_service_agent_pool_operations.py | 553 - .../_build_service_builder_operations.py | 801 -- .../operations/_build_service_operations.py | 1953 --- .../_buildpack_binding_operations.py | 873 -- .../operations/_certificates_operations.py | 658 - .../operations/_config_servers_operations.py | 849 -- .../_configuration_services_operations.py | 1170 -- .../_container_registries_operations.py | 923 -- .../operations/_custom_domains_operations.py | 945 -- .../_customized_accelerators_operations.py | 1005 -- .../operations/_deployments_operations.py | 2946 ----- .../_dev_tool_portals_operations.py | 666 - .../operations/_eureka_servers_operations.py | 712 - .../_gateway_custom_domains_operations.py | 701 - .../_gateway_route_configs_operations.py | 704 - .../operations/_gateways_operations.py | 1319 -- .../_monitoring_settings_operations.py | 613 - .../operations/_operations.py | 154 - .../v2024_01_01_preview/operations/_patch.py | 20 - .../_predefined_accelerators_operations.py | 626 - .../_runtime_versions_operations.py | 124 - .../_service_registries_operations.py | 558 - .../operations/_services_operations.py | 2690 ---- .../operations/_skus_operations.py | 160 - .../operations/_storages_operations.py | 655 - 1247 files changed, 9377 insertions(+), 835359 deletions(-) delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_vendor.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_version.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_app_platform_management_client.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_configuration.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_storages_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_app_platform_management_client_enums.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_models_py3.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/__init__.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portal_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apms_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_live_views_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apps_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_bindings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_agent_pool_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_builder_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_buildpack_binding_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_certificates_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_config_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_configuration_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_container_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_customized_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_deployments_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_dev_tool_portals_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_eureka_servers_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_custom_domains_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_route_configs_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateways_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_monitoring_settings_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_patch.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_predefined_accelerators_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_runtime_versions_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_service_registries_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_services_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_skus_operations.py delete mode 100644 src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_storages_operations.py diff --git a/src/spring/azext_spring/_app_factory.py b/src/spring/azext_spring/_app_factory.py index 5d461204cac..9086c73135b 100644 --- a/src/spring/azext_spring/_app_factory.py +++ b/src/spring/azext_spring/_app_factory.py @@ -5,7 +5,7 @@ # pylint: disable=wrong-import-order from azure.cli.core.azclierror import FileOperationError, InvalidArgumentValueError -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from azure.cli.core.util import get_file_json diff --git a/src/spring/azext_spring/_build_service.py b/src/spring/azext_spring/_build_service.py index f810e13d894..1342ce2f490 100644 --- a/src/spring/azext_spring/_build_service.py +++ b/src/spring/azext_spring/_build_service.py @@ -7,7 +7,7 @@ import json from azure.cli.core.util import sdk_no_wait -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._buildservices_factory import BuildService from azure.cli.core.commands import LongRunningOperation from azure.cli.core.commands.client_factory import get_subscription_id diff --git a/src/spring/azext_spring/_buildservices_factory.py b/src/spring/azext_spring/_buildservices_factory.py index b93c3187131..414d14e4723 100644 --- a/src/spring/azext_spring/_buildservices_factory.py +++ b/src/spring/azext_spring/_buildservices_factory.py @@ -13,7 +13,7 @@ from msrestazure.tools import parse_resource_id from azure.cli.core.commands.client_factory import get_subscription_id from msrestazure.azure_exceptions import CloudError -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._deployment_uploadable_factory import uploader_selector from ._log_stream import LogStream diff --git a/src/spring/azext_spring/_client_factory.py b/src/spring/azext_spring/_client_factory.py index 5e21346746c..01c0a484430 100644 --- a/src/spring/azext_spring/_client_factory.py +++ b/src/spring/azext_spring/_client_factory.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.cli.core.profiles import ResourceType -from .vendored_sdks.appplatform.v2024_01_01_preview import AppPlatformManagementClient +from .vendored_sdks.appplatform.v2024_05_01_preview import AppPlatformManagementClient def cf_spring(cli_ctx, *_): diff --git a/src/spring/azext_spring/_deployment_factory.py b/src/spring/azext_spring/_deployment_factory.py index 0e9975fbdd1..e4936245593 100644 --- a/src/spring/azext_spring/_deployment_factory.py +++ b/src/spring/azext_spring/_deployment_factory.py @@ -6,7 +6,7 @@ # pylint: disable=wrong-import-order from azure.cli.core.azclierror import InvalidArgumentValueError from azure.cli.core.util import get_file_json -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._deployment_source_factory import source_selector from .custom import format_scale diff --git a/src/spring/azext_spring/_deployment_source_factory.py b/src/spring/azext_spring/_deployment_source_factory.py index 5cbe9dfdda7..923a24cdf44 100644 --- a/src/spring/azext_spring/_deployment_source_factory.py +++ b/src/spring/azext_spring/_deployment_source_factory.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=wrong-import-order -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from azure.cli.core.azclierror import ArgumentUsageError from ._utils import convert_argument_to_parameter_list diff --git a/src/spring/azext_spring/_params.py b/src/spring/azext_spring/_params.py index 91ce5fe7109..656901ebe27 100644 --- a/src/spring/azext_spring/_params.py +++ b/src/spring/azext_spring/_params.py @@ -45,7 +45,7 @@ validate_app_force_set_system_identity_or_warning, validate_app_force_set_user_identity_or_warning) from ._utils import ApiType -from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType, ConfigurationServiceGeneration, SupportedRuntimeValue, TestKeyType, BackendProtocol, SessionAffinity, ApmType, BindingType) +from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType, ConfigurationServiceGeneration, SupportedRuntimeValue, TestKeyType, BackendProtocol, SessionAffinity, ApmType, BindingType) name_type = CLIArgumentType(options_list=[ diff --git a/src/spring/azext_spring/_tanzu_component.py b/src/spring/azext_spring/_tanzu_component.py index 8114226203a..40b57d54024 100644 --- a/src/spring/azext_spring/_tanzu_component.py +++ b/src/spring/azext_spring/_tanzu_component.py @@ -10,8 +10,8 @@ from msrestazure.tools import resource_id from .application_live_view import create as application_live_view_create from .dev_tool_portal import create_or_update as dev_tool_portal_create -from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import ConfigurationServiceGeneration -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import ConfigurationServiceGeneration +from .vendored_sdks.appplatform.v2024_05_01_preview import models GATEWAY_RESOURCE_TYPE = "gateways" DEFAULT_NAME = "default" diff --git a/src/spring/azext_spring/_util_enterprise.py b/src/spring/azext_spring/_util_enterprise.py index 32ea6589be5..7c44ed67312 100644 --- a/src/spring/azext_spring/_util_enterprise.py +++ b/src/spring/azext_spring/_util_enterprise.py @@ -5,7 +5,7 @@ # pylint: disable=wrong-import-order -from .vendored_sdks.appplatform.v2024_01_01_preview import AppPlatformManagementClient +from .vendored_sdks.appplatform.v2024_05_01_preview import AppPlatformManagementClient from azure.cli.core.commands.client_factory import get_mgmt_service_client diff --git a/src/spring/azext_spring/_utils.py b/src/spring/azext_spring/_utils.py index 35a2bc5817f..4c8facb370e 100644 --- a/src/spring/azext_spring/_utils.py +++ b/src/spring/azext_spring/_utils.py @@ -23,7 +23,7 @@ from knack.util import CLIError, todict from knack.log import get_logger from azure.cli.core.azclierror import ValidationError, CLIInternalError -from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import SupportedRuntimeValue +from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import SupportedRuntimeValue from ._client_factory import cf_resource_groups diff --git a/src/spring/azext_spring/_validators.py b/src/spring/azext_spring/_validators.py index bafa581b8fd..cc7538b0524 100644 --- a/src/spring/azext_spring/_validators.py +++ b/src/spring/azext_spring/_validators.py @@ -21,7 +21,7 @@ from ._clierror import NotSupportedPricingTierError from ._utils import (ApiType, _get_rg_location, _get_file_type, _get_sku_name, _java_runtime_in_number) from ._util_enterprise import is_enterprise_tier -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._constant import (MARKETPLACE_OFFER_ID, MARKETPLACE_PLAN_ID, MARKETPLACE_PUBLISHER_ID) logger = get_logger(__name__) diff --git a/src/spring/azext_spring/_validators_enterprise.py b/src/spring/azext_spring/_validators_enterprise.py index 62d8bae387d..dff81691bfb 100644 --- a/src/spring/azext_spring/_validators_enterprise.py +++ b/src/spring/azext_spring/_validators_enterprise.py @@ -15,8 +15,8 @@ MutuallyExclusiveArgumentError) from azure.cli.core.commands.client_factory import get_subscription_id from knack.log import get_logger -from .vendored_sdks.appplatform.v2024_01_01_preview.models import (ApmReference, CertificateReference) -from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (ApmType, ConfigurationServiceGeneration) +from .vendored_sdks.appplatform.v2024_05_01_preview.models import (ApmReference, CertificateReference) +from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (ApmType, ConfigurationServiceGeneration) from ._gateway_constant import (GATEWAY_RESPONSE_CACHE_SCOPE_ROUTE, GATEWAY_RESPONSE_CACHE_SCOPE_INSTANCE, GATEWAY_RESPONSE_CACHE_SIZE_RESET_VALUE, GATEWAY_RESPONSE_CACHE_TTL_RESET_VALUE) diff --git a/src/spring/azext_spring/api_portal.py b/src/spring/azext_spring/api_portal.py index 74c8a62fa67..e6299ff0142 100644 --- a/src/spring/azext_spring/api_portal.py +++ b/src/spring/azext_spring/api_portal.py @@ -6,7 +6,7 @@ from azure.cli.core.azclierror import ClientRequestError from azure.cli.core.commands.client_factory import get_subscription_id from msrestazure.tools import resource_id -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._utils import get_spring_sku DEFAULT_NAME = "default" diff --git a/src/spring/azext_spring/apm.py b/src/spring/azext_spring/apm.py index b9e528a0728..3930543aa86 100644 --- a/src/spring/azext_spring/apm.py +++ b/src/spring/azext_spring/apm.py @@ -14,7 +14,7 @@ from ._utils import get_portal_uri from .custom import try_create_application_insights -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models logger = get_logger(__name__) DEFAULT_APM_NAME = "default" diff --git a/src/spring/azext_spring/app_managed_identity.py b/src/spring/azext_spring/app_managed_identity.py index bcb7397ad00..fd081c7264b 100644 --- a/src/spring/azext_spring/app_managed_identity.py +++ b/src/spring/azext_spring/app_managed_identity.py @@ -5,7 +5,7 @@ from ._clierror import ConflictRequestError from ._utils import wait_till_end -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from azure.cli.core.azclierror import (AzureInternalError, CLIInternalError) from azure.core.exceptions import HttpResponseError from msrestazure.azure_exceptions import CloudError diff --git a/src/spring/azext_spring/application_accelerator.py b/src/spring/azext_spring/application_accelerator.py index 2d4fe37629e..6dd33a15ca9 100644 --- a/src/spring/azext_spring/application_accelerator.py +++ b/src/spring/azext_spring/application_accelerator.py @@ -6,13 +6,13 @@ from azure.cli.core.util import sdk_no_wait from knack.log import get_logger from azure.cli.core.commands.client_factory import get_subscription_id -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from .dev_tool_portal import (is_updatable as is_dev_tool_portal_updatable, try_get as get_dev_tool_portal, create_or_update as create_or_update_dev_tool_portal, _get_desired_state as get_dev_tool_portal_desired_state) from ._utils import (wait_till_end) -from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType) +from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (CustomizedAcceleratorType) DEFAULT_NAME = "default" logger = get_logger(__name__) diff --git a/src/spring/azext_spring/application_configuration_service.py b/src/spring/azext_spring/application_configuration_service.py index ef944b3d765..077fce51026 100644 --- a/src/spring/azext_spring/application_configuration_service.py +++ b/src/spring/azext_spring/application_configuration_service.py @@ -14,8 +14,8 @@ from knack.log import get_logger from knack.util import CLIError from msrestazure.tools import resource_id -from .vendored_sdks.appplatform.v2024_01_01_preview.models._app_platform_management_client_enums import (GitImplementation, ConfigurationServiceGeneration) -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview.models._app_platform_management_client_enums import (GitImplementation, ConfigurationServiceGeneration) +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._utils import (get_hostname, get_bearer_auth) APPLICATION_CONFIGURATION_SERVICE_NAME = "applicationConfigurationService" diff --git a/src/spring/azext_spring/application_live_view.py b/src/spring/azext_spring/application_live_view.py index 5064a708ef5..72cb696f29c 100644 --- a/src/spring/azext_spring/application_live_view.py +++ b/src/spring/azext_spring/application_live_view.py @@ -6,7 +6,7 @@ # pylint: disable=unused-argument, logging-format-interpolation, protected-access, wrong-import-order, too-many-lines from knack.log import get_logger -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from .dev_tool_portal import (is_updatable as is_dev_tool_portal_updatable, try_get as get_dev_tool_portal, create_or_update as create_or_update_dev_tool_portal, diff --git a/src/spring/azext_spring/buildpack_binding.py b/src/spring/azext_spring/buildpack_binding.py index 75b66de0675..d16d6619daf 100644 --- a/src/spring/azext_spring/buildpack_binding.py +++ b/src/spring/azext_spring/buildpack_binding.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=wrong-import-order -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from azure.cli.core.util import sdk_no_wait from ._utils import get_portal_uri from .custom import try_create_application_insights diff --git a/src/spring/azext_spring/custom.py b/src/spring/azext_spring/custom.py index d4b6b529c25..31aa28bc1a3 100644 --- a/src/spring/azext_spring/custom.py +++ b/src/spring/azext_spring/custom.py @@ -23,7 +23,7 @@ from azure.mgmt.core.tools import (parse_resource_id, is_valid_resource_id) from ._utils import (get_portal_uri, get_spring_sku, get_proxy_api_endpoint, BearerAuth) from knack.util import CLIError -from .vendored_sdks.appplatform.v2024_01_01_preview import models, AppPlatformManagementClient +from .vendored_sdks.appplatform.v2024_05_01_preview import models, AppPlatformManagementClient from knack.log import get_logger from azure.cli.core.azclierror import ClientRequestError, FileOperationError, InvalidArgumentValueError, ResourceNotFoundError from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_subscription_id diff --git a/src/spring/azext_spring/dev_tool_portal.py b/src/spring/azext_spring/dev_tool_portal.py index 65fb767c2e6..992c514a184 100644 --- a/src/spring/azext_spring/dev_tool_portal.py +++ b/src/spring/azext_spring/dev_tool_portal.py @@ -7,7 +7,7 @@ from knack.log import get_logger from azure.cli.core.util import sdk_no_wait -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models DEFAULT_NAME = "default" diff --git a/src/spring/azext_spring/gateway.py b/src/spring/azext_spring/gateway.py index e5aae21e378..59fd92bc99e 100644 --- a/src/spring/azext_spring/gateway.py +++ b/src/spring/azext_spring/gateway.py @@ -11,7 +11,7 @@ from knack.log import get_logger from .custom import LOG_RUNNING_PROMPT -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from ._gateway_constant import (GATEWAY_RESPONSE_CACHE_SCOPE_ROUTE, GATEWAY_RESPONSE_CACHE_SCOPE_INSTANCE, GATEWAY_RESPONSE_CACHE_SIZE_RESET_VALUE, GATEWAY_RESPONSE_CACHE_TTL_RESET_VALUE) from ._utils import get_spring_sku diff --git a/src/spring/azext_spring/spring_instance.py b/src/spring/azext_spring/spring_instance.py index f0d969d1f40..0ee331baa38 100644 --- a/src/spring/azext_spring/spring_instance.py +++ b/src/spring/azext_spring/spring_instance.py @@ -6,7 +6,7 @@ # pylint: disable=wrong-import-order # pylint: disable=unused-argument, logging-format-interpolation, protected-access, wrong-import-order, too-many-lines from ._utils import (wait_till_end, _get_rg_location, register_provider_if_needed) -from .vendored_sdks.appplatform.v2024_01_01_preview import models +from .vendored_sdks.appplatform.v2024_05_01_preview import models from .custom import (_warn_enable_java_agent, _update_application_insights_asc_create) from ._build_service import _update_default_build_agent_pool, create_build_service from .buildpack_binding import create_default_buildpack_binding_for_application_insights diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_crud.yaml b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_crud.yaml index 1a761cf2fcf..1d6ef05f723 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_crud.yaml +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_crud.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"bb0a953d-7aa7-408f-9c65-a7ca70f0f386","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:15:28.4583463Z"}}' @@ -71,13 +71,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"bb0a953d-7aa7-408f-9c65-a7ca70f0f386","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:29:24.2627818Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -89,7 +89,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -123,7 +123,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/c9f4b79e-f909-4719-b613-9a8dcc4b8a2c","name":"c9f4b79e-f909-4719-b613-9a8dcc4b8a2c","status":"Succeeded","startTime":"2022-03-22T11:29:24.67803Z","endTime":"2022-03-22T11:29:34.6364203Z"}' @@ -173,7 +173,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:29:24.2627818Z"}}' @@ -225,7 +225,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:29:24.2627818Z"}}' @@ -277,7 +277,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"},"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-app-1-default-14-c64d57654-qkhf7","status":"Running","reason":"Unschedulable","discoveryStatus":"UNKNOWN","startTime":"2022-03-20T14:03:39Z"}]},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1/deployments/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:34.571185Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-20T14:03:34.571185Z"}}]}' @@ -329,7 +329,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:29:24.2627818Z"}}' @@ -381,7 +381,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:29:24.2627818Z"}}' @@ -437,13 +437,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:30:28.2576505Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/294afe9a-4603-4747-820d-6d477ea1ffb7?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/294afe9a-4603-4747-820d-6d477ea1ffb7?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -455,7 +455,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/294afe9a-4603-4747-820d-6d477ea1ffb7/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/294afe9a-4603-4747-820d-6d477ea1ffb7/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -489,7 +489,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/294afe9a-4603-4747-820d-6d477ea1ffb7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/294afe9a-4603-4747-820d-6d477ea1ffb7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/294afe9a-4603-4747-820d-6d477ea1ffb7","name":"294afe9a-4603-4747-820d-6d477ea1ffb7","status":"Succeeded","startTime":"2022-03-22T11:30:30.5989384Z","endTime":"2022-03-22T11:30:44.714044Z"}' @@ -539,7 +539,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:30:28.2576505Z"}}' @@ -591,7 +591,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:30:28.2576505Z"}}' @@ -643,7 +643,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:30:28.2576505Z"}}' @@ -702,13 +702,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:09.2234867Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -720,7 +720,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -754,7 +754,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/e4780ba8-91e8-4fd2-b5b0-24b1cd76db19","name":"e4780ba8-91e8-4fd2-b5b0-24b1cd76db19","status":"Succeeded","startTime":"2022-03-22T11:31:10.6755773Z","endTime":"2022-03-22T11:31:22.3970818Z"}' @@ -804,7 +804,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:09.2234867Z"}}' @@ -856,7 +856,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:09.2234867Z"}}' @@ -908,7 +908,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:09.2234867Z"}}' @@ -966,13 +966,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:48.9571136Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ba695375-f006-44b0-b927-ed40d9f2556f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ba695375-f006-44b0-b927-ed40d9f2556f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -984,7 +984,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/ba695375-f006-44b0-b927-ed40d9f2556f/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/ba695375-f006-44b0-b927-ed40d9f2556f/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1018,7 +1018,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ba695375-f006-44b0-b927-ed40d9f2556f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ba695375-f006-44b0-b927-ed40d9f2556f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ba695375-f006-44b0-b927-ed40d9f2556f","name":"ba695375-f006-44b0-b927-ed40d9f2556f","status":"Succeeded","startTime":"2022-03-22T11:31:50.1398137Z","endTime":"2022-03-22T11:32:01.9057715Z"}' @@ -1068,7 +1068,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:48.9571136Z"}}' @@ -1120,7 +1120,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:48.9571136Z"}}' @@ -1172,7 +1172,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:31:48.9571136Z"}}' @@ -1228,13 +1228,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:32:28.2582306Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/cfdeca9a-e073-40ee-a01e-af4afd960e5a?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/cfdeca9a-e073-40ee-a01e-af4afd960e5a?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1246,7 +1246,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/cfdeca9a-e073-40ee-a01e-af4afd960e5a/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/cfdeca9a-e073-40ee-a01e-af4afd960e5a/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1280,7 +1280,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/cfdeca9a-e073-40ee-a01e-af4afd960e5a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/cfdeca9a-e073-40ee-a01e-af4afd960e5a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/cfdeca9a-e073-40ee-a01e-af4afd960e5a","name":"cfdeca9a-e073-40ee-a01e-af4afd960e5a","status":"Succeeded","startTime":"2022-03-22T11:32:29.4313623Z","endTime":"2022-03-22T11:32:39.4110337Z"}' @@ -1330,7 +1330,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:32:28.2582306Z"}}' @@ -1382,7 +1382,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:32:28.2582306Z"}}' @@ -1434,7 +1434,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:32:28.2582306Z"}}' @@ -1490,13 +1490,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":null,"type":"SystemAssigned","principalId":"116ab438-1b87-44fb-b921-76e3ea876490","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:06.8633111Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1508,7 +1508,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1542,7 +1542,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8","name":"ac3cf8d5-4b9a-4e64-9a40-faed4bbb0bc8","status":"Succeeded","startTime":"2022-03-22T11:33:08.7052105Z","endTime":"2022-03-22T11:33:18.7115215Z"}' @@ -1592,7 +1592,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:06.8633111Z"}}' @@ -1644,7 +1644,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:06.8633111Z"}}' @@ -1696,7 +1696,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:06.8633111Z"}}' @@ -1755,13 +1755,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:47.0102171Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/0344e56e-d1c8-421c-99eb-e60b063768c4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/0344e56e-d1c8-421c-99eb-e60b063768c4?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1773,7 +1773,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/0344e56e-d1c8-421c-99eb-e60b063768c4/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/0344e56e-d1c8-421c-99eb-e60b063768c4/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1807,7 +1807,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/0344e56e-d1c8-421c-99eb-e60b063768c4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/0344e56e-d1c8-421c-99eb-e60b063768c4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/0344e56e-d1c8-421c-99eb-e60b063768c4","name":"0344e56e-d1c8-421c-99eb-e60b063768c4","status":"Succeeded","startTime":"2022-03-22T11:33:50.4980311Z","endTime":"2022-03-22T11:34:01.700367Z"}' @@ -1857,7 +1857,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"43d225fe-e7e1-47e1-9d72-dddc03e0a39c","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:47.0102171Z"}}' @@ -1909,7 +1909,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"43d225fe-e7e1-47e1-9d72-dddc03e0a39c","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:47.0102171Z"}}' @@ -1961,7 +1961,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"43d225fe-e7e1-47e1-9d72-dddc03e0a39c","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:33:47.0102171Z"}}' @@ -2017,13 +2017,13 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"b1780895-22f2-4f90-a892-03c4e673e1cb","clientId":"ab88a149-200a-4550-b269-1f2b0ae252bf"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"5f3a9b2d-8040-40bd-9a3e-d7d0b58e7241","clientId":"36c2e1b3-750f-447d-83a7-fc54b2a282d6"}},"type":"SystemAssigned,UserAssigned","principalId":"43d225fe-e7e1-47e1-9d72-dddc03e0a39c","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:34:28.0732599Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/9ce70110-0a04-42fd-820e-89ec8612c089?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/9ce70110-0a04-42fd-820e-89ec8612c089?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2035,7 +2035,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/9ce70110-0a04-42fd-820e-89ec8612c089/Spring/test-msi-app-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationResults/9ce70110-0a04-42fd-820e-89ec8612c089/Spring/test-msi-app-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2069,7 +2069,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/9ce70110-0a04-42fd-820e-89ec8612c089?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/9ce70110-0a04-42fd-820e-89ec8612c089?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/southeastasia/operationStatus/test-msi-app-1/operationId/9ce70110-0a04-42fd-820e-89ec8612c089","name":"9ce70110-0a04-42fd-820e-89ec8612c089","status":"Succeeded","startTime":"2022-03-22T11:34:28.5140021Z","endTime":"2022-03-22T11:34:38.0409754Z"}' @@ -2119,7 +2119,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:34:28.0732599Z"}}' @@ -2171,7 +2171,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"southeastasia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-app-1","name":"test-msi-app-1","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-03-20T14:03:20.2023737Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-22T11:34:28.0732599Z"}}' diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_force_set.yaml b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_force_set.yaml index ad3189c6bdf..a01efbcb558 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_force_set.yaml +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_app_identity_force_set.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"255b11fc-1d64-441c-8c53-ede51b8c18fb","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:38:37.4218302Z"}}' @@ -123,13 +123,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"255b11fc-1d64-441c-8c53-ede51b8c18fb","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:43:26.8107587Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bbeeaae8-88a9-4fa5-809d-2d4d36543f01?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bbeeaae8-88a9-4fa5-809d-2d4d36543f01?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -141,7 +141,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bbeeaae8-88a9-4fa5-809d-2d4d36543f01/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bbeeaae8-88a9-4fa5-809d-2d4d36543f01/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -173,7 +173,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bbeeaae8-88a9-4fa5-809d-2d4d36543f01?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bbeeaae8-88a9-4fa5-809d-2d4d36543f01?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bbeeaae8-88a9-4fa5-809d-2d4d36543f01","name":"bbeeaae8-88a9-4fa5-809d-2d4d36543f01","status":"Succeeded","startTime":"2022-09-07T02:43:27.5348511Z","endTime":"2022-09-07T02:43:34.4799677Z"}' @@ -221,7 +221,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:43:26.8107587Z"}}' @@ -271,7 +271,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:43:26.8107587Z"}}' @@ -321,7 +321,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -371,7 +371,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:43:26.8107587Z"}}' @@ -429,13 +429,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:44:30.1577668Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/0a596f2a-66ed-4a6c-9ac0-198c4a835d45?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/0a596f2a-66ed-4a6c-9ac0-198c4a835d45?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -447,7 +447,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/0a596f2a-66ed-4a6c-9ac0-198c4a835d45/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/0a596f2a-66ed-4a6c-9ac0-198c4a835d45/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -479,7 +479,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/0a596f2a-66ed-4a6c-9ac0-198c4a835d45?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/0a596f2a-66ed-4a6c-9ac0-198c4a835d45?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/0a596f2a-66ed-4a6c-9ac0-198c4a835d45","name":"0a596f2a-66ed-4a6c-9ac0-198c4a835d45","status":"Succeeded","startTime":"2022-09-07T02:44:32.9024274Z","endTime":"2022-09-07T02:44:40.557122Z"}' @@ -527,7 +527,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"95740b41-34cf-4ecd-b926-ad78e4fa310a","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:44:30.1577668Z"}}' @@ -577,7 +577,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"95740b41-34cf-4ecd-b926-ad78e4fa310a","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:44:30.1577668Z"}}' @@ -627,7 +627,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -673,7 +673,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"95740b41-34cf-4ecd-b926-ad78e4fa310a","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:44:30.1577668Z"}}' @@ -732,13 +732,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"95740b41-34cf-4ecd-b926-ad78e4fa310a","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:45:36.0929958Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -750,7 +750,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -782,7 +782,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6","name":"bf6146f2-c6cf-4cda-9bf6-abf5aa9a0fd6","status":"Succeeded","startTime":"2022-09-07T02:45:39.8583538Z","endTime":"2022-09-07T02:45:48.6845168Z"}' @@ -830,7 +830,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:45:36.0929958Z"}}' @@ -880,7 +880,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:45:36.0929958Z"}}' @@ -930,7 +930,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -980,7 +980,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:45:36.0929958Z"}}' @@ -1039,13 +1039,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:46:40.3433492Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/35fcb24c-7ce7-46e5-85d3-f1796c21e80f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/35fcb24c-7ce7-46e5-85d3-f1796c21e80f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1057,7 +1057,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/35fcb24c-7ce7-46e5-85d3-f1796c21e80f/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/35fcb24c-7ce7-46e5-85d3-f1796c21e80f/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1089,7 +1089,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/35fcb24c-7ce7-46e5-85d3-f1796c21e80f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/35fcb24c-7ce7-46e5-85d3-f1796c21e80f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/35fcb24c-7ce7-46e5-85d3-f1796c21e80f","name":"35fcb24c-7ce7-46e5-85d3-f1796c21e80f","status":"Succeeded","startTime":"2022-09-07T02:46:42.7612604Z","endTime":"2022-09-07T02:46:50.3374644Z"}' @@ -1137,7 +1137,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:46:40.3433492Z"}}' @@ -1187,7 +1187,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:46:40.3433492Z"}}' @@ -1237,7 +1237,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -1287,7 +1287,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:46:40.3433492Z"}}' @@ -1347,13 +1347,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:47:45.9030922Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/8ac92c71-f715-458a-b0a0-1666c02e9a98?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/8ac92c71-f715-458a-b0a0-1666c02e9a98?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1365,7 +1365,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8ac92c71-f715-458a-b0a0-1666c02e9a98/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8ac92c71-f715-458a-b0a0-1666c02e9a98/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1397,7 +1397,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/8ac92c71-f715-458a-b0a0-1666c02e9a98?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/8ac92c71-f715-458a-b0a0-1666c02e9a98?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/8ac92c71-f715-458a-b0a0-1666c02e9a98","name":"8ac92c71-f715-458a-b0a0-1666c02e9a98","status":"Succeeded","startTime":"2022-09-07T02:47:49.4217897Z","endTime":"2022-09-07T02:47:59.4573738Z"}' @@ -1445,7 +1445,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"SystemAssigned,UserAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:47:45.9030922Z"}}' @@ -1495,7 +1495,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"SystemAssigned,UserAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:47:45.9030922Z"}}' @@ -1545,7 +1545,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -1595,7 +1595,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"SystemAssigned,UserAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:47:45.9030922Z"}}' @@ -1653,13 +1653,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}},"type":"SystemAssigned,UserAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:48:51.4087021Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1671,7 +1671,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1703,7 +1703,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e","name":"cfdbaf4b-4a06-4fd7-9fd5-69791189ac1e","status":"Succeeded","startTime":"2022-09-07T02:48:53.5171595Z","endTime":"2022-09-07T02:49:01.0694001Z"}' @@ -1751,7 +1751,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:48:51.4087021Z"}}' @@ -1801,7 +1801,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:48:51.4087021Z"}}' @@ -1851,7 +1851,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-msi-force-set-default-18-6dfcbdb69c-kbrcz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:16:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:16:02.3941932Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:16:02.3941932Z"}}]}' @@ -1901,7 +1901,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:48:51.4087021Z"}}' @@ -1959,13 +1959,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"14cb6647-da65-48f8-aef1-1f9b2f651db8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:49:56.4480171Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/1b003dd6-6886-4743-829c-56ca0dd41539?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/1b003dd6-6886-4743-829c-56ca0dd41539?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1977,7 +1977,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1b003dd6-6886-4743-829c-56ca0dd41539/Spring/test-msi-force-set?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1b003dd6-6886-4743-829c-56ca0dd41539/Spring/test-msi-force-set?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2009,7 +2009,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/1b003dd6-6886-4743-829c-56ca0dd41539?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/1b003dd6-6886-4743-829c-56ca0dd41539?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-msi-force-set/operationId/1b003dd6-6886-4743-829c-56ca0dd41539","name":"1b003dd6-6886-4743-829c-56ca0dd41539","status":"Succeeded","startTime":"2022-09-07T02:49:56.9921264Z","endTime":"2022-09-07T02:50:03.936183Z"}' @@ -2057,7 +2057,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:49:56.4480171Z"}}' @@ -2107,7 +2107,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-msi-force-set","name":"test-msi-force-set","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:15:51.8991693Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:49:56.4480171Z"}}' diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_assign_identity.yaml b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_assign_identity.yaml index 208be1be7f7..5911854ab05 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_assign_identity.yaml +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_assign_identity.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e55ed5c1ee8942f9a36f033e7bbd28e8","networkProfile":{"outboundIPs":{"publicIPs":["20.237.103.188","20.237.103.250"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:05:42.8680393Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:11:29.9671687Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1","name":"create-app-system-identity-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:09:36.211793Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:09:36.211793Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/1c6fd929-24c6-407c-89ef-498a422eeb57?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/1c6fd929-24c6-407c-89ef-498a422eeb57?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1c6fd929-24c6-407c-89ef-498a422eeb57/Spring/create-app-system-identity-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1c6fd929-24c6-407c-89ef-498a422eeb57/Spring/create-app-system-identity-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/1c6fd929-24c6-407c-89ef-498a422eeb57?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/1c6fd929-24c6-407c-89ef-498a422eeb57?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/1c6fd929-24c6-407c-89ef-498a422eeb57","name":"1c6fd929-24c6-407c-89ef-498a422eeb57","status":"Succeeded","startTime":"2022-09-07T03:09:38.8918945Z","endTime":"2022-09-07T03:09:46.4506473Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"dcf581e3-fb3c-4a69-9dd2-94b6485e29ba","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1","name":"create-app-system-identity-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:09:36.211793Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:09:36.211793Z"}}' @@ -271,13 +271,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:10:15.2273638Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:10:15.2273638Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -289,7 +289,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -326,13 +326,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"dcf581e3-fb3c-4a69-9dd2-94b6485e29ba","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1","name":"create-app-system-identity-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:09:36.211793Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:10:18.0554846Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/ca019b0e-6e00-4582-b1b1-708a14773339?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/ca019b0e-6e00-4582-b1b1-708a14773339?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -344,7 +344,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/ca019b0e-6e00-4582-b1b1-708a14773339/Spring/create-app-system-identity-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/ca019b0e-6e00-4582-b1b1-708a14773339/Spring/create-app-system-identity-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -376,7 +376,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/3cb3a92b-6e8f-4b4f-a59e-ed909f967a44","name":"3cb3a92b-6e8f-4b4f-a59e-ed909f967a44","status":"Succeeded","startTime":"2022-09-07T03:10:17.6984106Z","endTime":"2022-09-07T03:10:45.843813Z"}' @@ -424,7 +424,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/ca019b0e-6e00-4582-b1b1-708a14773339?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/ca019b0e-6e00-4582-b1b1-708a14773339?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-1/operationId/ca019b0e-6e00-4582-b1b1-708a14773339","name":"ca019b0e-6e00-4582-b1b1-708a14773339","status":"Succeeded","startTime":"2022-09-07T03:10:18.9730916Z","endTime":"2022-09-07T03:10:25.5389523Z"}' @@ -472,7 +472,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"dcf581e3-fb3c-4a69-9dd2-94b6485e29ba","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1","name":"create-app-system-identity-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:09:36.211793Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:10:18.0554846Z"}}' @@ -522,7 +522,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-system-identity-1-default-28-5b8d45897f-n2tnd","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T03:10:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:10:15.2273638Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:10:15.2273638Z"}}' @@ -572,7 +572,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"dcf581e3-fb3c-4a69-9dd2-94b6485e29ba","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1","name":"create-app-system-identity-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:09:36.211793Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:10:18.0554846Z"}}' @@ -622,7 +622,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-system-identity-1-default-28-5b8d45897f-n2tnd","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T03:10:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-1/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:10:15.2273638Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:10:15.2273638Z"}}]}' diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_both_identity.yaml b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_both_identity.yaml index 0551099b822..e9f95c1b61a 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_both_identity.yaml +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_both_identity.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e55ed5c1ee8942f9a36f033e7bbd28e8","networkProfile":{"outboundIPs":{"publicIPs":["20.237.103.188","20.237.103.250"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:05:42.8680393Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:11:29.9671687Z"}}' @@ -119,13 +119,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity","name":"create-app-both-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:28:59.9792223Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:28:59.9792223Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/63d19296-5763-45e1-b14e-e48aa1771d77?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/63d19296-5763-45e1-b14e-e48aa1771d77?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -137,7 +137,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/63d19296-5763-45e1-b14e-e48aa1771d77/Spring/create-app-both-identity?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/63d19296-5763-45e1-b14e-e48aa1771d77/Spring/create-app-both-identity?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -169,7 +169,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/63d19296-5763-45e1-b14e-e48aa1771d77?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/63d19296-5763-45e1-b14e-e48aa1771d77?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/63d19296-5763-45e1-b14e-e48aa1771d77","name":"63d19296-5763-45e1-b14e-e48aa1771d77","status":"Succeeded","startTime":"2022-09-07T02:29:02.4102691Z","endTime":"2022-09-07T02:29:11.6225494Z"}' @@ -217,7 +217,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned,UserAssigned","principalId":"9b3edfa8-d102-4a3c-859f-eea55cba7b89","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity","name":"create-app-both-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:28:59.9792223Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:28:59.9792223Z"}}' @@ -274,13 +274,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:29:37.8695913Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:29:37.8695913Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/69352fa3-cbdc-413b-96e2-5615b1aa4501?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/69352fa3-cbdc-413b-96e2-5615b1aa4501?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -292,7 +292,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/69352fa3-cbdc-413b-96e2-5615b1aa4501/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/69352fa3-cbdc-413b-96e2-5615b1aa4501/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -329,13 +329,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned,UserAssigned","principalId":"9b3edfa8-d102-4a3c-859f-eea55cba7b89","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity","name":"create-app-both-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:28:59.9792223Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:29:40.4945738Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/d275d342-505e-4eb9-b9b9-ebc7eae3bc66?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/d275d342-505e-4eb9-b9b9-ebc7eae3bc66?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -347,7 +347,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/d275d342-505e-4eb9-b9b9-ebc7eae3bc66/Spring/create-app-both-identity?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/d275d342-505e-4eb9-b9b9-ebc7eae3bc66/Spring/create-app-both-identity?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -379,7 +379,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/69352fa3-cbdc-413b-96e2-5615b1aa4501?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/69352fa3-cbdc-413b-96e2-5615b1aa4501?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/69352fa3-cbdc-413b-96e2-5615b1aa4501","name":"69352fa3-cbdc-413b-96e2-5615b1aa4501","status":"Succeeded","startTime":"2022-09-07T02:29:40.0053611Z","endTime":"2022-09-07T02:30:07.8819499Z"}' @@ -427,7 +427,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/d275d342-505e-4eb9-b9b9-ebc7eae3bc66?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/d275d342-505e-4eb9-b9b9-ebc7eae3bc66?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-both-identity/operationId/d275d342-505e-4eb9-b9b9-ebc7eae3bc66","name":"d275d342-505e-4eb9-b9b9-ebc7eae3bc66","status":"Succeeded","startTime":"2022-09-07T02:29:41.1902627Z","endTime":"2022-09-07T02:29:47.478367Z"}' @@ -475,7 +475,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned,UserAssigned","principalId":"9b3edfa8-d102-4a3c-859f-eea55cba7b89","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity","name":"create-app-both-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:28:59.9792223Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:29:40.4945738Z"}}' @@ -525,7 +525,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-both-identity-default-24-7c6fd946b4-2hsfq","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:29:43Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:29:37.8695913Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:29:37.8695913Z"}}' @@ -575,7 +575,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned,UserAssigned","principalId":"9b3edfa8-d102-4a3c-859f-eea55cba7b89","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity","name":"create-app-both-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:28:59.9792223Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:29:40.4945738Z"}}' @@ -625,7 +625,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-both-identity-default-24-7c6fd946b4-2hsfq","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T02:29:43Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-both-identity/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:29:37.8695913Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:29:37.8695913Z"}}]}' diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_system_assigned.yaml b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_system_assigned.yaml index 8f434302b6f..52d0f266111 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_system_assigned.yaml +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_system_assigned.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e55ed5c1ee8942f9a36f033e7bbd28e8","networkProfile":{"outboundIPs":{"publicIPs":["20.237.103.188","20.237.103.250"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:05:42.8680393Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:11:29.9671687Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2","name":"create-app-system-identity-2","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:11:41.5113326Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:11:41.5113326Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/1aa74228-51b6-47ec-b50f-7941b668d417?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/1aa74228-51b6-47ec-b50f-7941b668d417?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1aa74228-51b6-47ec-b50f-7941b668d417/Spring/create-app-system-identity-2?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1aa74228-51b6-47ec-b50f-7941b668d417/Spring/create-app-system-identity-2?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/1aa74228-51b6-47ec-b50f-7941b668d417?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/1aa74228-51b6-47ec-b50f-7941b668d417?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/1aa74228-51b6-47ec-b50f-7941b668d417","name":"1aa74228-51b6-47ec-b50f-7941b668d417","status":"Succeeded","startTime":"2022-09-07T03:11:44.0543792Z","endTime":"2022-09-07T03:11:52.473214Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"10b971a6-1b43-4344-8e28-19fead330b43","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2","name":"create-app-system-identity-2","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:11:41.5113326Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:11:41.5113326Z"}}' @@ -271,13 +271,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:12:19.6834345Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:12:19.6834345Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9160e34f-50f7-4898-9c53-c689e9367ab1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9160e34f-50f7-4898-9c53-c689e9367ab1?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -289,7 +289,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/9160e34f-50f7-4898-9c53-c689e9367ab1/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/9160e34f-50f7-4898-9c53-c689e9367ab1/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -326,13 +326,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"10b971a6-1b43-4344-8e28-19fead330b43","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2","name":"create-app-system-identity-2","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:11:41.5113326Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:12:22.2771882Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/4a2382fa-fea8-42c9-85d2-27ccae86101b?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/4a2382fa-fea8-42c9-85d2-27ccae86101b?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -344,7 +344,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4a2382fa-fea8-42c9-85d2-27ccae86101b/Spring/create-app-system-identity-2?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4a2382fa-fea8-42c9-85d2-27ccae86101b/Spring/create-app-system-identity-2?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -376,7 +376,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9160e34f-50f7-4898-9c53-c689e9367ab1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9160e34f-50f7-4898-9c53-c689e9367ab1?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9160e34f-50f7-4898-9c53-c689e9367ab1","name":"9160e34f-50f7-4898-9c53-c689e9367ab1","status":"Succeeded","startTime":"2022-09-07T03:12:21.9104089Z","endTime":"2022-09-07T03:12:52.3535388Z"}' @@ -424,7 +424,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/4a2382fa-fea8-42c9-85d2-27ccae86101b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/4a2382fa-fea8-42c9-85d2-27ccae86101b?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-system-identity-2/operationId/4a2382fa-fea8-42c9-85d2-27ccae86101b","name":"4a2382fa-fea8-42c9-85d2-27ccae86101b","status":"Succeeded","startTime":"2022-09-07T03:12:22.9363363Z","endTime":"2022-09-07T03:12:29.3555503Z"}' @@ -472,7 +472,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"10b971a6-1b43-4344-8e28-19fead330b43","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2","name":"create-app-system-identity-2","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:11:41.5113326Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:12:22.2771882Z"}}' @@ -522,7 +522,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-system-identity-2-default-28-5fdfd8bcb-7tdmz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T03:12:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:12:19.6834345Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:12:19.6834345Z"}}' @@ -572,7 +572,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"SystemAssigned","principalId":"10b971a6-1b43-4344-8e28-19fead330b43","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2","name":"create-app-system-identity-2","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:11:41.5113326Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:12:22.2771882Z"}}' @@ -622,7 +622,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-system-identity-2-default-28-5fdfd8bcb-7tdmz","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T03:12:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-system-identity-2/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:12:19.6834345Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:12:19.6834345Z"}}]}' diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_user_identity.yaml b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_user_identity.yaml index 3877dea789f..cfd4a639ba6 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_user_identity.yaml +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/recordings/test_create_app_with_user_identity.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e55ed5c1ee8942f9a36f033e7bbd28e8","networkProfile":{"outboundIPs":{"publicIPs":["20.237.103.188","20.237.103.250"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T02:05:42.8680393Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T02:11:29.9671687Z"}}' @@ -119,13 +119,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity","name":"create-app-user-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:02:25.2446169Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:02:25.2446169Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/7eeba826-cec6-4e2e-aa57-dd4209a05996?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/7eeba826-cec6-4e2e-aa57-dd4209a05996?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -137,7 +137,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7eeba826-cec6-4e2e-aa57-dd4209a05996/Spring/create-app-user-identity?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7eeba826-cec6-4e2e-aa57-dd4209a05996/Spring/create-app-user-identity?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -169,7 +169,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/7eeba826-cec6-4e2e-aa57-dd4209a05996?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/7eeba826-cec6-4e2e-aa57-dd4209a05996?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/7eeba826-cec6-4e2e-aa57-dd4209a05996","name":"7eeba826-cec6-4e2e-aa57-dd4209a05996","status":"Succeeded","startTime":"2022-09-07T03:02:27.4070512Z","endTime":"2022-09-07T03:02:36.0110471Z"}' @@ -217,7 +217,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity","name":"create-app-user-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:02:25.2446169Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:02:25.2446169Z"}}' @@ -274,13 +274,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:03:02.8539734Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:03:02.8539734Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/8a77610d-d139-4aba-af61-96baa0d176e9?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/8a77610d-d139-4aba-af61-96baa0d176e9?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -292,7 +292,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8a77610d-d139-4aba-af61-96baa0d176e9/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8a77610d-d139-4aba-af61-96baa0d176e9/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -329,13 +329,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity","name":"create-app-user-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:02:25.2446169Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:03:05.4633187Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -347,7 +347,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983/Spring/create-app-user-identity?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983/Spring/create-app-user-identity?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -379,7 +379,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/8a77610d-d139-4aba-af61-96baa0d176e9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/8a77610d-d139-4aba-af61-96baa0d176e9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/8a77610d-d139-4aba-af61-96baa0d176e9","name":"8a77610d-d139-4aba-af61-96baa0d176e9","status":"Succeeded","startTime":"2022-09-07T03:03:05.046743Z","endTime":"2022-09-07T03:03:32.3292434Z"}' @@ -427,7 +427,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/create-app-user-identity/operationId/9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983","name":"9d1b53dd-a05b-4f0e-87b6-9f2d12d1b983","status":"Succeeded","startTime":"2022-09-07T03:03:06.4467378Z","endTime":"2022-09-07T03:03:13.0593068Z"}' @@ -475,7 +475,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity","name":"create-app-user-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:02:25.2446169Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:03:05.4633187Z"}}' @@ -525,7 +525,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-user-identity-default-24-67fd8f6849-mhr4r","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T03:03:10Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:03:02.8539734Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:03:02.8539734Z"}}' @@ -575,7 +575,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":{"type":"UserAssigned","principalId":null,"tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-1":{"principalId":"f8c67039-dd17-48f7-a1e2-5f6884e6e8fb","clientId":"e4f56bfa-0cdb-4930-836d-62088046f751"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli/providers/microsoft.managedidentity/userassignedidentities/managed-identity-2":{"principalId":"c2d73bc7-e20e-4e4a-a61c-20d0dea549bc","clientId":"0d0f5a96-197b-47ef-9c94-99275fda77f2"}}},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity","name":"create-app-user-identity","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:02:25.2446169Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:03:05.4633187Z"}}' @@ -625,7 +625,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"create-app-user-identity-default-24-67fd8f6849-mhr4r","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-09-07T03:03:10Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/create-app-user-identity/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T03:03:02.8539734Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T03:03:02.8539734Z"}}]}' diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_force_set_scenario.py b/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_force_set_scenario.py index 81655274b63..abc9966816f 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_force_set_scenario.py +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_force_set_scenario.py @@ -5,7 +5,7 @@ from azure.cli.testsdk import (ScenarioTest, record_only) -from ....vendored_sdks.appplatform.v2024_01_01_preview.models import ManagedIdentityType +from ....vendored_sdks.appplatform.v2024_05_01_preview.models import ManagedIdentityType """ In order to re-run this scenario test, diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_remove.py b/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_remove.py index 0dae0cc50c5..7f52af19217 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_remove.py +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_remove.py @@ -5,7 +5,7 @@ import unittest from argparse import Namespace -from ....vendored_sdks.appplatform.v2024_01_01_preview.models import ManagedIdentityType +from ....vendored_sdks.appplatform.v2024_05_01_preview.models import ManagedIdentityType from ....app_managed_identity import (_get_new_identity_type_for_remove) diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_scenario.py b/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_scenario.py index 0c03fcb4748..24cd221da14 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_scenario.py +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/test_app_managed_identity_scenario.py @@ -5,7 +5,7 @@ from azure.cli.testsdk import (ScenarioTest, record_only) -from ....vendored_sdks.appplatform.v2024_01_01_preview.models import ManagedIdentityType +from ....vendored_sdks.appplatform.v2024_05_01_preview.models import ManagedIdentityType """ In order to re-run this scenario test, diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_both_identity_scenario.py b/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_both_identity_scenario.py index 3e0627c061f..1a0598c3849 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_both_identity_scenario.py +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_both_identity_scenario.py @@ -5,7 +5,7 @@ from azure.cli.testsdk import (ScenarioTest, record_only) -from ....vendored_sdks.appplatform.v2024_01_01_preview.models import ManagedIdentityType +from ....vendored_sdks.appplatform.v2024_05_01_preview.models import ManagedIdentityType """ In order to re-run this scenario test, diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_system_identity_scenario.py b/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_system_identity_scenario.py index 4a418d19899..5908e9a76a3 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_system_identity_scenario.py +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_system_identity_scenario.py @@ -5,7 +5,7 @@ from azure.cli.testsdk import (ScenarioTest, record_only) -from ....vendored_sdks.appplatform.v2024_01_01_preview.models import ManagedIdentityType +from ....vendored_sdks.appplatform.v2024_05_01_preview.models import ManagedIdentityType @record_only() diff --git a/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_user_identity_scenario.py b/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_user_identity_scenario.py index b23860d2e15..c9ea1bd7f3d 100644 --- a/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_user_identity_scenario.py +++ b/src/spring/azext_spring/tests/latest/app_managed_identity/test_create_app_with_user_identity_scenario.py @@ -5,7 +5,7 @@ from azure.cli.testsdk import (ScenarioTest, record_only) -from ....vendored_sdks.appplatform.v2024_01_01_preview.models import ManagedIdentityType +from ....vendored_sdks.appplatform.v2024_05_01_preview.models import ManagedIdentityType """ In order to re-run this scenario test, diff --git a/src/spring/azext_spring/tests/latest/custom_preparers.py b/src/spring/azext_spring/tests/latest/custom_preparers.py index 8b5f16063b0..b805c6972f9 100644 --- a/src/spring/azext_spring/tests/latest/custom_preparers.py +++ b/src/spring/azext_spring/tests/latest/custom_preparers.py @@ -162,5 +162,7 @@ def remove_resource(self, name, **kwargs): return group = self._get_resource_group(**kwargs) spring = self._get_spring(**kwargs) - template = 'az spring app delete -n {} -s {} -g {}'.format(name, spring, group) - self.live_only_execute(self.cli_ctx, template) + try: + self.live_only_execute(self.cli_ctx, 'spring app delete -n {} -g {} -s {}'.format(name, group, spring)) + except: + pass \ No newline at end of file diff --git a/src/spring/azext_spring/tests/latest/recordings/test_Builder.yaml b/src/spring/azext_spring/tests/latest/recordings/test_Builder.yaml index d581e3b741f..ec030d1ed75 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_Builder.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_Builder.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:22 GMT + - Mon, 15 Apr 2024 06:59:35 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11998' + x-msedge-ref: + - 'Ref A: E341B419E1264C5E93972D54ED8AE02D Ref B: MAA201060514031 Ref C: 2024-04-15T06:59:34Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -63,9 +63,9 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"KPack builder does not exist","target":"default/test-builder","details":null}}' @@ -77,7 +77,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:22 GMT + - Mon, 15 Apr 2024 06:59:36 GMT expires: - '-1' pragma: @@ -86,10 +86,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E94CCDBDDE284EDD96BBCE059C52FCA4 Ref B: MAA201060516051 Ref C: 2024-04-15T06:59:36Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -112,39 +116,43 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-05-01-preview response: body: - string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builders","properties":{"provisioningState":"Creating","stack":{"id":"io.buildpacks.stacks.bionic","version":"base"},"buildpackGroups":[{"name":"mix","buildpacks":[{"id":"tanzu-buildpacks/java-azure"}]}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder","name":"test-builder","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.0516693Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.0516693Z"}}' + string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builders","properties":{"provisioningState":"Creating","stack":{"id":"io.buildpacks.stacks.bionic","version":"base"},"buildpackGroups":[{"name":"mix","buildpacks":[{"id":"tanzu-buildpacks/java-azure"}]}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder","name":"test-builder","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:59:38.220256Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:59:38.220256Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQY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4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 cache-control: - no-cache content-length: - - '699' + - '695' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:24 GMT + - Mon, 15 Apr 2024 06:59:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/acc53f38-3c45-42fc-a846-991eed30fc38/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7721cae2-617a-4583-b1b8-fa227cf66795/Spring/clitest000002?api-version=2024-05-01-preview&t=638487611791890732&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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NTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=HFtAeRX8gTmAaYChtglQ2Kzj89O-UnVRvXzJnHmx-7hQ-KCP-Och6kTNTQXC6ezvMdNwNqBM7fHp2B3Vh6IxXbEYEs7qAsIQQ0N1S4XqJM_U4tvvhXyUuycdoGs5MoyDQWs9dOx76mjwM8s-h75-EMenZb4M3UeLG6zqC1uY55umUHMgIFmZKafGsQQ3gDS5jVKvC-Q1t2rfyXCjO1UvjHy90CB81mdNEfFya8Mb66u8Bg5Qn1UbE3GsAWfk-OigWX1ikKDskUfItkkoR2FDjGA0rGRnrXIrMi05JoH7rUKgUM655N50SbUD7_x6iC_LjwaAfvl6kfNAd7hlrSPwaQ&h=W-7g4fN6vEnErA3gtGoIdxtAQOrvCtuaEk288pqcNZk pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 611D0F52586F4A6FBDFDFF1A1008EFDF Ref B: MAA201060515019 Ref C: 2024-04-15T06:59:38Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -162,21 +170,21 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLB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TIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38","name":"acc53f38-3c45-42fc-a846-991eed30fc38","status":"Running","startTime":"2023-04-03T07:13:24.8705414Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '327' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:25 GMT + - Mon, 15 Apr 2024 06:59:40 GMT expires: - '-1' pragma: @@ -185,14 +193,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F8A2395A98CB4C3EACECC88ECA84C5E2 Ref B: MAA201060515019 Ref C: 2024-04-15T06:59:39Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -210,21 +218,21 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024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dRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38","name":"acc53f38-3c45-42fc-a846-991eed30fc38","status":"Running","startTime":"2023-04-03T07:13:24.8705414Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '327' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:35 GMT + - Mon, 15 Apr 2024 06:59:51 GMT expires: - '-1' pragma: @@ -233,14 +241,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B9E3079CB9474093AD24B54FE9CF6ACC Ref B: MAA201060515019 Ref C: 2024-04-15T06:59:50Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -258,21 +266,21 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2M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BOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/acc53f38-3c45-42fc-a846-991eed30fc38","name":"acc53f38-3c45-42fc-a846-991eed30fc38","status":"Succeeded","startTime":"2023-04-03T07:13:24.8705414Z","endTime":"2023-04-03T07:13:44.1237178Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '327' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:45 GMT + - Mon, 15 Apr 2024 07:00:02 GMT expires: - '-1' pragma: @@ -281,14 +289,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 28410149345B45C491731EA36B4D5808 Ref B: MAA201060515019 Ref C: 2024-04-15T07:00:02Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -306,21 +314,21 @@ interactions: ParameterSetName: - -n -g --service --builder-file User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaC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PdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 response: body: - string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builders","properties":{"provisioningState":"Succeeded","stack":{"id":"io.buildpacks.stacks.bionic","version":"base"},"buildpackGroups":[{"name":"mix","buildpacks":[{"id":"tanzu-buildpacks/java-azure"}]}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder","name":"test-builder","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.0516693Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.0516693Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' headers: cache-control: - no-cache content-length: - - '700' + - '327' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:45 GMT + - Mon, 15 Apr 2024 07:00:13 GMT expires: - '-1' pragma: @@ -329,14 +337,542 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 664430BCBC6E488D96C05727EA804016 Ref B: MAA201060515019 Ref C: 2024-04-15T07:00:13Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7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whfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:00:25 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 009FDD0A405C4324B4DD26BE6A3C1693 Ref B: MAA201060515019 Ref C: 2024-04-15T07:00:24Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0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T1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:00:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1340D8759A8D4FF082D0F5EEE94B4731 Ref B: MAA201060515019 Ref C: 2024-04-15T07:00:35Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBA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JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:00:47 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1A71C1994C1C45C5A59F0C09B161410C Ref B: MAA201060515019 Ref C: 2024-04-15T07:00:46Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9Hf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ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:00:58 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: EB3E01439B9C4CAE8C7A28687E6E3221 Ref B: MAA201060515019 Ref C: 2024-04-15T07:00:57Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyME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DQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:01:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 15B4DA5B1702420CA59CE4782D1AA002 Ref B: MAA201060515019 Ref C: 2024-04-15T07:01:08Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5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KU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:01:20 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C9DB2767C04D42D68D65932DC30EAAB0 Ref B: MAA201060515019 Ref C: 2024-04-15T07:01:19Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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v-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:01:31 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 42ADC03EBA78433088C05C983EF3B276 Ref B: MAA201060515019 Ref C: 2024-04-15T07:01:31Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUH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sMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:01:42 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 69DBA40DCD124FFC891F32972D486F4E Ref B: MAA201060515019 Ref C: 2024-04-15T07:01:41Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvb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2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Running","startTime":"2024-04-15T06:59:39.0262277Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:01:54 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 1170E0359F7E44778CF8EDB450FA140C Ref B: MAA201060515019 Ref C: 2024-04-15T07:01:53Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795?api-version=2024-05-01-preview&t=638487611791734225&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ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fzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mdFKwpU-DE8DK8n_yVHGnss2TanPGITVMdr-J6e3QDkUdKvKE31WsHQQw-m_7W4ZTqbyjb-F7ZXcnSjeySDzRUMSIoOTCFVbFjRDQZLLxZe7IL93bEAaYqL70utS_CTKUFa3ztYUCPdoDDj0-tycX4HpsGC-k6MuCWc_rHf-tY1zgUsk1shdzqRAfRXKQaVG8xA66vo8rDHG1658dL-HCIeooDqqL1vb-ghSgjh9gjfffj1Y2Ikw04hEIVkakyzapLjAit0Kg98QtKU9Fy8JJpENR8WYc8AG4PDyj_FhjEW6obtTm2v2QNPLnNFvNsOkZ7PwhfI5AtbXga4PTAotiw&h=3PFQ1rTsZrHbz-LnKs5_8JSMF_D61Drpo-LLWIEztL8 + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/7721cae2-617a-4583-b1b8-fa227cf66795","name":"7721cae2-617a-4583-b1b8-fa227cf66795","status":"Succeeded","startTime":"2024-04-15T06:59:39.0262277Z","endTime":"2024-04-15T07:02:02.3609203Z"}' + headers: + cache-control: + - no-cache + content-length: + - '370' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:02:05 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5B02745125114229BC369DCC5DABF8DA Ref B: MAA201060515019 Ref C: 2024-04-15T07:02:04Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring build-service builder create + Connection: + - keep-alive + ParameterSetName: + - -n -g --service --builder-file + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-05-01-preview + response: + body: + string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builders","properties":{"provisioningState":"Succeeded","stack":{"id":"io.buildpacks.stacks.bionic","version":"base"},"buildpackGroups":[{"name":"mix","buildpacks":[{"id":"tanzu-buildpacks/java-azure","version":"10.0.0"}]}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder","name":"test-builder","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:59:38.220256Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:59:38.220256Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '715' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:02:06 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 7C5E5C6EE0664AD2B8FA8A7CEDF871AB Ref B: MAA201060515019 Ref C: 2024-04-15T07:02:05Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -354,21 +890,21 @@ interactions: ParameterSetName: - -n -g --service User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:48 GMT + - Mon, 15 Apr 2024 07:02:08 GMT expires: - '-1' pragma: @@ -377,16 +913,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: F857D4589C304F57B08B35BBB4C6C77A Ref B: MAA201060513045 Ref C: 2024-04-15T07:02:08Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -404,21 +940,21 @@ interactions: ParameterSetName: - -n -g --service User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder?api-version=2024-05-01-preview response: body: - string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builders","properties":{"provisioningState":"Succeeded","stack":{"id":"io.buildpacks.stacks.bionic","version":"base"},"buildpackGroups":[{"name":"mix","buildpacks":[{"id":"tanzu-buildpacks/java-azure"}]}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder","name":"test-builder","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.0516693Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.0516693Z"}}' + string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builders","properties":{"provisioningState":"Succeeded","stack":{"id":"io.buildpacks.stacks.bionic","version":"base"},"buildpackGroups":[{"name":"mix","buildpacks":[{"id":"tanzu-buildpacks/java-azure","version":"10.0.0"}]}]},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder","name":"test-builder","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:59:38.220256Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:59:38.220256Z"}}' headers: cache-control: - no-cache content-length: - - '700' + - '715' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:48 GMT + - Mon, 15 Apr 2024 07:02:10 GMT expires: - '-1' pragma: @@ -427,14 +963,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8290B58CBADC4D609047AAEEA1ABD13C Ref B: MAA201060516051 Ref C: 2024-04-15T07:02:10Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -452,21 +988,21 @@ interactions: ParameterSetName: - -n -g --service User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:49 GMT + - Mon, 15 Apr 2024 07:02:12 GMT expires: - '-1' pragma: @@ -475,16 +1011,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 2A7797CD4D8C49BAB1EF5F3CC2E2FC08 Ref B: MAA201060513027 Ref C: 2024-04-15T07:02:12Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -504,9 +1040,9 @@ interactions: ParameterSetName: - -n -g --service User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder/listUsingDeployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/test-builder/listUsingDeployments?api-version=2024-05-01-preview response: body: string: '{"deployments":[]}' @@ -518,7 +1054,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:51 GMT + - Mon, 15 Apr 2024 07:02:14 GMT expires: - '-1' pragma: @@ -527,16 +1063,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: B128F0A85AB5438B9F962425D8F203FB Ref B: MAA201060514029 Ref C: 2024-04-15T07:02:14Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_api_portal.yaml b/src/spring/azext_spring/tests/latest/recordings/test_api_portal.yaml index 0a4708082b8..5024c1dd411 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_api_portal.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_api_portal.yaml @@ -16,7 +16,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"cli-unittest-tanzu-apiportal-8daf7.svc.azuremicroservices.io","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-776f95cbc-pqvwh","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-13T08:12:29.6887512Z"}}' @@ -72,13 +72,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","public":true,"url":"cli-unittest-tanzu-apiportal-8daf7.svc.azuremicroservices.io","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-776f95cbc-pqvwh","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T02:49:48.8622266Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -90,7 +90,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/cc5ee95a-c412-480e-a852-22659b444f47/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/cc5ee95a-c412-480e-a852-22659b444f47/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -123,7 +123,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47","name":"cc5ee95a-c412-480e-a852-22659b444f47","status":"Running","startTime":"2023-04-14T02:49:50.0826267Z"}' @@ -172,7 +172,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47","name":"cc5ee95a-c412-480e-a852-22659b444f47","status":"Running","startTime":"2023-04-14T02:49:50.0826267Z"}' @@ -221,7 +221,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47","name":"cc5ee95a-c412-480e-a852-22659b444f47","status":"Running","startTime":"2023-04-14T02:49:50.0826267Z"}' @@ -270,7 +270,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc5ee95a-c412-480e-a852-22659b444f47","name":"cc5ee95a-c412-480e-a852-22659b444f47","status":"Succeeded","startTime":"2023-04-14T02:49:50.0826267Z","endTime":"2023-04-14T02:50:16.6385874Z"}' @@ -319,7 +319,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"cli-unittest-tanzu-apiportal-8daf7.svc.azuremicroservices.io","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-776f95cbc-pqvwh","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T02:49:48.8622266Z"}}' @@ -367,7 +367,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000003.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' @@ -417,7 +417,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"cli-unittest-tanzu-apiportal-8daf7.svc.azuremicroservices.io","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-776f95cbc-pqvwh","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T02:49:48.8622266Z"}}' @@ -465,7 +465,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000003.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' @@ -515,7 +515,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"cli-unittest-tanzu-apiportal-8daf7.svc.azuremicroservices.io","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-776f95cbc-pqvwh","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T02:49:48.8622266Z"}}' @@ -568,13 +568,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","public":false,"url":"cli-unittest-tanzu-apiportal-8daf7.svc.azuremicroservices.io","httpsOnly":false,"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-776f95cbc-pqvwh","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T02:50:33.0429339Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -586,7 +586,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/cc667c87-d70f-4254-88b7-571f2e3e721a/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/cc667c87-d70f-4254-88b7-571f2e3e721a/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -618,7 +618,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a","name":"cc667c87-d70f-4254-88b7-571f2e3e721a","status":"Running","startTime":"2023-04-14T02:50:34.2228295Z"}' @@ -666,7 +666,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a","name":"cc667c87-d70f-4254-88b7-571f2e3e721a","status":"Running","startTime":"2023-04-14T02:50:34.2228295Z"}' @@ -714,7 +714,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a","name":"cc667c87-d70f-4254-88b7-571f2e3e721a","status":"Running","startTime":"2023-04-14T02:50:34.2228295Z"}' @@ -762,7 +762,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a","name":"cc667c87-d70f-4254-88b7-571f2e3e721a","status":"Running","startTime":"2023-04-14T02:50:34.2228295Z"}' @@ -810,7 +810,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a","name":"cc667c87-d70f-4254-88b7-571f2e3e721a","status":"Running","startTime":"2023-04-14T02:50:34.2228295Z"}' @@ -858,7 +858,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/cc667c87-d70f-4254-88b7-571f2e3e721a","name":"cc667c87-d70f-4254-88b7-571f2e3e721a","status":"Succeeded","startTime":"2023-04-14T02:50:34.2228295Z","endTime":"2023-04-14T02:51:26.3846032Z"}' @@ -906,7 +906,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-5fbd5fcfdb-p24n2","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000002/providers/Microsoft.AppPlatform/Spring/clitest000003/apiPortals/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T07:00:28.9949261Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T02:50:33.0429339Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_apm.yaml b/src/spring/azext_spring/tests/latest/recordings/test_apm.yaml index 2b5d4d8c1f4..142876701ee 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_apm.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_apm.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:18:08 GMT + - Mon, 15 Apr 2024 06:57:57 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 989699779A0549A9857392B8FA593338 Ref B: MAA201060514025 Ref C: 2024-04-15T06:57:57Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -63,27 +63,37 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"APM does not exist","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","details":null}}' headers: cache-control: - - no-store, no-cache + - no-cache content-length: - '237' content-type: - application/json date: - - Wed, 24 May 2023 10:18:10 GMT + - Mon, 15 Apr 2024 06:57:59 GMT + expires: + - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5C42914D56E54B8B97FC3C4FA0A44DE8 Ref B: MAA201060514009 Ref C: 2024-04-15T06:57:58Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -106,15 +116,15 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:11.1288137Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:11.1288137Z"}}' + string: '{"properties":{"provisioningState":"Creating","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:00.7514002Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:00.7514002Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/7548b526-f4fc-486a-a51e-a3529bf9617c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/1a27695d-6701-41d9-ba75-23d157adf394?api-version=2024-05-01-preview&t=638487610818920920&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjA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zftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=VKzi-jcMXCBiiBUx1oGT9SUh0k7Tfg6O6GZqx76vYdgNf3xfLhl_Nl4sbN0gsKhTELsaH1FY9riBoieJ4pppmia4eoH1QV7AgC7Pj0qRwbZms-pkagFRxGMV38ngcH4TVBTVXzfkChDP5hv4tCjtNNnwFct0URf1mw7_6CvkfcgNgDlydSkrflrhT---iE3VBcQa27iGHO1Ams0IaKhO0VS766H09D4kCuHhdyIEmx475lfQYZUQViOAXKS7m_WbI9THG4ReL28AL3_ribIE92B5Q930JyUjYZc78z3cH2NCQa0dxxYx-JW9vvJ1C0lWo2Fu7PmUOAejuknVVUU65g&h=lgcC7J50kjNUxUBxz9XPlxegglmqZVv8oQWQ41MOmYk cache-control: - no-cache content-length: @@ -122,23 +132,27 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:18:12 GMT + - Mon, 15 Apr 2024 06:58:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/7548b526-f4fc-486a-a51e-a3529bf9617c/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1a27695d-6701-41d9-ba75-23d157adf394/Spring/clitest000002?api-version=2024-05-01-preview&t=638487610819076646&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wP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YcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Jx3S5N5ckknFxbRWNGL2tTIU_4y-HoM3RJC9UyUIp8RIgET7J5BMcActNB-9Og5dasQh351O-b2fY0OZpnnNaYfxSEW52Gc4eiJg9YPYTjdpvPhanaig_uawLWbrZYa67FYG1hiVIcN2hNVIkuyEyGH1M5yP4nl7RoVyVILiWbaPSDE0vJZRQAj671OYG2oj6Y1fjctXBu0zLYEfDZywQ07F7V9FcvTpJPwkBYu-drsYtvjGrhGFNf4YREdERZn1RgkdcSpR4vK6e4CcmUZAxmOFOTgkXHBfakQ85rs0d_q7oXuygsHq1AxWeRJLP4wes8kkJEZ3KAsEYgmNwP0kmA&h=btG9DfJV2lsjsw9ikzrFfmL7WXZesTfVvfYyUep3-zY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: B3ED7BCE3AF246F1A03D153EB1A0896D Ref B: MAA201060514029 Ref C: 2024-04-15T06:58:00Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -156,21 +170,69 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/1a27695d-6701-41d9-ba75-23d157adf394?api-version=2024-05-01-preview&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EfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=VKzi-jcMXCBiiBUx1oGT9SUh0k7Tfg6O6GZqx76vYdgNf3xfLhl_Nl4sbN0gsKhTELsaH1FY9riBoieJ4pppmia4eoH1QV7AgC7Pj0qRwbZms-pkagFRxGMV38ngcH4TVBTVXzfkChDP5hv4tCjtNNnwFct0URf1mw7_6CvkfcgNgDlydSkrflrhT---iE3VBcQa27iGHO1Ams0IaKhO0VS766H09D4kCuHhdyIEmx475lfQYZUQViOAXKS7m_WbI9THG4ReL28AL3_ribIE92B5Q930JyUjYZc78z3cH2NCQa0dxxYx-JW9vvJ1C0lWo2Fu7PmUOAejuknVVUU65g&h=lgcC7J50kjNUxUBxz9XPlxegglmqZVv8oQWQ41MOmYk + response: + body: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/1a27695d-6701-41d9-ba75-23d157adf394","name":"1a27695d-6701-41d9-ba75-23d157adf394","status":"Running","startTime":"2024-04-15T06:58:01.5148571Z"}' + headers: + cache-control: + - no-cache + content-length: + - '327' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 06:58:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 87BC7E489690439499CAC3C61A4D4AA6 Ref B: MAA201060514029 Ref C: 2024-04-15T06:58:02Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring apm create + Connection: + - keep-alive + ParameterSetName: + - --name --type --properties --secrets -g -s + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/7548b526-f4fc-486a-a51e-a3529bf9617c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/1a27695d-6701-41d9-ba75-23d157adf394?api-version=2024-05-01-preview&t=638487610818920920&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_s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475lfQYZUQViOAXKS7m_WbI9THG4ReL28AL3_ribIE92B5Q930JyUjYZc78z3cH2NCQa0dxxYx-JW9vvJ1C0lWo2Fu7PmUOAejuknVVUU65g&h=lgcC7J50kjNUxUBxz9XPlxegglmqZVv8oQWQ41MOmYk response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/7548b526-f4fc-486a-a51e-a3529bf9617c","name":"7548b526-f4fc-486a-a51e-a3529bf9617c","status":"Succeeded","startTime":"2023-05-24T10:18:11.9544217Z","endTime":"2023-05-24T10:18:20.7029505Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/1a27695d-6701-41d9-ba75-23d157adf394","name":"1a27695d-6701-41d9-ba75-23d157adf394","status":"Succeeded","startTime":"2024-04-15T06:58:01.5148571Z","endTime":"2024-04-15T06:58:03.2086513Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Wed, 24 May 2023 10:18:42 GMT + - Mon, 15 Apr 2024 06:58:13 GMT expires: - '-1' pragma: @@ -179,14 +241,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 91F331672F1544EEA0F21E8C7B44C396 Ref B: MAA201060514029 Ref C: 2024-04-15T06:58:12Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -204,12 +266,12 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:11.1288137Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:11.1288137Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:00.7514002Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:00.7514002Z"}}' headers: cache-control: - no-cache @@ -218,7 +280,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:18:43 GMT + - Mon, 15 Apr 2024 06:58:14 GMT expires: - '-1' pragma: @@ -227,14 +289,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 14E82E990F604F6D9561B04F0CB10C56 Ref B: MAA201060514029 Ref C: 2024-04-15T06:58:14Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -252,21 +314,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:18:45 GMT + - Mon, 15 Apr 2024 06:58:17 GMT expires: - '-1' pragma: @@ -275,16 +337,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 07C3EAA6CD75426EB2AACA9CA79BA847 Ref B: MAA201060515019 Ref C: 2024-04-15T06:58:16Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -302,12 +364,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:11.1288137Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:11.1288137Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:00.7514002Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:00.7514002Z"}}' headers: cache-control: - no-cache @@ -316,7 +378,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:18:46 GMT + - Mon, 15 Apr 2024 06:58:18 GMT expires: - '-1' pragma: @@ -325,14 +387,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D67EC367E7584142B06FF05570F2BB90 Ref B: MAA201060515051 Ref C: 2024-04-15T06:58:17Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -352,9 +414,9 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test/listSecretKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test/listSecretKeys?api-version=2024-05-01-preview response: body: string: '{"value":["x","y"]}' @@ -366,7 +428,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:18:46 GMT + - Mon, 15 Apr 2024 06:58:19 GMT expires: - '-1' pragma: @@ -375,16 +437,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: F8BFB4E3871242A6B4A9E14FE694E258 Ref B: MAA201060515051 Ref C: 2024-04-15T06:58:19Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -402,21 +464,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:18:48 GMT + - Mon, 15 Apr 2024 06:58:21 GMT expires: - '-1' pragma: @@ -425,16 +487,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11997' + x-msedge-ref: + - 'Ref A: 527D2E0FC32543A195BB305B84AE0560 Ref B: MAA201060514017 Ref C: 2024-04-15T06:58:21Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -452,27 +514,37 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"APM does not exist","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","details":null}}' headers: cache-control: - - no-store, no-cache + - no-cache content-length: - '239' content-type: - application/json date: - - Wed, 24 May 2023 10:18:50 GMT + - Mon, 15 Apr 2024 06:58:23 GMT + expires: + - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: CBD3BD745E0643FCAEFB93715D963313 Ref B: MAA201060516011 Ref C: 2024-04-15T06:58:22Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -495,15 +567,15 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","type":"NewRelic","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:51.0683042Z"}}' + string: '{"properties":{"provisioningState":"Creating","type":"NewRelic","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:24.5645552Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/80ef4a05-ad3f-4505-908a-48ac160da3de?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/571156eb-83be-4406-b0ed-133f6f75104d?api-version=2024-05-01-preview&t=638487611058768287&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2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RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=qkMVwSWFLoHu2p6YiMAh4eLXgkVW_snJF2fWu81BBp9gKoh9NA_aE1PudrOn2hxM-ZcL2O3GgoTZdwRxmfSLGmxIrmWv7_m0H2hW1uhgkCIQ7dI3WOfKdiLJPcsYiWjS952oTLNJGnILJguNP6OYbdA6kHwSzaO4V1vhkGH38oiihwaev_EPVB_mNCSS6tkERXXYPKNf-2u9jGJcvBmCsAjVnBGpFYTW2bR55Q2rQmOkpkCmqCPQbjXQauTeqTyxTb4KiDXyZBv8KUB3NF6rEOyO7T8t12N7oDIPkSBxMGYpszbey6zD5sE5ielI1nNQm2riHMgSsbsA4tpDQN4BUA&h=aicvSVy9bfTrMjJigY_LzJX9xXPLtcsPP_ANweayfVU cache-control: - no-cache content-length: @@ -511,23 +583,27 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:18:52 GMT + - Mon, 15 Apr 2024 06:58:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/80ef4a05-ad3f-4505-908a-48ac160da3de/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/571156eb-83be-4406-b0ed-133f6f75104d/Spring/clitest000002?api-version=2024-05-01-preview&t=638487611058768287&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVh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gWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=j21PV864V76jDw7gqs8tpt2lL6joohKg5L_YSr1xfQyQkGv3b46O2PhotV55pJNMeVwmWvxda_FtR3M2HarDuNwsNK4FvhD5iUJ4DXWe7EALEfvJkMLKFRoBlu5TMS_etC3_ChrmGh5y1rMe2Ro0_IRxpxlhR9L-1hLc0n4eDqxmTOmVLgI8LjIRMWdPyy1aLEDYIOGSuAQtZxF3H7yNJeY3QHXPzNO1pC6yCXFc5r61rdgOJafqDlA5noJzYlFfW9cr5__q6dB3Ca6-Yl0fh7NOZK70pS-xptMS1C-rsX9u4HSxk5zRQ0r08KpeQs8sFGYHJe48cPulXhSLVovW_w&h=VINHCwvrO-fCP2E5EX29xM5DSXVvIHa3l_MPZ8a9x8M pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 4B22BC23F40949D7BE2C41A00888FCB1 Ref B: MAA201060515031 Ref C: 2024-04-15T06:58:24Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -545,12 +621,12 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/80ef4a05-ad3f-4505-908a-48ac160da3de?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/571156eb-83be-4406-b0ed-133f6f75104d?api-version=2024-05-01-preview&t=638487611058768287&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2Vyd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TAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=qkMVwSWFLoHu2p6YiMAh4eLXgkVW_snJF2fWu81BBp9gKoh9NA_aE1PudrOn2hxM-ZcL2O3GgoTZdwRxmfSLGmxIrmWv7_m0H2hW1uhgkCIQ7dI3WOfKdiLJPcsYiWjS952oTLNJGnILJguNP6OYbdA6kHwSzaO4V1vhkGH38oiihwaev_EPVB_mNCSS6tkERXXYPKNf-2u9jGJcvBmCsAjVnBGpFYTW2bR55Q2rQmOkpkCmqCPQbjXQauTeqTyxTb4KiDXyZBv8KUB3NF6rEOyO7T8t12N7oDIPkSBxMGYpszbey6zD5sE5ielI1nNQm2riHMgSsbsA4tpDQN4BUA&h=aicvSVy9bfTrMjJigY_LzJX9xXPLtcsPP_ANweayfVU response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/80ef4a05-ad3f-4505-908a-48ac160da3de","name":"80ef4a05-ad3f-4505-908a-48ac160da3de","status":"Succeeded","startTime":"2023-05-24T10:18:52.2329538Z","endTime":"2023-05-24T10:19:01.153233Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/571156eb-83be-4406-b0ed-133f6f75104d","name":"571156eb-83be-4406-b0ed-133f6f75104d","status":"Succeeded","startTime":"2024-04-15T06:58:25.5638711Z","endTime":"2024-04-15T06:58:26.2251496Z"}' headers: cache-control: - no-cache @@ -559,7 +635,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:19:23 GMT + - Mon, 15 Apr 2024 06:58:26 GMT expires: - '-1' pragma: @@ -568,14 +644,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 26B439E843254CFB890D3C5634FA5EB2 Ref B: MAA201060515031 Ref C: 2024-04-15T06:58:26Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -593,12 +669,12 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:51.0683042Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:24.5645552Z"}}' headers: cache-control: - no-cache @@ -607,7 +683,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:19:23 GMT + - Mon, 15 Apr 2024 06:58:27 GMT expires: - '-1' pragma: @@ -616,14 +692,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B50DA08D1C564BABBE28A562461743EC Ref B: MAA201060515031 Ref C: 2024-04-15T06:58:27Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -641,21 +717,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:19:25 GMT + - Mon, 15 Apr 2024 06:58:29 GMT expires: - '-1' pragma: @@ -664,16 +740,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 40087828BB3F4749A6A2B90A2ADE5FE6 Ref B: MAA201060514047 Ref C: 2024-04-15T06:58:29Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -681,22 +757,22 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring apm create + - spring apm update Connection: - keep-alive ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:51.0683042Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:24.5645552Z"}}' headers: cache-control: - no-cache @@ -705,7 +781,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:19:23 GMT + - Mon, 15 Apr 2024 06:58:31 GMT expires: - '-1' pragma: @@ -714,14 +790,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: CE984310B6134188B91CE1C8CF74CA8F Ref B: MAA201060514027 Ref C: 2024-04-15T06:58:31Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -744,39 +820,43 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:19:26.9151429Z"}}' + string: '{"properties":{"provisioningState":"Updating","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:33.225701Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/280c0d92-7025-41e7-92a1-9ae8520542da?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d562b022-b730-429a-93e2-2fc64b566e76?api-version=2024-05-01-preview&t=638487611145069379&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMG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4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=FC5EDZnSD2d_FmK7N7VYls0U3nUpRjmCV2JFpq3vhu8eLzeQrh5o51Gfd5ToO9QL8oeKKGIkunQUhCvUl2W2-NHSrVkgzxW_MfGGqUPdQEWZf7stHmHrTG6sfjVXC6uhN9kWSWL5RG95e8i5GG4r8FHgxv5aBa4l2WCcUZCY8zB3Goo3BLNsgpNHWGVVoxPIAU3ALkIKZ-Oe-jAgsH2Ri4vMPA1ZcDrbzg7PbXgul5sAKYQ9CIiXJbbJJqFBd_kwjqoxQSh5Lz0-vo_NRRJdfMue-_o4m98neESkT15XaPpNgXL0v7ppK8UTRvPIGw2feFbHEs1_QMJOTblf4V-3cA&h=2uci3-PGTqC8iINZADBl7uL-dtDw-I_xcD1jiMShwCI cache-control: - no-cache content-length: - - '549' + - '548' content-type: - application/json date: - - Wed, 24 May 2023 10:19:28 GMT + - Mon, 15 Apr 2024 06:58:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/280c0d92-7025-41e7-92a1-9ae8520542da/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/d562b022-b730-429a-93e2-2fc64b566e76/Spring/clitest000002?api-version=2024-05-01-preview&t=638487611145069379&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY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DAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=XKq4CkGEOyf716KS22V3QoldgIhWsPvbSGiPy2HVuPXRBEBpVDMSpaflCoppo_EcH6fjSG__6WLGeMaJedGW1Fcxl54O1oYUNTxYsQqM0YrefYE-eXYbic-2O_JqLGTxOuxRNRNw-6PVV_ajBNGpPraj4O4-8yv1EpKyO59RLANZRxMHeE1f1_x1Uz_HC6uXvzWfsdRAyyHUp9jS0LkOAzzGG7Uf5o6scP5C0kfskjh0jJH46nAbkNCD8PmJuXt2iduXmJJBm72dgLDsFkyYVzayAwp4vuRhj_EIKCnfHYpaFPgGr_IFTuoYxMMJQ3Vw2vfJ_FXQin1It-0LoeRq9A&h=_Ik7TC5s48QR7Jo8U_7BizXvkMaZc71EI1-L2oFmv7k pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 723CDF32AD3A49B4B6D39AF780EF3C84 Ref B: MAA201060516029 Ref C: 2024-04-15T06:58:32Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -794,21 +874,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/280c0d92-7025-41e7-92a1-9ae8520542da?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d562b022-b730-429a-93e2-2fc64b566e76?api-version=2024-05-01-preview&t=638487611145069379&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5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kwjqoxQSh5Lz0-vo_NRRJdfMue-_o4m98neESkT15XaPpNgXL0v7ppK8UTRvPIGw2feFbHEs1_QMJOTblf4V-3cA&h=2uci3-PGTqC8iINZADBl7uL-dtDw-I_xcD1jiMShwCI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/280c0d92-7025-41e7-92a1-9ae8520542da","name":"280c0d92-7025-41e7-92a1-9ae8520542da","status":"Succeeded","startTime":"2023-05-24T10:19:28.0435217Z","endTime":"2023-05-24T10:19:35.8060951Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d562b022-b730-429a-93e2-2fc64b566e76","name":"d562b022-b730-429a-93e2-2fc64b566e76","status":"Running","startTime":"2024-04-15T06:58:34.1895482Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '327' content-type: - application/json date: - - Wed, 24 May 2023 10:19:58 GMT + - Mon, 15 Apr 2024 06:58:35 GMT expires: - '-1' pragma: @@ -817,14 +897,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 098A1E2FBC664D73BAE4AF67AF9547DC Ref B: MAA201060516029 Ref C: 2024-04-15T06:58:34Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -842,21 +922,69 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d562b022-b730-429a-93e2-2fc64b566e76?api-version=2024-05-01-preview&t=638487611145069379&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBB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sL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=FC5EDZnSD2d_FmK7N7VYls0U3nUpRjmCV2JFpq3vhu8eLzeQrh5o51Gfd5ToO9QL8oeKKGIkunQUhCvUl2W2-NHSrVkgzxW_MfGGqUPdQEWZf7stHmHrTG6sfjVXC6uhN9kWSWL5RG95e8i5GG4r8FHgxv5aBa4l2WCcUZCY8zB3Goo3BLNsgpNHWGVVoxPIAU3ALkIKZ-Oe-jAgsH2Ri4vMPA1ZcDrbzg7PbXgul5sAKYQ9CIiXJbbJJqFBd_kwjqoxQSh5Lz0-vo_NRRJdfMue-_o4m98neESkT15XaPpNgXL0v7ppK8UTRvPIGw2feFbHEs1_QMJOTblf4V-3cA&h=2uci3-PGTqC8iINZADBl7uL-dtDw-I_xcD1jiMShwCI response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:19:26.9151429Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d562b022-b730-429a-93e2-2fc64b566e76","name":"d562b022-b730-429a-93e2-2fc64b566e76","status":"Succeeded","startTime":"2024-04-15T06:58:34.1895482Z","endTime":"2024-04-15T06:58:41.5230869Z"}' headers: cache-control: - no-cache content-length: - - '550' + - '370' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 06:58:45 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 90AD272DD7DC452B8CE226DF9A1912A3 Ref B: MAA201060516029 Ref C: 2024-04-15T06:58:45Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring apm update + Connection: + - keep-alive + ParameterSetName: + - --name --type --properties --secrets -g -s + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:33.225701Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '549' content-type: - application/json date: - - Wed, 24 May 2023 10:19:59 GMT + - Mon, 15 Apr 2024 06:58:46 GMT expires: - '-1' pragma: @@ -865,14 +993,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 28358FEB4D31417CB31AB39024227515 Ref B: MAA201060516029 Ref C: 2024-04-15T06:58:46Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -890,21 +1018,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:20:01 GMT + - Mon, 15 Apr 2024 06:58:48 GMT expires: - '-1' pragma: @@ -913,16 +1041,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 239E04D84B304BF2B195F2A4CF3D9297 Ref B: MAA201060513047 Ref C: 2024-04-15T06:58:47Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -940,21 +1068,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:19:26.9151429Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:33.225701Z"}}' headers: cache-control: - no-cache content-length: - - '550' + - '549' content-type: - application/json date: - - Wed, 24 May 2023 10:20:02 GMT + - Mon, 15 Apr 2024 06:58:49 GMT expires: - '-1' pragma: @@ -963,14 +1091,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E01A727BF9114B3EAA77699A07A9E500 Ref B: MAA201060515053 Ref C: 2024-04-15T06:58:49Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -990,9 +1118,9 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0/listSecretKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0/listSecretKeys?api-version=2024-05-01-preview response: body: string: '{"value":["o","p"]}' @@ -1004,7 +1132,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:20:04 GMT + - Mon, 15 Apr 2024 06:58:51 GMT expires: - '-1' pragma: @@ -1013,16 +1141,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 4CA83A6923994F3ABCB10917AB0C1C3B Ref B: MAA201060515053 Ref C: 2024-04-15T06:58:50Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1040,21 +1168,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:20:05 GMT + - Mon, 15 Apr 2024 06:58:52 GMT expires: - '-1' pragma: @@ -1063,16 +1191,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 410BF6D39D904566A76C6FDEF88D1FEB Ref B: MAA201060516033 Ref C: 2024-04-15T06:58:52Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1090,21 +1218,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:19:26.9151429Z"}},{"properties":{"provisioningState":"Succeeded","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:11.1288137Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:18:11.1288137Z"}}]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:33.225701Z"}},{"properties":{"provisioningState":"Succeeded","type":"ApplicationInsights","properties":{"a":"b","b":"c"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test","name":"apm-test","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:00.7514002Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:00.7514002Z"}}]}' headers: cache-control: - no-cache content-length: - - '1120' + - '1119' content-type: - application/json date: - - Wed, 24 May 2023 10:20:07 GMT + - Mon, 15 Apr 2024 06:58:54 GMT expires: - '-1' pragma: @@ -1113,14 +1241,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: BA82DEAA36024278BC71CECF725DC2D3 Ref B: MAA201060513027 Ref C: 2024-04-15T06:58:53Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1138,21 +1266,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:20:09 GMT + - Mon, 15 Apr 2024 06:58:56 GMT expires: - '-1' pragma: @@ -1161,16 +1289,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 8D6943D1078A49FC939277141E5F8BDB Ref B: MAA201060516031 Ref C: 2024-04-15T06:58:56Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1190,9 +1318,9 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listGloballyEnabledApms?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listGloballyEnabledApms?api-version=2024-05-01-preview response: body: string: '{"value":[]}' @@ -1204,7 +1332,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:20:11 GMT + - Mon, 15 Apr 2024 06:58:58 GMT expires: - '-1' pragma: @@ -1213,16 +1341,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: F9CD726195B0453A9C096F7A9176D345 Ref B: MAA201060513023 Ref C: 2024-04-15T06:58:57Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1240,21 +1368,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:20:13 GMT + - Mon, 15 Apr 2024 06:59:00 GMT expires: - '-1' pragma: @@ -1263,16 +1391,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: D91553E6A2774F92B2EE1F66A53FE5B4 Ref B: MAA201060514011 Ref C: 2024-04-15T06:58:59Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1290,21 +1418,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:19:26.9151429Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:58:33.225701Z"}}' headers: cache-control: - no-cache content-length: - - '550' + - '549' content-type: - application/json date: - - Wed, 24 May 2023 10:20:15 GMT + - Mon, 15 Apr 2024 06:59:02 GMT expires: - '-1' pragma: @@ -1313,14 +1441,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F82DFB42659B41F8A9DA93EB794DFE9E Ref B: MAA201060515027 Ref C: 2024-04-15T06:59:01Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1342,37 +1470,41 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/enableApmGlobally?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/enableApmGlobally?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/9f856f0c-9f70-46e9-aec9-01ca0fc226d2?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/8f5d350b-91bc-43a1-8709-5ed8bc73bc5d?api-version=2024-05-01-preview&t=638487611443403834&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdF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sL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=biNMj3pvnuiFQP69RPbkmszMxm4jvqdlqiZpYEmwIX2GAoOzvbIHyltkpwsgt_C9owv3nRJD_7chiQkwhHM1azSjP7ZrT-szs2JVS6KKKjHrBQ0a_QT_NdTZOms8kj7k_JmDx7nRswHghYHYExoxXEpYYEtRCNOSbhOBXvwa2a3VUJhmD3K3HV--R-XI8n7Vvl_h5fIRV8Kfzuvm0NMnYNAwcWSGfi1sutJFGaecBJrRyFvnLmahr03UHK6TmlFy5AlcO3lCkb3VYMbIKrLcK3nES8Y_ptCybtwgh3CQ61LzGSOygyudYJauWpF3eXNCKF8-KRR614BLGW6DDU8fsQ&h=PdrnRJacoYUNY8_D5XwHeNmIc9oiINx9cAsQ3tcE9Ms cache-control: - no-cache content-length: - '0' date: - - Wed, 24 May 2023 10:20:16 GMT + - Mon, 15 Apr 2024 06:59:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/9f856f0c-9f70-46e9-aec9-01ca0fc226d2/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8f5d350b-91bc-43a1-8709-5ed8bc73bc5d/Spring/clitest000002?api-version=2024-05-01-preview&t=638487611443560607&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSC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GA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=K-RbRkoLtO1mh9FhiFI80IqPJy0NdBtvJbmZskT6iZvrQ6OSQry9FcLz37d5-f9HKnB0ni-mzTf1r43pKduUIcofw2NrOI-7u9yL97OgRL5auBLPqAyPXnHzpboH7_L-zIIxlk_F89QSghZYgjRszjZWKrHlYyaAYTImvrNeRML0oyHwSAGNSabiB-WmyLrtj4QI2NQRkYvvtDm7MW9DBBS-x2xlJ2DaT9dmcfQugphesD7Nwxpj198SUKubgHbUA3PUnjT8WvPedMl-_YSW5yratzEWnBbShXL2fB_sCB9wlzKU2Xcr5filyPmZOg4Lp59YaY9qQTXx84gy5LQ1Ug&h=E35XUULwncPEIg0g3QLaCFr4P875wRvc3qk5ZYd7szQ pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 8212ED7EF2E9413C9B202F0CB2B94E3D Ref B: MAA201060515027 Ref C: 2024-04-15T06:59:03Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -1390,21 +1522,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/9f856f0c-9f70-46e9-aec9-01ca0fc226d2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/8f5d350b-91bc-43a1-8709-5ed8bc73bc5d?api-version=2024-05-01-preview&t=638487611443403834&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_s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GaecBJrRyFvnLmahr03UHK6TmlFy5AlcO3lCkb3VYMbIKrLcK3nES8Y_ptCybtwgh3CQ61LzGSOygyudYJauWpF3eXNCKF8-KRR614BLGW6DDU8fsQ&h=PdrnRJacoYUNY8_D5XwHeNmIc9oiINx9cAsQ3tcE9Ms response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/9f856f0c-9f70-46e9-aec9-01ca0fc226d2","name":"9f856f0c-9f70-46e9-aec9-01ca0fc226d2","status":"Succeeded","startTime":"2023-05-24T10:20:16.0469946Z","endTime":"2023-05-24T10:20:22.9394058Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/8f5d350b-91bc-43a1-8709-5ed8bc73bc5d","name":"8f5d350b-91bc-43a1-8709-5ed8bc73bc5d","status":"Succeeded","startTime":"2024-04-15T06:59:04.186521Z","endTime":"2024-04-15T06:59:04.8762483Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '369' content-type: - application/json date: - - Wed, 24 May 2023 10:20:46 GMT + - Mon, 15 Apr 2024 06:59:04 GMT expires: - '-1' pragma: @@ -1413,14 +1545,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 799B5E30AE5B4442A18D0C5ADF944AF4 Ref B: MAA201060515027 Ref C: 2024-04-15T06:59:04Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1438,21 +1570,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:20:48 GMT + - Mon, 15 Apr 2024 06:59:07 GMT expires: - '-1' pragma: @@ -1461,16 +1593,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: A7BE738D35A4445CA7BD8C47D25F897F Ref B: MAA201060516031 Ref C: 2024-04-15T06:59:06Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1490,9 +1622,9 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listGloballyEnabledApms?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listGloballyEnabledApms?api-version=2024-05-01-preview response: body: string: '{"value":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0"]}' @@ -1504,7 +1636,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:20:49 GMT + - Mon, 15 Apr 2024 06:59:09 GMT expires: - '-1' pragma: @@ -1513,16 +1645,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' + x-msedge-ref: + - 'Ref A: 4657873A8A6B4D0380B2B7AA2C54A55C Ref B: MAA201060515025 Ref C: 2024-04-15T06:59:08Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1540,21 +1672,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:20:50 GMT + - Mon, 15 Apr 2024 06:59:11 GMT expires: - '-1' pragma: @@ -1563,16 +1695,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: DB12BDC803894760A317F06210F3E5B2 Ref B: MAA201060515019 Ref C: 2024-04-15T06:59:10Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1590,12 +1722,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"yili7@microsoft.com","createdByType":"User","createdAt":"2023-05-24T10:18:51.0683042Z","lastModifiedBy":"yili7@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-24T10:20:15.3865915Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","type":"NewRelic","properties":{"c":"d","d":"e"}},"type":"Microsoft.AppPlatform/Spring/apms","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apms/apm-test-0","name":"apm-test-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:58:24.5645552Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:59:03.1684914Z"}}' headers: cache-control: - no-cache @@ -1604,7 +1736,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:20:51 GMT + - Mon, 15 Apr 2024 06:59:12 GMT expires: - '-1' pragma: @@ -1613,14 +1745,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DB0CCE03F7E2459A953481B19036FCCC Ref B: MAA201060513053 Ref C: 2024-04-15T06:59:12Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1642,37 +1774,41 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/disableApmGlobally?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/disableApmGlobally?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/628f1caa-1a1e-4672-9480-9fb932f6bd7c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f55f23a5-56f3-4874-9c1d-1f00190d7150?api-version=2024-05-01-preview&t=638487611542283934&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-h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Z2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=A49jNUkUBa2e0bzcfeSaDCWeqQ8ageH3ZFHrspml9QgQzXjvg5B79zLSSu0bR5N90iDpPMQO8s_gYeivPigRqP23kpK58KjmNOgN9Y5FuyOe8dVIf9bfPTZ9_sVrtsuMiBQxHpnjXmSXd4DtrZEeMH7Q4TbL2fitvZoxRMUt4ib4enORGSBKBSZCsROa2as9aX6oWu8yZ8_u2hgNtCOns-DFuFg2BX9OUzGazSpHBHYCnV1Edoaya20qOjmNufI9WdFvhUEOf7biwiDigYqW_3brYYJUcT-Ku31m88DQ-J47fptwZCLZYA20hpA2GWtj9GaKQlJRoZprs4yp_NWxmA&h=_V-GBmEux_SVB8xLKuGIInEX0QkKJz9YRX9ZqwUnXCg cache-control: - no-cache content-length: - '0' date: - - Wed, 24 May 2023 10:20:51 GMT + - Mon, 15 Apr 2024 06:59:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/628f1caa-1a1e-4672-9480-9fb932f6bd7c/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/f55f23a5-56f3-4874-9c1d-1f00190d7150/Spring/clitest000002?api-version=2024-05-01-preview&t=638487611542439769&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0w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dIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=FN8o8aDIL-tCu1x0lfcfMlDTTbLbmtaRL9wmCYAFgIpMg4I18rBTta6HSe8uo7iSmFz5ImuX6oAFVYbMPUEmQizUq96ehglGiEKCe5mrmO396JuiHJ9PtgHGJkVxm0fdYaEQ42E5C5b6S9syvAEtQ2HLcqmGwhwYKOxU6FJVPWNxsFOVCSgE7J1RZfA31zJxtq9bt8CsNGR0K8ol05lZFFHdsAruOOBGSm3SwWurHeU2japI2wwHJvl1WZ_B9zM18gIkqP-VB91yqfcGOha5mQmX9LD90NJBUaapLFes1d-g9j9VE3spjFhRn-4EdIbwZb8ytsyADAxap_XNwdya7w&h=ozFAorFfGYMw7HygqfigxCOHSRjxRw7v9veKMY-xYyk pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: FFE0D41E98A742A3B5DC518B923427D7 Ref B: MAA201060513053 Ref C: 2024-04-15T06:59:13Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -1690,21 +1826,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/628f1caa-1a1e-4672-9480-9fb932f6bd7c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f55f23a5-56f3-4874-9c1d-1f00190d7150?api-version=2024-05-01-preview&t=638487611542283934&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSX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1Edoaya20qOjmNufI9WdFvhUEOf7biwiDigYqW_3brYYJUcT-Ku31m88DQ-J47fptwZCLZYA20hpA2GWtj9GaKQlJRoZprs4yp_NWxmA&h=_V-GBmEux_SVB8xLKuGIInEX0QkKJz9YRX9ZqwUnXCg response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/628f1caa-1a1e-4672-9480-9fb932f6bd7c","name":"628f1caa-1a1e-4672-9480-9fb932f6bd7c","status":"Succeeded","startTime":"2023-05-24T10:20:52.6192302Z","endTime":"2023-05-24T10:20:59.5686686Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f55f23a5-56f3-4874-9c1d-1f00190d7150","name":"f55f23a5-56f3-4874-9c1d-1f00190d7150","status":"Succeeded","startTime":"2024-04-15T06:59:14.0765824Z","endTime":"2024-04-15T06:59:14.5906917Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Wed, 24 May 2023 10:21:22 GMT + - Mon, 15 Apr 2024 06:59:15 GMT expires: - '-1' pragma: @@ -1713,14 +1849,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B0FBA1ED5838415A91222491BD14AA57 Ref B: MAA201060513053 Ref C: 2024-04-15T06:59:14Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1738,21 +1874,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 24 May 2023 10:21:24 GMT + - Mon, 15 Apr 2024 06:59:16 GMT expires: - '-1' pragma: @@ -1761,16 +1897,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: B1CB8F64C22F4C0A985E411ECCCD0C9A Ref B: MAA201060516049 Ref C: 2024-04-15T06:59:16Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1790,9 +1926,9 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listGloballyEnabledApms?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listGloballyEnabledApms?api-version=2024-05-01-preview response: body: string: '{"value":[]}' @@ -1804,7 +1940,7 @@ interactions: content-type: - application/json date: - - Wed, 24 May 2023 10:21:25 GMT + - Mon, 15 Apr 2024 06:59:18 GMT expires: - '-1' pragma: @@ -1813,16 +1949,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 31826F65D8B748BEB50C270D8F4433A5 Ref B: MAA201060515021 Ref C: 2024-04-15T06:59:18Z' x-rp-server-mvid: - - 5df1c244-bb69-491b-b05c-0762ee74e0ad + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_connect.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_connect.yaml index 9bc9f1518c3..cc30742dbfc 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_connect.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_connect.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.40.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.4 (Linux-5.15.57.1-microsoft-standard-WSL2-x86_64-with-glibc2.35) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"ResourceGroupNotFound","message":"Resource group diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_create_binding_tanzu_components.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_create_binding_tanzu_components.yaml index 412ce76b823..d532bb7594c 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_create_binding_tanzu_components.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_create_binding_tanzu_components.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-clitest000002-default-45e50-0","status":"Running"},{"name":"eureka-clitest000002-default-45e50-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:36:49.2595186Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:36:49.2595186Z"}}]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-cli-unittest-tanzu-default-6105f-0","status":"Running"},{"name":"eureka-cli-unittest-tanzu-default-6105f-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T00:49:33.2657911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T00:49:33.2657911Z"}}]}' headers: cache-control: - no-cache content-length: - - '760' + - '772' content-type: - application/json date: - - Wed, 13 Dec 2023 04:49:08 GMT + - Mon, 15 Apr 2024 12:47:17 GMT expires: - '-1' pragma: @@ -36,14 +36,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: FE5FD76FCE104B4188F6BE1F139C2AF5 Ref B: MAA201060514035 Ref C: 2024-04-15T12:47:16Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -61,21 +61,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-674f48b866-tx8mp","status":"Running"},{"name":"application-configuration-service-674f48b866-xdsd2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:36:43.4624828Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:36:43.4624828Z"}}]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c8cff7857-hpqqk","status":"Running"},{"name":"application-configuration-service-7c8cff7857-xqwgs","status":"Running"},{"name":"fluxcd-source-controller-879897c8-hgg9d","status":"Running"}],"generation":"Gen2"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T09:05:25.3826847Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T09:05:25.3826847Z"}}]}' headers: cache-control: - no-cache content-length: - - '816' + - '888' content-type: - application/json date: - - Wed, 13 Dec 2023 04:49:47 GMT + - Mon, 15 Apr 2024 12:47:19 GMT expires: - '-1' pragma: @@ -84,14 +84,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: FB240936454D4B7C98340F91CAC13490 Ref B: MAA201060515009 Ref C: 2024-04-15T12:47:18Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -109,9 +109,9 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -123,7 +123,7 @@ interactions: content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:27 GMT + - Mon, 15 Apr 2024 12:47:20 GMT expires: - '-1' pragma: @@ -132,12 +132,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 4A52CF1D9D8843B884EF68AD631256CF Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:20Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -155,21 +159,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"67b1366ccbe5493393823b200803b982","networkProfile":{"outboundIPs":{"publicIPs":["51.145.61.146","51.145.61.151"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:14:48.8587695Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:14:48.8587695Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '947' + - '948' content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:27 GMT + - Mon, 15 Apr 2024 12:47:21 GMT expires: - '-1' pragma: @@ -178,16 +182,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 3490995DE6984E4AAFC690F4351EA5B0 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:21Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -196,7 +200,7 @@ interactions: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}, "applicationConfigurationService": {"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"}}, "httpsOnly": false, "temporaryDisk": {"sizeInGB": 5, "mountPath": "/tmp"}, "enableEndToEndTLS": - false}}' + false, "testEndpointAuthState": "Enabled"}}' headers: Accept: - application/json @@ -207,45 +211,49 @@ interactions: Connection: - keep-alive Content-Length: - - '576' + - '612' Content-Type: - application/json ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:50:44.7761384Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:50:44.7761384Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:23.0159075Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:23.0159075Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/114a55a4-e07b-423c-8be3-002a79d40fa7?api-version=2024-01-01-preview&t=638380398454636552&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKC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_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=CciZyleHC5YiJ_8k3A-d_x3La_SNem6R-JosgeL-WEHNkdcdOVpqe4D7WhhDfxHujhkMM3p7zV5kmFn8DIF4gCUVCP7w8peD13hcavvUkKAYUNEwgq4MQ9g0Z9eC_adi49OHu1NGZ2C_nuBH2dN5K1yTj8J88wSEX_Zo-_KPr9HP1ZgqpqBNs8atDpQs1u1Z7LZEeFrxHzMZo_2P9EH9LUlE0ZNnZhmUg-zO6Dayg124VyOBAJEID-HMi8wtEGwXnhnIIZce0dbGZFnPoToRWZN2kV8sbZ2vlllubOlVFTm0HvzcbEyr48K-xYbTWOLDoOQSXFxvhbFIKseHqxDVzg&h=MsrI6JKNPzy_Z62L6P-llc804ksgcbOl93uM4k6PDX0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/bcd0b092-3530-4841-b71d-c630f268df9a?api-version=2024-05-01-preview&t=638487820443293855&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD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cf6CrGGmVyiU4lwgz4Fs962Wf9r3Ru4bpbUy_5cyv2ZK0QXlX2FCTj1Ubhrtjvdgz6x2dTWfqkSO_erVpTJkhvyVfpwnJ6EiASW_tph7fuUr_oU_WpgWmiFi8RbF5aJgxsSo4vBx2Exn2laRC__oJ3tW6AUSrZqBPqK3wxKZtwBAxVWQbGJNFo_ax1prvPdAS1Spl2QW1TH6ikomW8uxHMZ_lOtLyFHPpM8oP2bDy1zEKRTAM7gA0RUXEHa52ulRRGCxzC4JuBLiovYCS9ciD13cigqK4lm2uJG7bfNpnw&h=RWVZGKucd_QifYh3DlR00EfRzJNWtzms3eAK2lXSmYY cache-control: - no-cache content-length: - - '1247' + - '1269' content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:45 GMT + - Mon, 15 Apr 2024 12:47:23 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/114a55a4-e07b-423c-8be3-002a79d40fa7/Spring/clitest000003?api-version=2024-01-01-preview&t=638380398454793634&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ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DLBM-fKrC-I7hDPmmuAdiUENYzvpUa7gStkWEubRltDEM2whUiuAbP9tLbreZQnAJzcfeNHm8igvYXCiz6y5LDlZ5PyH3_38LG5d_a_VXpnPBqiJageEuyloINRiWxQKIR4Ke-EBmJndLTDhVeLINrb5TJdgrmjGZ57wpVmJ1e6ff_vIcx0m9dYw9JpA2w&h=FxYRs6M943AreaY8x0rymgeT4V0DlCjRsuoxrvOsgdI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bcd0b092-3530-4841-b71d-c630f268df9a/Spring/clitest000003?api-version=2024-05-01-preview&t=638487820443293855&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMC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-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 2A36BB5E830C453AA6D4D92717C68039 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:22Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -263,21 +271,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/114a55a4-e07b-423c-8be3-002a79d40fa7?api-version=2024-01-01-preview&t=638380398454636552&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJ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49OHu1NGZ2C_nuBH2dN5K1yTj8J88wSEX_Zo-_KPr9HP1ZgqpqBNs8atDpQs1u1Z7LZEeFrxHzMZo_2P9EH9LUlE0ZNnZhmUg-zO6Dayg124VyOBAJEID-HMi8wtEGwXnhnIIZce0dbGZFnPoToRWZN2kV8sbZ2vlllubOlVFTm0HvzcbEyr48K-xYbTWOLDoOQSXFxvhbFIKseHqxDVzg&h=MsrI6JKNPzy_Z62L6P-llc804ksgcbOl93uM4k6PDX0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/bcd0b092-3530-4841-b71d-c630f268df9a?api-version=2024-05-01-preview&t=638487820443293855&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hY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AK2lXSmYY response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/114a55a4-e07b-423c-8be3-002a79d40fa7","name":"114a55a4-e07b-423c-8be3-002a79d40fa7","status":"Succeeded","startTime":"2023-12-13T04:50:45.3001101Z","endTime":"2023-12-13T04:50:45.5630799Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/bcd0b092-3530-4841-b71d-c630f268df9a","name":"bcd0b092-3530-4841-b71d-c630f268df9a","status":"Succeeded","startTime":"2024-04-15T12:47:24.1724943Z","endTime":"2024-04-15T12:47:24.4581503Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:45 GMT + - Mon, 15 Apr 2024 12:47:24 GMT expires: - '-1' pragma: @@ -286,14 +294,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9FF631C29DA54425A5EFE578B5CE436E Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:24Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -311,21 +319,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:50:44.7761384Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:50:44.7761384Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:23.0159075Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:23.0159075Z"}}' headers: cache-control: - no-cache content-length: - - '1351' + - '1373' content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:46 GMT + - Mon, 15 Apr 2024 12:47:26 GMT expires: - '-1' pragma: @@ -334,16 +342,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 2CE89A6100204C85AA90AD21902C95AA Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:25Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -368,39 +376,43 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:50:52.8076132Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:50:52.8076132Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:29.7140657Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:29.7140657Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a?api-version=2024-01-01-preview&t=638380398536670111&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBD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bWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=KvjeupbGgmQnr0S-w-uRnG8nInZrijZ5tkeghgpWdU5r0UZV9422t7Re0VSNLwl0i9JXYWFg6uA1EF6L0Z90-KJACREMQuPJZJtPyjj6FR9Xc3eFfzB3exvIi88_-13NF6HCPyndKU4TlRCYy8BTsie1g88kp8ZrBGA8tHI16OQag8X6fHP39LTBt-fc8P1goPFoIj-ZZvPgvmnTppwCGo_3EnxHenUmHFSX_Mukrh5SvPQEJC_GIbttLPS6sFWinqvbjp7lr9Xrt1gB1EowoCXA9VCQf3nRwDxFa6LT6RWy-Spb992Mv2uHnzG2Wk0UqDGhvHY5Bt3RKWA3He4rHA&h=SlYQj2yR92-HSIy0FXRCUxOv8fHkj3w-SML6DiHgpew + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca?api-version=2024-05-01-preview&t=638487820511516555&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNi5j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wCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=D0GZSSvugxCXBD_70tsbupSjY3_HDafZ-U8hs15kJMeEpcUELLgKtvuWFJohaBbZmlgQ0lDpixHIWcjeqgh5tmlJKpqf8wcSueAV_PyiL7vzHXcfd_5qZ6A9iAU_La8vZHGHcDoCqdcZOo9Ao08p8FaTlVLqqsP9__zzrDsuAoghlUUKbZIjf6T6z1q-pR3lNvqjqWcPs_uTa8tOaAzzsqisX6jSQcSVUmHi5QjwLxVjqyP1xmhY3KHGBZJeD-VDJ-K2KmbIAIUomRlG-67fh0sc_EYZtn-wIhPh55fTTOQLTsULPF_J_jK0khM7xu1wXbbwtnU41xJmN5HaV2NNaw&h=YJugHBjeiXAXnRww636blsX8nix9Nr1mmAfriTKANzs cache-control: - no-cache content-length: - - '839' + - '827' content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:53 GMT + - Mon, 15 Apr 2024 12:47:30 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a/Spring/default?api-version=2024-01-01-preview&t=638380398536670111&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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Dge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=Yt1sUui9BvbzWP_VJ99W_xbiStjuEYPmFP4ceA8H4LIwI6fKF0mIO1tXKn7Xp3zAqD4z9xc0RtGbYOdL220ZwlTjTt3g8XI3funb2T7c2hnA4AxS7SV9YvkuAi-N4MOrLrQK_X4zHy0h6zZRQGlJA5foDEgVuyncums9_pWvFjp5JLcItpT73i8eXtGkgAs5P_Vs5vZYb4E-u3MKOpvMp0cU8GeWGQeYOpa9v-LbXU8Jolg7v8N_OpiRE41dJjo4Om6cQR3QPyEFJx_W0XwJfwMgJ4HM_wsKCvt39F4t7OQmFvtjZbiDVtwX-dCWmXx8LhaP-zlZOf20aCzMcg339A&h=S5JLEe7tGcO6yd_4HaYQ7yZVcA4qZd8nVbUBpS3c2eo + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/c5c71909-d247-4b9f-a360-ff43ca24faca/Spring/default?api-version=2024-05-01-preview&t=638487820511672840&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQ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7UjEolHT8WP3xYgKLq5fgwCBufyygWOPFFaf7Z0z4z4ma3qEqxkGR8jj2tkUfb5_ugLc-LkObq28sHAmQ08MkfjaWI-1AhCgJ8K4rwM-euWmnjKW3Af7qHE9hioAu1fbSxKLj5YBbOoLS9FExGNHedSCBEYLbj79qBnceN1BA6XNAGePSfzR0Yi7wTO5IiSMbR8RRJpiOrgdLTv9327v6At82DD31-foijneTLCtv9DXhXBXEVK_86LzKdd9JnurYJolpMUkrty6y6CWfN3_CACMcbLrp8gmV3VvgyvhWptFA&h=K4-TJjyU9jfZ5p_0lrv25AVQIrFFF1ecUJ_IrTskqcc pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: F0F9D6F9E4B94C958BBBB148C5D360DD Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:29Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -418,21 +430,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a?api-version=2024-01-01-preview&t=638380398536670111&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKC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cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=KvjeupbGgmQnr0S-w-uRnG8nInZrijZ5tkeghgpWdU5r0UZV9422t7Re0VSNLwl0i9JXYWFg6uA1EF6L0Z90-KJACREMQuPJZJtPyjj6FR9Xc3eFfzB3exvIi88_-13NF6HCPyndKU4TlRCYy8BTsie1g88kp8ZrBGA8tHI16OQag8X6fHP39LTBt-fc8P1goPFoIj-ZZvPgvmnTppwCGo_3EnxHenUmHFSX_Mukrh5SvPQEJC_GIbttLPS6sFWinqvbjp7lr9Xrt1gB1EowoCXA9VCQf3nRwDxFa6LT6RWy-Spb992Mv2uHnzG2Wk0UqDGhvHY5Bt3RKWA3He4rHA&h=SlYQj2yR92-HSIy0FXRCUxOv8fHkj3w-SML6DiHgpew + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca?api-version=2024-05-01-preview&t=638487820511516555&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCAS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afZ-U8hs15kJMeEpcUELLgKtvuWFJohaBbZmlgQ0lDpixHIWcjeqgh5tmlJKpqf8wcSueAV_PyiL7vzHXcfd_5qZ6A9iAU_La8vZHGHcDoCqdcZOo9Ao08p8FaTlVLqqsP9__zzrDsuAoghlUUKbZIjf6T6z1q-pR3lNvqjqWcPs_uTa8tOaAzzsqisX6jSQcSVUmHi5QjwLxVjqyP1xmhY3KHGBZJeD-VDJ-K2KmbIAIUomRlG-67fh0sc_EYZtn-wIhPh55fTTOQLTsULPF_J_jK0khM7xu1wXbbwtnU41xJmN5HaV2NNaw&h=YJugHBjeiXAXnRww636blsX8nix9Nr1mmAfriTKANzs response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a","name":"3b425f23-04c5-4d40-ad6a-eee9ceabdf5a","status":"Running","startTime":"2023-12-13T04:50:53.4713422Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca","name":"c5c71909-d247-4b9f-a360-ff43ca24faca","status":"Running","startTime":"2024-04-15T12:47:30.9697695Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '321' content-type: - application/json date: - - Wed, 13 Dec 2023 04:50:53 GMT + - Mon, 15 Apr 2024 12:47:31 GMT expires: - '-1' pragma: @@ -441,14 +453,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D667712C545D439A8555BEAEA5D47E8A Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:31Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -466,21 +478,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a?api-version=2024-01-01-preview&t=638380398536670111&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8X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0UqDGhvHY5Bt3RKWA3He4rHA&h=SlYQj2yR92-HSIy0FXRCUxOv8fHkj3w-SML6DiHgpew + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca?api-version=2024-05-01-preview&t=638487820511516555&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSC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GA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=D0GZSSvugxCXBD_70tsbupSjY3_HDafZ-U8hs15kJMeEpcUELLgKtvuWFJohaBbZmlgQ0lDpixHIWcjeqgh5tmlJKpqf8wcSueAV_PyiL7vzHXcfd_5qZ6A9iAU_La8vZHGHcDoCqdcZOo9Ao08p8FaTlVLqqsP9__zzrDsuAoghlUUKbZIjf6T6z1q-pR3lNvqjqWcPs_uTa8tOaAzzsqisX6jSQcSVUmHi5QjwLxVjqyP1xmhY3KHGBZJeD-VDJ-K2KmbIAIUomRlG-67fh0sc_EYZtn-wIhPh55fTTOQLTsULPF_J_jK0khM7xu1wXbbwtnU41xJmN5HaV2NNaw&h=YJugHBjeiXAXnRww636blsX8nix9Nr1mmAfriTKANzs response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a","name":"3b425f23-04c5-4d40-ad6a-eee9ceabdf5a","status":"Running","startTime":"2023-12-13T04:50:53.4713422Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca","name":"c5c71909-d247-4b9f-a360-ff43ca24faca","status":"Running","startTime":"2024-04-15T12:47:30.9697695Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '321' content-type: - application/json date: - - Wed, 13 Dec 2023 04:51:03 GMT + - Mon, 15 Apr 2024 12:47:42 GMT expires: - '-1' pragma: @@ -489,14 +501,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 74596A1B6FCD4F7696491B6E254F5592 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:42Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -514,21 +526,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a?api-version=2024-01-01-preview&t=638380398536670111&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQ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KwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=KvjeupbGgmQnr0S-w-uRnG8nInZrijZ5tkeghgpWdU5r0UZV9422t7Re0VSNLwl0i9JXYWFg6uA1EF6L0Z90-KJACREMQuPJZJtPyjj6FR9Xc3eFfzB3exvIi88_-13NF6HCPyndKU4TlRCYy8BTsie1g88kp8ZrBGA8tHI16OQag8X6fHP39LTBt-fc8P1goPFoIj-ZZvPgvmnTppwCGo_3EnxHenUmHFSX_Mukrh5SvPQEJC_GIbttLPS6sFWinqvbjp7lr9Xrt1gB1EowoCXA9VCQf3nRwDxFa6LT6RWy-Spb992Mv2uHnzG2Wk0UqDGhvHY5Bt3RKWA3He4rHA&h=SlYQj2yR92-HSIy0FXRCUxOv8fHkj3w-SML6DiHgpew + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca?api-version=2024-05-01-preview&t=638487820511516555&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv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HIWcjeqgh5tmlJKpqf8wcSueAV_PyiL7vzHXcfd_5qZ6A9iAU_La8vZHGHcDoCqdcZOo9Ao08p8FaTlVLqqsP9__zzrDsuAoghlUUKbZIjf6T6z1q-pR3lNvqjqWcPs_uTa8tOaAzzsqisX6jSQcSVUmHi5QjwLxVjqyP1xmhY3KHGBZJeD-VDJ-K2KmbIAIUomRlG-67fh0sc_EYZtn-wIhPh55fTTOQLTsULPF_J_jK0khM7xu1wXbbwtnU41xJmN5HaV2NNaw&h=YJugHBjeiXAXnRww636blsX8nix9Nr1mmAfriTKANzs response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/3b425f23-04c5-4d40-ad6a-eee9ceabdf5a","name":"3b425f23-04c5-4d40-ad6a-eee9ceabdf5a","status":"Succeeded","startTime":"2023-12-13T04:50:53.4713422Z","endTime":"2023-12-13T04:51:14.3626183Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca","name":"c5c71909-d247-4b9f-a360-ff43ca24faca","status":"Running","startTime":"2024-04-15T12:47:30.9697695Z"}' headers: cache-control: - no-cache content-length: - - '365' + - '321' content-type: - application/json date: - - Wed, 13 Dec 2023 04:51:14 GMT + - Mon, 15 Apr 2024 12:47:53 GMT expires: - '-1' pragma: @@ -537,14 +549,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A43BE23A0B814169A068D3328A0EAE78 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:53Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -562,21 +574,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca?api-version=2024-05-01-preview&t=638487820511516555&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5or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AIUomRlG-67fh0sc_EYZtn-wIhPh55fTTOQLTsULPF_J_jK0khM7xu1wXbbwtnU41xJmN5HaV2NNaw&h=YJugHBjeiXAXnRww636blsX8nix9Nr1mmAfriTKANzs response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-78b7f6c4b7-lm9s8","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-12-13T04:50:58Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:50:52.8076132Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:50:52.8076132Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/c5c71909-d247-4b9f-a360-ff43ca24faca","name":"c5c71909-d247-4b9f-a360-ff43ca24faca","status":"Succeeded","startTime":"2024-04-15T12:47:30.9697695Z","endTime":"2024-04-15T12:48:00.3864784Z"}' headers: cache-control: - no-cache content-length: - - '1347' + - '364' content-type: - application/json date: - - Wed, 13 Dec 2023 04:51:17 GMT + - Mon, 15 Apr 2024 12:48:04 GMT expires: - '-1' pragma: @@ -585,16 +597,64 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: F1B3ECA0C29F4C2FAD6C23A222C90722 Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:04Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app create + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --bind-service-registry --bind-application-configuration-service + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-d98d48548-jtnlr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:38Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:29.7140657Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:29.7140657Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1334' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 12:48:08 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: DAE4E17E00FB42E2938E89B592548E79 Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:05Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -612,21 +672,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:50:44.7761384Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:50:44.7761384Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:23.0159075Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:23.0159075Z"}}' headers: cache-control: - no-cache content-length: - - '1351' + - '1373' content-type: - application/json date: - - Wed, 13 Dec 2023 04:51:25 GMT + - Mon, 15 Apr 2024 12:48:11 GMT expires: - '-1' pragma: @@ -635,16 +695,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 7A9D254AACFB4B05B8CD66235DF2CD64 Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:11Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -662,21 +722,21 @@ interactions: ParameterSetName: - -n -g -s --bind-service-registry --bind-application-configuration-service User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-78b7f6c4b7-lm9s8","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-12-13T04:50:58Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2023-12-13T04:50:52.8076132Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-12-13T04:50:52.8076132Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-d98d48548-jtnlr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:38Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:29.7140657Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:29.7140657Z"}}]}' headers: cache-control: - no-cache content-length: - - '1359' + - '1346' content-type: - application/json date: - - Wed, 13 Dec 2023 04:51:28 GMT + - Mon, 15 Apr 2024 12:48:14 GMT expires: - '-1' pragma: @@ -685,16 +745,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 38BF1A9AC16944D3BD8754DC256E8367 Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:12Z' x-rp-server-mvid: - - fee0e8b1-cd66-4be8-bd08-f7bf9b14616d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_crud.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_crud.yaml index 64b4fba9243..ea797aa84ca 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_crud.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_crud.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -25,9 +25,9 @@ interactions: content-length: - '241' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:26:55 GMT + - Mon, 15 Apr 2024 12:47:16 GMT expires: - '-1' pragma: @@ -36,12 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: C6D551ABEC9741E9B7D99C4563192E1A Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:16Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 404 message: Not Found @@ -59,21 +63,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a22bcec124db4416b45eb6e15456dcdf","networkProfile":{"outboundIPs":{"publicIPs":["172.166.83.220","172.166.84.22"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:24:37.0237133Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:24:37.0237133Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:26:55 GMT + - Mon, 15 Apr 2024 12:47:17 GMT expires: - '-1' pragma: @@ -82,16 +86,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: F040F64E6E9B46E18CB269DA0E5FF9E1 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -115,39 +119,43 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:26:56.9244911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:26:56.9244911Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.717735Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:18.717735Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/04f17db4-2db4-42ef-a5a6-cfd0b1daba06?api-version=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gEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=iaL1732byICuRDgU3qEs3Gkzjt5yr2gB3Vp_wIEUNJMQKhBRmNUF7YUlu7N5QbtG-7dX9PoO6FCykAGRNcMt1R3cBTF24sCEIH70gGHYybFZiRTE-RNtHUqMvmHp9sQ99wB2Ux056fofLSZn2jlf5iPpxGAVvpdwnr9Ii7GY2mzghGmCtSRTaUQJGcC7MtEDyoE7aWhF5LipgDCy2fD-HALqHnBG6HdIoq_PxDXBIdTqHtcA1c1yBXrjr00DTH0JEAYViobiz-z8Oo2_k1E12THaMHTZbf-uU6hT53aMzKUxd6avBlUGrt71PwIG_bxN8ihzyQdh6rorIYYicoy2Vg&h=GRijRr_kmCl7nn6YGy2ylg7l0OLmg44X1Qok1sJ49Fo + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/6c825069-009a-474b-97fe-5526a2d5539b?api-version=2024-05-01-preview&t=638487820396074780&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPA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cCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=g5s-lEiKfFSlButCmRK1HpsOP3UNCdl5TAOShLej8bMtVc-xuQVnxy_ZoZCGQyfqYhC3G3fdcQiuTQunAITfPIkFwHUbScKfx0F4Tp4GGucGSPn2YlrPg6z7Xjw1pe7VdgpdWuYL1CbHu7R5oGHyeRApTYmDmqVX-yyXrk17d6fFzJQPAa63EqfXWpBl6vC2ZCuRvzUEHiD0lj7rA9VKXJL1pfSmhkDwTzNC9UoiHVtiVdCyVATESAu0SLZQ6lLIQKkGri-qiABZIzw1U0ApGCytg-FHUknm4FZpVB1U60hmpBeZ-He6na_sOGVGFlfeZZmhBLvp2Xeb2KIFvpKyRg&h=2VY_NYAG_LvPUNXuWlAgLKn0q-hM3sPb8W4YucPzTmI cache-control: - no-cache content-length: - - '923' + - '933' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:26:56 GMT + - Mon, 15 Apr 2024 12:47:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/04f17db4-2db4-42ef-a5a6-cfd0b1daba06/Spring/clitest000003?api-version=2024-01-01-preview&t=638411452174089236&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUm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TG2xINdK3jlNfJqd7U2GiyFbcUHXkZEpMJZ_G2Am7jsWKzWK8XBPc40owOycU4ZgmZQWUzJbL0E5rsenI5sgyTJVmNxahzM6RsV_bayKyKuOg8isg7N0ln2FIsE30yDVfsCTojlWivSPb80eQ4Awng0heSkPdsmfYAp9hopvRqUCXIN6xTpwJ_BpK1u37O8xTv57eIFbga0aboK1ikxYCrnMceWMD9wXSMm8ErnxQCXGimJDkizsmJ3MChnrgE2UeoAalIH6GJcrSzFA8DH9lPZmp7vgR712BYXTw&h=MO5Ezr8oA8MNf_H-zS9VfyuMC3E1FmTlNT6MLkAaXNM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/6c825069-009a-474b-97fe-5526a2d5539b/Spring/clitest000003?api-version=2024-05-01-preview&t=638487820396231007&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7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KkkCndKFOkn_wA&h=KkkZ-KbSbfUeceYIHglu2GiaaHDM29jL_S8rE4wzEAQ pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: D86D2CA3D9554D17A7046E4690BD4A25 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:18Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -165,21 +173,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/04f17db4-2db4-42ef-a5a6-cfd0b1daba06?api-version=2024-01-01-preview&t=638411452173933024&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoR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5QbtG-7dX9PoO6FCykAGRNcMt1R3cBTF24sCEIH70gGHYybFZiRTE-RNtHUqMvmHp9sQ99wB2Ux056fofLSZn2jlf5iPpxGAVvpdwnr9Ii7GY2mzghGmCtSRTaUQJGcC7MtEDyoE7aWhF5LipgDCy2fD-HALqHnBG6HdIoq_PxDXBIdTqHtcA1c1yBXrjr00DTH0JEAYViobiz-z8Oo2_k1E12THaMHTZbf-uU6hT53aMzKUxd6avBlUGrt71PwIG_bxN8ihzyQdh6rorIYYicoy2Vg&h=GRijRr_kmCl7nn6YGy2ylg7l0OLmg44X1Qok1sJ49Fo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/6c825069-009a-474b-97fe-5526a2d5539b?api-version=2024-05-01-preview&t=638487820396074780&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwz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vp2Xeb2KIFvpKyRg&h=2VY_NYAG_LvPUNXuWlAgLKn0q-hM3sPb8W4YucPzTmI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/04f17db4-2db4-42ef-a5a6-cfd0b1daba06","name":"04f17db4-2db4-42ef-a5a6-cfd0b1daba06","status":"Succeeded","startTime":"2024-01-18T03:26:57.2812248Z","endTime":"2024-01-18T03:26:57.577388Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/6c825069-009a-474b-97fe-5526a2d5539b","name":"6c825069-009a-474b-97fe-5526a2d5539b","status":"Succeeded","startTime":"2024-04-15T12:47:19.515152Z","endTime":"2024-04-15T12:47:20.5292294Z"}' headers: cache-control: - no-cache content-length: - - '370' + - '375' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:26:57 GMT + - Mon, 15 Apr 2024 12:47:19 GMT expires: - '-1' pragma: @@ -188,14 +196,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 08FC5264FDB641F4B94E2358B0FD5DEB Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:19Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -213,21 +221,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:26:56.9244911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:26:56.9244911Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.717735Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:18.717735Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1037' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:26:57 GMT + - Mon, 15 Apr 2024 12:47:20 GMT expires: - '-1' pragma: @@ -236,16 +244,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 216FBF36D04A406A93B8AF84D9B27C28 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:20Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -271,39 +279,43 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uks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QYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=gI43hHy7SgMBFidLNVyv7PorzerRayqlDYsP-aToYueWUULaAXEx3yTi9u2qh4nzYuZl0SCYHca4Yx_Mvb4eZmnmTxzZED2avJT5CHmSGcC4Ixt4bkGQ4dH_YKKqeqHKqKWgLqxkpy2hmpBZylLH8vp644ozXioV5im9CG1drVBMUzO2ocML7taYW5bmNUQSEyBRovmy32VoNZLnJJukRBOd4lMtDdcPBdwCjshOETcLzF932ezETFs2LjDNANBNDRe1Qs5sJ0XbvL4BwvThUFlHSen5VbhTdWHtszgZlvvW7mNrfcBrJaE-z-XmA9mPaXNUAGT12CbVc9lkP7ArAA&h=sMq1gMQK_l8uSZpbYfqqbMpKnuTxBWW51SWGT7fzkNo + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559?api-version=2024-05-01-preview&t=638487820464623462&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQw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P_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Q_SJctw0wKOEUpz9x0ypW9tGtDCsxvttTapbC3MIJfVA8sM5OTjebogtBF1Vo-koVM6nSgVSw12bESwjiyPgGwWDyJsb5tEIuvyXnUhe_deXzoZmXDhOWFKxiCQOh3ealvt0HqUVY8v3DBKZUxv-_HC7btf_Dl072K_sKcItXimsfKtiSya5Zs0fyA6aLukrGzMObzR_rgQGbg1emO6AbQsDN0VEoxXaHhnq84u1fIp20GZoJ7m_f2attBnNsCZRglhnDLUod0MDq9BAhp79NimByWbv3jntnEsERLw1ini3jV3L2IoHNVLSIJZnFoNMGnxbGYwTdKOqCrCQuRdZRw&h=YQfTeBK9wKnWGdoe_H9HxPpm_4S69BgEzmqz2MCU4gA cache-control: - no-cache content-length: - - '866' + - '848' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:02 GMT + - Mon, 15 Apr 2024 12:47:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/7260cd02-6b99-48f6-b6b8-b6e6570d8cea/Spring/default?api-version=2024-01-01-preview&t=638411452234559215&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPAD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EIeFhWqnESo-0qjxR0TnsPlSC8Y01MG3pYT8Hn6tOtOpluQoC5BgD3bHSPVZkG3k8d79taN5fAiR48BqQkTsIsEXtet90k5aVo1kIqzFJCZ9CYMwkLnXWe9iyOkwb3XDYSyPga5arXzVbR5pwibbmqx8yAIB3hhoxFJUq25qsaiQjiU6S0xGNxiXXkSPNUN-PcvVuigcOdXPaL04okIT1xAobR1lDqzACEcxLIzKQU9xa8OhV78qRF2ZswLlVZyt_vREBL2L5n7_hyp88IZGPjvCxK45sMasRJfUd6dBg3-kvSE3NtjVi1VhoTma2ljBA&h=NT4YRG5APe7QCUIrFAkKjU3C2iBHxurgxlQZdDi_srY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559/Spring/default?api-version=2024-05-01-preview&t=638487820464780270&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtq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LwSWWd5-ds5jLLXowg8L84UqjsTGhh7M7nOq5CgRm-syQ&h=Z9BsFstQORRYkNM6Iow9yPfAcLSTeoKKUNQBue5bpF4 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: E5554A8D290341D08B11E3F95249CCB8 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:24Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -321,21 +333,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7260cd02-6b99-48f6-b6b8-b6e6570d8cea?api-version=2024-01-01-preview&t=638411452234559215&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM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ToYueWUULaAXEx3yTi9u2qh4nzYuZl0SCYHca4Yx_Mvb4eZmnmTxzZED2avJT5CHmSGcC4Ixt4bkGQ4dH_YKKqeqHKqKWgLqxkpy2hmpBZylLH8vp644ozXioV5im9CG1drVBMUzO2ocML7taYW5bmNUQSEyBRovmy32VoNZLnJJukRBOd4lMtDdcPBdwCjshOETcLzF932ezETFs2LjDNANBNDRe1Qs5sJ0XbvL4BwvThUFlHSen5VbhTdWHtszgZlvvW7mNrfcBrJaE-z-XmA9mPaXNUAGT12CbVc9lkP7ArAA&h=sMq1gMQK_l8uSZpbYfqqbMpKnuTxBWW51SWGT7fzkNo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559?api-version=2024-05-01-preview&t=638487820464623462&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rY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GnxbGYwTdKOqCrCQuRdZRw&h=YQfTeBK9wKnWGdoe_H9HxPpm_4S69BgEzmqz2MCU4gA response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7260cd02-6b99-48f6-b6b8-b6e6570d8cea","name":"7260cd02-6b99-48f6-b6b8-b6e6570d8cea","status":"Running","startTime":"2024-01-18T03:27:03.3090297Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559","name":"2a8eeac9-a2c4-4a33-bdfa-96ed3399e559","status":"Running","startTime":"2024-04-15T12:47:26.3045931Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:03 GMT + - Mon, 15 Apr 2024 12:47:26 GMT expires: - '-1' pragma: @@ -344,14 +356,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: BF62B34F3FF24EB4B3080C31CD97082C Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:26Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -369,21 +381,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7260cd02-6b99-48f6-b6b8-b6e6570d8cea?api-version=2024-01-01-preview&t=638411452234559215&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jv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A4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=gI43hHy7SgMBFidLNVyv7PorzerRayqlDYsP-aToYueWUULaAXEx3yTi9u2qh4nzYuZl0SCYHca4Yx_Mvb4eZmnmTxzZED2avJT5CHmSGcC4Ixt4bkGQ4dH_YKKqeqHKqKWgLqxkpy2hmpBZylLH8vp644ozXioV5im9CG1drVBMUzO2ocML7taYW5bmNUQSEyBRovmy32VoNZLnJJukRBOd4lMtDdcPBdwCjshOETcLzF932ezETFs2LjDNANBNDRe1Qs5sJ0XbvL4BwvThUFlHSen5VbhTdWHtszgZlvvW7mNrfcBrJaE-z-XmA9mPaXNUAGT12CbVc9lkP7ArAA&h=sMq1gMQK_l8uSZpbYfqqbMpKnuTxBWW51SWGT7fzkNo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559?api-version=2024-05-01-preview&t=638487820464623462&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZIm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fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Q_SJctw0wKOEUpz9x0ypW9tGtDCsxvttTapbC3MIJfVA8sM5OTjebogtBF1Vo-koVM6nSgVSw12bESwjiyPgGwWDyJsb5tEIuvyXnUhe_deXzoZmXDhOWFKxiCQOh3ealvt0HqUVY8v3DBKZUxv-_HC7btf_Dl072K_sKcItXimsfKtiSya5Zs0fyA6aLukrGzMObzR_rgQGbg1emO6AbQsDN0VEoxXaHhnq84u1fIp20GZoJ7m_f2attBnNsCZRglhnDLUod0MDq9BAhp79NimByWbv3jntnEsERLw1ini3jV3L2IoHNVLSIJZnFoNMGnxbGYwTdKOqCrCQuRdZRw&h=YQfTeBK9wKnWGdoe_H9HxPpm_4S69BgEzmqz2MCU4gA response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7260cd02-6b99-48f6-b6b8-b6e6570d8cea","name":"7260cd02-6b99-48f6-b6b8-b6e6570d8cea","status":"Running","startTime":"2024-01-18T03:27:03.3090297Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559","name":"2a8eeac9-a2c4-4a33-bdfa-96ed3399e559","status":"Running","startTime":"2024-04-15T12:47:26.3045931Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:13 GMT + - Mon, 15 Apr 2024 12:47:37 GMT expires: - '-1' pragma: @@ -392,14 +404,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DD56689A228C4AF484B3A8017FFC89A8 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:37Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -417,21 +429,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7260cd02-6b99-48f6-b6b8-b6e6570d8cea?api-version=2024-01-01-preview&t=638411452234559215&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJV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GcC4Ixt4bkGQ4dH_YKKqeqHKqKWgLqxkpy2hmpBZylLH8vp644ozXioV5im9CG1drVBMUzO2ocML7taYW5bmNUQSEyBRovmy32VoNZLnJJukRBOd4lMtDdcPBdwCjshOETcLzF932ezETFs2LjDNANBNDRe1Qs5sJ0XbvL4BwvThUFlHSen5VbhTdWHtszgZlvvW7mNrfcBrJaE-z-XmA9mPaXNUAGT12CbVc9lkP7ArAA&h=sMq1gMQK_l8uSZpbYfqqbMpKnuTxBWW51SWGT7fzkNo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559?api-version=2024-05-01-preview&t=638487820464623462&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRD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CU4gA response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7260cd02-6b99-48f6-b6b8-b6e6570d8cea","name":"7260cd02-6b99-48f6-b6b8-b6e6570d8cea","status":"Succeeded","startTime":"2024-01-18T03:27:03.3090297Z","endTime":"2024-01-18T03:27:24.2240857Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/2a8eeac9-a2c4-4a33-bdfa-96ed3399e559","name":"2a8eeac9-a2c4-4a33-bdfa-96ed3399e559","status":"Succeeded","startTime":"2024-04-15T12:47:26.3045931Z","endTime":"2024-04-15T12:47:44.4931264Z"}' headers: cache-control: - no-cache content-length: - - '365' + - '370' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:24 GMT + - Mon, 15 Apr 2024 12:47:47 GMT expires: - '-1' pragma: @@ -440,14 +452,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 708478E5C8CB469E8FE3157B4B9316F5 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:48Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -465,21 +477,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5488fd8d76-x8n9k","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:27:09Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-775c559499-plmfr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}' headers: cache-control: - no-cache content-length: - - '1374' + - '1356' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:28 GMT + - Mon, 15 Apr 2024 12:47:51 GMT expires: - '-1' pragma: @@ -488,16 +500,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: ED4B00D7B8074104B42356CBFB541D17 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:48Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -515,21 +527,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:26:56.9244911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:26:56.9244911Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.717735Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:18.717735Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1037' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:29 GMT + - Mon, 15 Apr 2024 12:47:56 GMT expires: - '-1' pragma: @@ -538,16 +550,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: ACCBE7638CB4436B861B3ECD3BE7F639 Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:56Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -565,21 +577,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5488fd8d76-x8n9k","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:27:09Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-775c559499-plmfr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}]}' headers: cache-control: - no-cache content-length: - - '1386' + - '1368' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:31 GMT + - Mon, 15 Apr 2024 12:47:59 GMT expires: - '-1' pragma: @@ -588,16 +600,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: DF9CD2B8CBF444A5AD4F2EE615CB944C Ref B: MAA201060516047 Ref C: 2024-04-15T12:47:57Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -615,21 +627,21 @@ interactions: ParameterSetName: - -n -g -s --session-affinity --session-max-age User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5488fd8d76-x8n9k","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:27:09Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-775c559499-plmfr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}]}' headers: cache-control: - no-cache content-length: - - '1386' + - '1368' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:34 GMT + - Mon, 15 Apr 2024 12:48:03 GMT expires: - '-1' pragma: @@ -638,16 +650,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: FD84D16808E54B0BB61C85548D076CEF Ref B: MAA201060515031 Ref C: 2024-04-15T12:48:01Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -670,39 +682,43 @@ interactions: ParameterSetName: - -n -g -s --session-affinity --session-max-age User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":1800,"sessionAffinity":"Cookie","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:26:56.9244911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:36.2165125Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":1800,"sessionAffinity":"Cookie","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.717735Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:04.9414561Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/afb292a7-1316-4454-8f3f-3d0549af148d?api-version=2024-01-01-preview&t=638411452566852693&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFD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xq2xPdF_8pmgd77MrgbHR4LiHrC1QrddmfHdCXVRq2x6kNYre54MjIbRz9ketuVY8wGqBkgWsujhDVsVF9cwA2Yls7JEdZHtv9WEmgSrj6EdWwbediKfMw1P4mFiRdpcGLApk93rRloallGMo0ogZ1zLP16ezhVz-9qzOnpAFwvCMYwz-bARkuiybrYfUsCIxKLbi_6bHnA5mAEvoX7x1mfMkxwIzEdAuf96HOEnJJoHr_Ku4y-dp-LusN7p5fra6kxquG6JAwQirdXV_u7PnDGaMsGA0ySYElkZG4CTw&h=5sY5c24Kpkze7IIKXRrZVj-B15KCHOTxHeSTFKY36Y0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/beecbf2d-3c55-490c-84e5-9cf19bd128ed?api-version=2024-05-01-preview&t=638487820857070780&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa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qibrXdw5YVcqq7-huyaZQ&h=ml0hkl7yQWD8RTTyCuBRoSUWN2FGJBjwlRtXwvOyGa4 cache-control: - no-cache content-length: - - '1031' + - '1042' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:36 GMT + - Mon, 15 Apr 2024 12:48:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/afb292a7-1316-4454-8f3f-3d0549af148d/Spring/clitest000003?api-version=2024-01-01-preview&t=638411452566852693&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwE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MDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=kGQOvaQtbpvC3hTgsM2HRZ-PrSNhje2NL97ZI-zlxeT-LbU3fvnPPEuJWhEbTVvV82cVBJX_YEKlI7l75lChPZguLK8XGsMvoXVUNFcjw7hPWcD4ODoaVZNOcDF93jagiUMGaMH9bJuAvdm0-1CzgyyBF4_l016j8GZ9r6mLEvyw7uktr5Srw5cySmpj752csJ0VPkuNgM155Mgw62NxlhGYSpGFxt8Pp3rsphwrx1xqLjKGN5ulKz8tBPai994RaeKXDZJmz7dVqEeIbWPwKEv2U8Opkc0pnD9bkFOkbrZle8ZFE3PtUWMHUvCALWEH9fd3G8vXMYnov54WuxdamA&h=t_kfgkqEsa5ZRWfjWkAjoC29BaJuJA44cU13q-1jFt8 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/beecbf2d-3c55-490c-84e5-9cf19bd128ed/Spring/clitest000003?api-version=2024-05-01-preview&t=638487820857070780&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNR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HAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RpPuPCJ9unCeGAGlx_xu1XZZqd2dLahMojCreABdTZ6DPFlcbLGdEkAo4YnBBXSlX9SIj5ksURGwfpHHDAz0MaoFEPWVBUMe8PIOOuaTsUEMLr4NOoh6Q0Zfj8X_0670O2ec22TrgEuNjpo4hhNIMQDR96ol4eN9E9wE6i7lD8tBe3aZIqeTQB57edmW4gmr1xSZqgFApfNIEShVbidh8f7me0BiaqxJKJhTPnZrJa8zZavZ9IbuCi1oIL2LI2XhhCOYqRONrY1aXCX-qFsE5c3ocqXhGn4CYLZ0NJM7dB4dQ3mv0tzxEWBxT99XPV6tp_id57YdZFf8p6hxiqZWGA&h=3cmBA054ou1D701-c64F-wx-40zduBXPnSYq9IoX2X4 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 13B073D610184ED58EB49AFC122836EB Ref B: MAA201060513037 Ref C: 2024-04-15T12:48:04Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -725,21 +741,21 @@ interactions: ParameterSetName: - -n -g -s --session-affinity --session-max-age User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5488fd8d76-x8n9k","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:27:09Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-775c559499-plmfr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}' headers: cache-control: - no-cache content-length: - - '1374' + - '1356' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:38 GMT + - Mon, 15 Apr 2024 12:48:08 GMT expires: - '-1' pragma: @@ -748,16 +764,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: A763F16438DB466ABB0E712B89EEFBEA Ref B: MAA201060513037 Ref C: 2024-04-15T12:48:05Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -775,21 +791,21 @@ interactions: ParameterSetName: - -n -g -s --session-affinity --session-max-age User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":1800,"sessionAffinity":"Cookie","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:26:56.9244911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:36.2165125Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":1800,"sessionAffinity":"Cookie","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.717735Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:04.9414561Z"}}' headers: cache-control: - no-cache content-length: - - '1031' + - '1042' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:39 GMT + - Mon, 15 Apr 2024 12:48:09 GMT expires: - '-1' pragma: @@ -798,16 +814,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 1C5AF7FC45AF4678B460B2E3253B31FA Ref B: MAA201060513037 Ref C: 2024-04-15T12:48:09Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -825,21 +841,21 @@ interactions: ParameterSetName: - -n -g -s --session-affinity --session-max-age User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5488fd8d76-x8n9k","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:27:09Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-775c559499-plmfr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}]}' headers: cache-control: - no-cache content-length: - - '1386' + - '1368' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:42 GMT + - Mon, 15 Apr 2024 12:48:12 GMT expires: - '-1' pragma: @@ -848,16 +864,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: AE34EA7F8F2F4D8B9237AF3728430B97 Ref B: MAA201060513037 Ref C: 2024-04-15T12:48:10Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -875,21 +891,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a22bcec124db4416b45eb6e15456dcdf","networkProfile":{"outboundIPs":{"publicIPs":["172.166.83.220","172.166.84.22"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:24:37.0237133Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:24:37.0237133Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:44 GMT + - Mon, 15 Apr 2024 12:48:14 GMT expires: - '-1' pragma: @@ -898,16 +914,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 3434F08E460E4685BDB3CF5C41C40A60 Ref B: MAA201060514037 Ref C: 2024-04-15T12:48:14Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -925,21 +941,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5488fd8d76-x8n9k","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:27:09Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:02.7839826Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:02.7839826Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-775c559499-plmfr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.05613Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.05613Z"}}]}' headers: cache-control: - no-cache content-length: - - '1386' + - '1368' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:48 GMT + - Mon, 15 Apr 2024 12:48:17 GMT expires: - '-1' pragma: @@ -948,16 +964,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: B62AD8B765794EDEAD1EBF2517067C3A Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:15Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -983,39 +999,43 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":false,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:48.8641374Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:48.8641374Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":false,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:18.5056477Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:18.5056477Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQY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8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14?api-version=2024-05-01-preview&t=638487820999119874&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0El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ELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=b4Bir-HlfbaUnH5n02GR8TIuWHfGh3538ocXD4VJ4v1OqJRkgbieFsWky44ehOcSVTqFWIF2qwzlrYI7LW18ra6TG_9Ei2ltGSLyEu3tcUs-RAHoqNYOdlOiF1LZjLGX8IMMOXXkPRZezzCNP44Z68XyZ3xnNRvNkgEWfRs98DsyuDiIVdXsF7NWpJl7cA-bcRcoJhmSBZEbp5hJLjEXIfywCfs5Y-asGjSfp4ExUsL6JOCHoC6-V97FDclsdRjYlAU1lYUotKGHYXpBdi8xBKrhJmH-43H0hwcxga91kUbDnB7BptTHW6ye5yiATidglLco6Yx5A0eH-RWNeiLZTA&h=FqyWKZh1N3wXMNAZotwwREharGFjeNeM_pVQfydk0oI cache-control: - no-cache content-length: - - '863' + - '849' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:27:49 GMT + - Mon, 15 Apr 2024 12:48:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2/Spring/green?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYK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eru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=rQW5pmwG9DOtpks4gGDt4cXMDujgCfjm3ATqAytrFT6NgMkyptnaBLgp1CQmukE6999632x5EuVsgmgdE0FjvP5R0CQckrIIhVIEUaWQi3hW5ogWt5Y5Lb8eOWJJ5s8P9kMikxt9d9O3k3LDCIkLUHnWJYHoFwcV_r1_KY_tAffQcz8_coJPK5slQL6T5Eqpt1pvrCR0p2UBNC-diaZbqqp0uSeD7lE2jvMxSAaXmDb2EQoj056Tyu2yfL7azpRuY7cP_SAXfe_QIel_-a1YkzsoLPiAO7KTmdxXYV4bCkQIP05IeYOTggZYxTX-A-dNcm_Vl_SHFoj7zeCeszY4gg&h=pvU6YSkkDH6jjVu_vE5jrkWViqG87SSP4h7-qO4xAcw + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/8397f1ea-2f47-40d4-a474-24889bcf1a14/Spring/green?api-version=2024-05-01-preview&t=638487820999119874&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIh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vyP9DPTnNh_hSrRwxbSvzr_yyY-_3oQUx8j3uXSds7vgGloygZf0DzU9vCKYfihHj8dL4ZHbiuG3jnZvEka6mw3wo9_Gh-yA8iB7a9-kXf2GLw9vpAcKfKL-okWzEYO2Y2xXr2LJyjQvpWNwuAP6l-3T-TGeSYZJCuVlpGWRBfxeJV7BZyfmn3yD1RO1y1ArxSuRTrJ2jWm0VkZluwEjNfF7npzmsDDnCiFdq7BJMvFUSe5twBpC427aCQscrD05LRPQ7xpSWtqMU1xE25mchQxwj6TghKy8HDj8TAACGn3MzG9g&h=TN5rRcsyhbTMOlBoT15pycm2jMXbkHUsgeScO1OsUjY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 8CA514486EAE4FB4B1C42A19FB136597 Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:18Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -1033,261 +1053,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQ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OVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 03:27:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app deployment create - Connection: - - keep-alive - ParameterSetName: - - -n --app -g -s --instance-count - User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYm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NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 03:27:59 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app deployment create - Connection: - - keep-alive - ParameterSetName: - - -n --app -g -s --instance-count - User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqo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ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 03:28:10 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app deployment create - Connection: - - keep-alive - ParameterSetName: - - -n --app -g -s --instance-count - User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus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BBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 03:28:20 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app deployment create - Connection: - - keep-alive - ParameterSetName: - - -n --app -g -s --instance-count - User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5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5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' - headers: - cache-control: - - no-cache - content-length: - - '319' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 03:28:30 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app deployment create - Connection: - - keep-alive - ParameterSetName: - - -n --app -g -s --instance-count - User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMw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4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14?api-version=2024-05-01-preview&t=638487820999119874&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQ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ehOcSVTqFWIF2qwzlrYI7LW18ra6TG_9Ei2ltGSLyEu3tcUs-RAHoqNYOdlOiF1LZjLGX8IMMOXXkPRZezzCNP44Z68XyZ3xnNRvNkgEWfRs98DsyuDiIVdXsF7NWpJl7cA-bcRcoJhmSBZEbp5hJLjEXIfywCfs5Y-asGjSfp4ExUsL6JOCHoC6-V97FDclsdRjYlAU1lYUotKGHYXpBdi8xBKrhJmH-43H0hwcxga91kUbDnB7BptTHW6ye5yiATidglLco6Yx5A0eH-RWNeiLZTA&h=FqyWKZh1N3wXMNAZotwwREharGFjeNeM_pVQfydk0oI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14","name":"8397f1ea-2f47-40d4-a474-24889bcf1a14","status":"Running","startTime":"2024-04-15T12:48:19.726375Z"}' headers: cache-control: - no-cache content-length: - - '319' + - '324' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:28:41 GMT + - Mon, 15 Apr 2024 12:48:19 GMT expires: - '-1' pragma: @@ -1296,14 +1076,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2666B86F43914B749364B96A3ECEC0CB Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:20Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1321,21 +1101,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbd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8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14?api-version=2024-05-01-preview&t=638487820999119874&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChld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CN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=b4Bir-HlfbaUnH5n02GR8TIuWHfGh3538ocXD4VJ4v1OqJRkgbieFsWky44ehOcSVTqFWIF2qwzlrYI7LW18ra6TG_9Ei2ltGSLyEu3tcUs-RAHoqNYOdlOiF1LZjLGX8IMMOXXkPRZezzCNP44Z68XyZ3xnNRvNkgEWfRs98DsyuDiIVdXsF7NWpJl7cA-bcRcoJhmSBZEbp5hJLjEXIfywCfs5Y-asGjSfp4ExUsL6JOCHoC6-V97FDclsdRjYlAU1lYUotKGHYXpBdi8xBKrhJmH-43H0hwcxga91kUbDnB7BptTHW6ye5yiATidglLco6Yx5A0eH-RWNeiLZTA&h=FqyWKZh1N3wXMNAZotwwREharGFjeNeM_pVQfydk0oI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14","name":"8397f1ea-2f47-40d4-a474-24889bcf1a14","status":"Running","startTime":"2024-04-15T12:48:19.726375Z"}' headers: cache-control: - no-cache content-length: - - '319' + - '324' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:28:51 GMT + - Mon, 15 Apr 2024 12:48:31 GMT expires: - '-1' pragma: @@ -1344,14 +1124,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0107EE39C7014718AFF092B237642939 Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:30Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1369,21 +1149,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14?api-version=2024-05-01-preview&t=638487820999119874&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA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SLyEu3tcUs-RAHoqNYOdlOiF1LZjLGX8IMMOXXkPRZezzCNP44Z68XyZ3xnNRvNkgEWfRs98DsyuDiIVdXsF7NWpJl7cA-bcRcoJhmSBZEbp5hJLjEXIfywCfs5Y-asGjSfp4ExUsL6JOCHoC6-V97FDclsdRjYlAU1lYUotKGHYXpBdi8xBKrhJmH-43H0hwcxga91kUbDnB7BptTHW6ye5yiATidglLco6Yx5A0eH-RWNeiLZTA&h=FqyWKZh1N3wXMNAZotwwREharGFjeNeM_pVQfydk0oI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14","name":"8397f1ea-2f47-40d4-a474-24889bcf1a14","status":"Running","startTime":"2024-04-15T12:48:19.726375Z"}' headers: cache-control: - no-cache content-length: - - '319' + - '324' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:02 GMT + - Mon, 15 Apr 2024 12:48:42 GMT expires: - '-1' pragma: @@ -1392,14 +1172,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: ADDFA8640A5C4DE0A5420672BE18A907 Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:41Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1417,21 +1197,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAa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hcUpyI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14?api-version=2024-05-01-preview&t=638487820999119874&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtp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i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=b4Bir-HlfbaUnH5n02GR8TIuWHfGh3538ocXD4VJ4v1OqJRkgbieFsWky44ehOcSVTqFWIF2qwzlrYI7LW18ra6TG_9Ei2ltGSLyEu3tcUs-RAHoqNYOdlOiF1LZjLGX8IMMOXXkPRZezzCNP44Z68XyZ3xnNRvNkgEWfRs98DsyuDiIVdXsF7NWpJl7cA-bcRcoJhmSBZEbp5hJLjEXIfywCfs5Y-asGjSfp4ExUsL6JOCHoC6-V97FDclsdRjYlAU1lYUotKGHYXpBdi8xBKrhJmH-43H0hwcxga91kUbDnB7BptTHW6ye5yiATidglLco6Yx5A0eH-RWNeiLZTA&h=FqyWKZh1N3wXMNAZotwwREharGFjeNeM_pVQfydk0oI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Running","startTime":"2024-01-18T03:27:49.351721Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/8397f1ea-2f47-40d4-a474-24889bcf1a14","name":"8397f1ea-2f47-40d4-a474-24889bcf1a14","status":"Succeeded","startTime":"2024-04-15T12:48:19.726375Z","endTime":"2024-04-15T12:48:44.5901059Z"}' headers: cache-control: - no-cache content-length: - - '319' + - '367' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:12 GMT + - Mon, 15 Apr 2024 12:48:53 GMT expires: - '-1' pragma: @@ -1440,14 +1220,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 456926B8B015432690D847BE272F0256 Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:52Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1465,21 +1245,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2?api-version=2024-01-01-preview&t=638411452695047849&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5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4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HbGXnqUMNqtN_5P5IuZy9aH9ITJjhaksjYz3LzNKTL1Vi-4_ko3nmVvS8WeLlrB5IMjZoWvHdBsaIScAJShHIKqLKgOk7i3CghUx7Aa7ewKiKUztJswMKHSAfGG5euHNeBEUjSa-SOc73jwvQPjfL_l1buivaTl-EUHY4IqnTyNcy3NOKBjp_z36q_DaOtplDtbC2SnLHiwqFHxezkaX6KTnZALlPoqOv1C2npCYGBcU4E9PU8hfmDMxWeUdkbNKTB-VUF-p6856rV2Yq8ZP5TGCpUB_UGIGIjQaIDHoMxOZIyYE78t6CrPsARZtS1--gpjMjGWn-j1ZaxOxElFnyg&h=TO8t8sFxD-V9YYbIVtAv9AHgtAYRwT2N8NU0yhcUpyI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","name":"544cc43b-1b68-4f3b-a0cb-7987ccdf2fa2","status":"Succeeded","startTime":"2024-01-18T03:27:49.351721Z","endTime":"2024-01-18T03:29:13.6131344Z"}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-56bb4c887f-hxk8f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:24Z"},{"name":"clitest000003-green-15-56bb4c887f-jw656","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:24Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:18.5056477Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:18.5056477Z"}}' headers: cache-control: - no-cache content-length: - - '362' + - '1493' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:22 GMT + - Mon, 15 Apr 2024 12:48:56 GMT expires: - '-1' pragma: @@ -1488,64 +1268,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app deployment create - Connection: - - keep-alive - ParameterSetName: - - -n --app -g -s --instance-count - User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-85bbbcd558-khvzw","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:28:53Z"},{"name":"clitest000003-green-15-85bbbcd558-sljw7","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:28:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:48.8641374Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:48.8641374Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '1507' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 03:29:25 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 43A5765D4CCA44A5BE292BBC777002F9 Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:53Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1563,21 +1295,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-85bbbcd558-khvzw","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:28:53Z"},{"name":"clitest000003-green-15-85bbbcd558-sljw7","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:28:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:48.8641374Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:48.8641374Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-56bb4c887f-hxk8f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:24Z"},{"name":"clitest000003-green-15-56bb4c887f-jw656","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:24Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:18.5056477Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:18.5056477Z"}}' headers: cache-control: - no-cache content-length: - - '1507' + - '1493' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:28 GMT + - Mon, 15 Apr 2024 12:48:59 GMT expires: - '-1' pragma: @@ -1586,16 +1318,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: EF01A3205CDC46FC9B6C5A4A3FCADEEB Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:56Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1613,21 +1345,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a22bcec124db4416b45eb6e15456dcdf","networkProfile":{"outboundIPs":{"publicIPs":["172.166.83.220","172.166.84.22"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:24:37.0237133Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:24:37.0237133Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:28 GMT + - Mon, 15 Apr 2024 12:48:59 GMT expires: - '-1' pragma: @@ -1636,16 +1368,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: A221D0BA793D454AB190662FEC433F21 Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:59Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1665,21 +1397,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: - string: '{"primaryKey":"f2FR1uXP2PuIJqwdUWRqOlIQJeBUDwAs2SaEjr2dTc9KljbJBGWqd6jluqbwxsDW","secondaryKey":"jvywqEJ42HzBxsJP7nv4YUH4StoOJide1w3BY95IqHkQFAXWj2ICb8Qb0EF9mWJr","primaryTestEndpoint":"https://primary:f2FR1uXP2PuIJqwdUWRqOlIQJeBUDwAs2SaEjr2dTc9KljbJBGWqd6jluqbwxsDW@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:jvywqEJ42HzBxsJP7nv4YUH4StoOJide1w3BY95IqHkQFAXWj2ICb8Qb0EF9mWJr@clitest000002.test.azuremicroservices.io","enabled":true}' + string: '{"primaryKey":"g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif","secondaryKey":"e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN","primaryTestEndpoint":"https://primary:g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN@clitest000002.test.azuremicroservices.io","enabled":true}' headers: cache-control: - no-cache content-length: - '474' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:29 GMT + - Mon, 15 Apr 2024 12:49:00 GMT expires: - '-1' pragma: @@ -1688,16 +1420,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 86ED482E120845D18158ED092D3248ED Ref B: MAA201060515025 Ref C: 2024-04-15T12:48:59Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1715,21 +1447,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a22bcec124db4416b45eb6e15456dcdf","networkProfile":{"outboundIPs":{"publicIPs":["172.166.83.220","172.166.84.22"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:24:37.0237133Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:24:37.0237133Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:29 GMT + - Mon, 15 Apr 2024 12:49:01 GMT expires: - '-1' pragma: @@ -1738,16 +1470,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: F77449121F6B422AB0B2455982C2E73D Ref B: MAA201060515025 Ref C: 2024-04-15T12:49:00Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1763,45 +1495,44 @@ interactions: User-Agent: - python-requests/2.31.0 method: GET - uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-green-15-85bbbcd558-khvzw?tailLines=500&limitBytes=1048576&sinceSeconds=300 + uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-green-15-56bb4c887f-hxk8f?tailLines=500&limitBytes=1048576&sinceSeconds=300 response: body: string: "BUILD_IN_EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=https://clitest000002.svc.azuremicroservices.io/eureka/eureka\nBUILD_IN_SPRING_CLOUD_CONFIG_URI=https://clitest000002.svc.azuremicroservices.io/config\nBUILD_IN_SPRING_CLOUD_CONFIG_FAILFAST=true\n\n \ . ____ _ __ _ _\n /\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\\n( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\\n \\\\/ ___)| |_)| | | | | || (_| | ) ) ) )\n ' |____| .__|_| |_|_| |_\\__, | / / / /\n - =========|_|==============|___/=/_/_/_/\n :: Spring Boot :: (v2.7.14)\n\n2024-01-18 - 03:29:02.072 INFO 1 --- [ main] hello.Application : - Starting Application v1.0.0 using Java 11.0.20 on clitest000003-green-15-85bbbcd558-khvzw - with PID 1 (/app.jar started by cnb in /)\n2024-01-18 03:29:02.076 INFO 1 - --- [ main] hello.Application : No active - profile set, falling back to 1 default profile: \"default\"\n2024-01-18 03:29:03.121 - \ INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : - BeanFactory id=5a10a6b4-2276-3148-a89a-3a88ddacef4c\n2024-01-18 03:29:03.441 - \ INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : - Tomcat initialized with port(s): 1025 (http)\n2024-01-18 03:29:03.449 INFO - 1 --- [ main] o.apache.catalina.core.StandardService : Starting - service [Tomcat]\n2024-01-18 03:29:03.450 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine - \ : Starting Servlet engine: [Apache Tomcat/9.0.78]\n2024-01-18 03:29:03.519 - \ INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : - Initializing Spring embedded WebApplicationContext\n2024-01-18 03:29:03.520 - \ INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : - Root WebApplicationContext: initialization completed in 1396 ms\n2024-01-18 - 03:29:03.909 INFO 1 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping - \ : Adding welcome page: class path resource [static/index.html]\n2024-01-18 - 03:29:04.170 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver - \ : Exposing 2 endpoint(s) beneath base path '/actuator'\n2024-01-18 03:29:04.195 - \ INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : - Tomcat started on port(s): 1025 (http) with context path ''\n2024-01-18 03:29:04.208 - \ INFO 1 --- [ main] hello.Application : - Started Application in 2.921 seconds (JVM running for 4.062)\n" + =========|_|==============|___/=/_/_/_/\n :: Spring Boot :: (v3.2.0)\n\n2024-04-15T12:48:25.843Z + \ INFO 1 --- [clitest000003] [ main] hello.Application : + Starting Application v1.0.0 using Java 17.0.10 with PID 1 (/app.jar started + by cnb in /)\n2024-04-15T12:48:25.846Z INFO 1 --- [clitest000003] [ main] + hello.Application : No active profile set, falling + back to 1 default profile: \"default\"\n2024-04-15T12:48:27.205Z INFO 1 --- + [clitest000003] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer + \ : Tomcat initialized with port 1025 (http)\n2024-04-15T12:48:27.213Z INFO + 1 --- [clitest000003] [ main] o.apache.catalina.core.StandardService + \ : Starting service [Tomcat]\n2024-04-15T12:48:27.213Z INFO 1 --- [clitest000003] + [ main] o.apache.catalina.core.StandardEngine : Starting Servlet + engine: [Apache Tomcat/10.1.16]\n2024-04-15T12:48:27.246Z INFO 1 --- [clitest000003] + [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing + Spring embedded WebApplicationContext\n2024-04-15T12:48:27.247Z INFO 1 --- + [clitest000003] [ main] w.s.c.ServletWebServerApplicationContext + : Root WebApplicationContext: initialization completed in 1310 ms\n2024-04-15T12:48:27.459Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.a.w.s.WelcomePageHandlerMapping + \ : Adding welcome page: class path resource [static/index.html]\n2024-04-15T12:48:27.823Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.a.e.web.EndpointLinksResolver + \ : Exposing 2 endpoint(s) beneath base path '/actuator'\n2024-04-15T12:48:27.899Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer + \ : Tomcat started on port 1025 (http) with context path ''\n2024-04-15T12:48:27.912Z + \ INFO 1 --- [clitest000003] [ main] hello.Application : + Started Application in 2.68 seconds (process running for 3.116)\n" headers: connection: - keep-alive content-type: - text/plain date: - - Thu, 18 Jan 2024 03:29:33 GMT + - Mon, 15 Apr 2024 12:49:02 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: @@ -1823,21 +1554,21 @@ interactions: ParameterSetName: - -n --app -g -s --instance-count User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-85bbbcd558-khvzw","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:28:53Z"},{"name":"clitest000003-green-15-85bbbcd558-sljw7","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:28:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:27:48.8641374Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:27:48.8641374Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-56bb4c887f-hxk8f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:24Z"},{"name":"clitest000003-green-15-56bb4c887f-jw656","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:24Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:18.5056477Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:18.5056477Z"}}' headers: cache-control: - no-cache content-length: - - '1507' + - '1493' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:29:35 GMT + - Mon, 15 Apr 2024 12:49:05 GMT expires: - '-1' pragma: @@ -1846,16 +1577,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11996' + - '11999' + x-msedge-ref: + - 'Ref A: AFDE73CEA54044DE994F39DF8405FCAD Ref B: MAA201060515025 Ref C: 2024-04-15T12:49:02Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_crud_1.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_crud_1.yaml index 9c727519f42..8a6813e8a70 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_crud_1.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_crud_1.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -25,9 +25,9 @@ interactions: content-length: - '241' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:34 GMT + - Mon, 15 Apr 2024 12:49:31 GMT expires: - '-1' pragma: @@ -36,12 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11997' + x-msedge-ref: + - 'Ref A: 338E8DC22DCE468CBB0F11813BBDD75C Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:31Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 404 message: Not Found @@ -59,21 +63,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8c732ae6052647cfbd432919bc6eecde","networkProfile":{"outboundIPs":{"publicIPs":["172.166.84.18","172.166.84.41"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:30:24.6986911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:30:24.6986911Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '828' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:34 GMT + - Mon, 15 Apr 2024 12:49:32 GMT expires: - '-1' pragma: @@ -82,16 +86,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: EB381B714B9D4ED08D44D9C1A545724A Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:32Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -115,39 +119,43 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":true,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:32:35.221599Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:32:35.221599Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":true,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:49:33.8047863Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:33.8047863Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/ef60c372-2ae4-4a6c-8ac4-6bf183b11fba?api-version=2024-01-01-preview&t=638411455560185930&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEw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resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/814516b4-1053-48c8-a9a5-f0cbcab73eb1?api-version=2024-05-01-preview&t=638487821756798713&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BT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DAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Myvw6tAlm3ioHrKbP2zVOZvxCemewDNuo_l1abm6khPO5Cc9E2MxIMWinYSDXlGj4rsjdkSkwPD5DuQGbwRo0HoN_6G-961MxqKZVWk0FZAJzUUKxuZWb2GSQ5A-rY1rdMv3BwyWTz-GKZPh_Xlz5PBLTdZjCdLlFBIsPzEbwu7p9Nbh_q1-YSiD79cUBVb9M0CjnraeSZPSId5UoQOUn4t1cfnCoVKPWVHoNI3z4o5kL-pFcjHdC3Epw-LizpMkPdgb5vAOLavFViOHZuU46gKD0Bu_LgGyWVr3PtkED9_yt5dxP9bvA3VrJUBZ-5iWRtPzZv68ynRC_POVW5-1pA&h=tx7w_B4VOHe9DNX3uJysqO5UERq1OpGoS5phCG4BTXg cache-control: - no-cache content-length: - - '920' + - '934' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:35 GMT + - Mon, 15 Apr 2024 12:49:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/ef60c372-2ae4-4a6c-8ac4-6bf183b11fba/Spring/clitest000003?api-version=2024-01-01-preview&t=638411455560341585&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGE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KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=k3Ft1acxRsI645Ewthm7wzGgHjo5Pe3qmFEUXWzJFMI5eI5dznGuDg-0ZgQgTErBysKxD-gw-dL9tcgJg1PL8QFa36ZVzu52cc2V1Q4ZWzeYQcP5X8JRd8oFmgf_snv36oqV0v6Q3QOpkzR_frHQCLh6GdyNLcmBJCTLcZkGMBQkhRiXLuqxCj_G_3hK7cfM4nmkf-QP57zNoT-5fiBwhQmFoZF21IZvOV-01rpdUzAZAoJnV0oZX4OmNUE6jFT3GQ4-6IWTuS8D92HUP2733L63xyuwPm2biJV30zw341PtTZPHfRVAGh_MjR1ceq-T39fE0624Hgmwl1zok_Jrjw&h=LP-p326uTreV-xR2tCqGATgSCkJFlFQ-H5eWbGW-OvU + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/814516b4-1053-48c8-a9a5-f0cbcab73eb1/Spring/clitest000003?api-version=2024-05-01-preview&t=638487821756798713&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2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zzJFmzk&s=W16fVtL_ddeeOsEF8lHTmTQ5HMmRtPzbMEiV1FE49G_CeNCVdwFfaxqfkv124fms4JZoyIs_mKlJYkzMRq4SBzQomF-daNqnh6rCE4P5YYp_Oj11zq79NE3UQoIio-LFXAkYM8QZheMaGRGfMpy6065BFOsolnXyJuI_FE1VGMQ_cz9tHgyVri5sKCIKpLdoKlAzNYXQy5tBCSCFRZ7TUq6Kvkc9rGDLceKbxx-bKxW-3wtc7gBmrFDVTkeY_SjCZ5MrffjtMEuZPjP0S9efOifhJ8uUiBmeo9jKx59f5GGu3oljV8RcuptBW2AzzD_Fk50MGwknivdc6ukfH95sQA&h=2nfbAId6ZUhsyNqo1v7fCs96Ie6vf6OP7HYFW3DF8JU pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 51A0D6CD82934C83BA9984F3E9371A2D Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:33Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -165,21 +173,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/ef60c372-2ae4-4a6c-8ac4-6bf183b11fba?api-version=2024-01-01-preview&t=638411455560185930&c=MIIHHjCCBgagAwIBAgITOgI9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0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Ja9VPBbHbEv2OK_eNTWjI0-D6CJb6ZRgPKl9Y5xF_B3gC07tr7kCysz5JFQ_z9EQo_9FB7ZInXpzkbsxnzZLiRSntuMQtJStxE8Yd4kwLWiY7nTcCUenP432Cwe-f67jWPRPRpdJQ-hx9F4HBYthG0y6onYPlZwo_qUA2GBPtBs5RECnT6IBQZsG4aXmzU_KIkx_v6XA9wBr8htZBXFVGDQby0Qw3zDCkzBTavFrBZ0q1Yh9O0c4rzIC7Ihe1QqKWgfPk3TniiSh2arMdfVYreNdtZjzp4572mQ5nnihXX-w_tN1_ztMLBJtAZJMQIlh9wVBivaqlC2Cqt0K5C22Tg&h=iLRXgiyhQ5CXmxqyjzIool05QC8vJTQxd3WAJ_tLWxM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/814516b4-1053-48c8-a9a5-f0cbcab73eb1?api-version=2024-05-01-preview&t=638487821756798713&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnN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PXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Myvw6tAlm3ioHrKbP2zVOZvxCemewDNuo_l1abm6khPO5Cc9E2MxIMWinYSDXlGj4rsjdkSkwPD5DuQGbwRo0HoN_6G-961MxqKZVWk0FZAJzUUKxuZWb2GSQ5A-rY1rdMv3BwyWTz-GKZPh_Xlz5PBLTdZjCdLlFBIsPzEbwu7p9Nbh_q1-YSiD79cUBVb9M0CjnraeSZPSId5UoQOUn4t1cfnCoVKPWVHoNI3z4o5kL-pFcjHdC3Epw-LizpMkPdgb5vAOLavFViOHZuU46gKD0Bu_LgGyWVr3PtkED9_yt5dxP9bvA3VrJUBZ-5iWRtPzZv68ynRC_POVW5-1pA&h=tx7w_B4VOHe9DNX3uJysqO5UERq1OpGoS5phCG4BTXg response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/ef60c372-2ae4-4a6c-8ac4-6bf183b11fba","name":"ef60c372-2ae4-4a6c-8ac4-6bf183b11fba","status":"Running","startTime":"2024-01-18T03:32:35.8995689Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/814516b4-1053-48c8-a9a5-f0cbcab73eb1","name":"814516b4-1053-48c8-a9a5-f0cbcab73eb1","status":"Running","startTime":"2024-04-15T12:49:35.5901158Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '333' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:36 GMT + - Mon, 15 Apr 2024 12:49:35 GMT expires: - '-1' pragma: @@ -188,14 +196,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2251A576C9A34295815F3AC7DFB6F576 Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:35Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -213,21 +221,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/ef60c372-2ae4-4a6c-8ac4-6bf183b11fba?api-version=2024-01-01-preview&t=638411455560185930&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6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avFrBZ0q1Yh9O0c4rzIC7Ihe1QqKWgfPk3TniiSh2arMdfVYreNdtZjzp4572mQ5nnihXX-w_tN1_ztMLBJtAZJMQIlh9wVBivaqlC2Cqt0K5C22Tg&h=iLRXgiyhQ5CXmxqyjzIool05QC8vJTQxd3WAJ_tLWxM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/814516b4-1053-48c8-a9a5-f0cbcab73eb1?api-version=2024-05-01-preview&t=638487821756798713&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJ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lMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Myvw6tAlm3ioHrKbP2zVOZvxCemewDNuo_l1abm6khPO5Cc9E2MxIMWinYSDXlGj4rsjdkSkwPD5DuQGbwRo0HoN_6G-961MxqKZVWk0FZAJzUUKxuZWb2GSQ5A-rY1rdMv3BwyWTz-GKZPh_Xlz5PBLTdZjCdLlFBIsPzEbwu7p9Nbh_q1-YSiD79cUBVb9M0CjnraeSZPSId5UoQOUn4t1cfnCoVKPWVHoNI3z4o5kL-pFcjHdC3Epw-LizpMkPdgb5vAOLavFViOHZuU46gKD0Bu_LgGyWVr3PtkED9_yt5dxP9bvA3VrJUBZ-5iWRtPzZv68ynRC_POVW5-1pA&h=tx7w_B4VOHe9DNX3uJysqO5UERq1OpGoS5phCG4BTXg response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/ef60c372-2ae4-4a6c-8ac4-6bf183b11fba","name":"ef60c372-2ae4-4a6c-8ac4-6bf183b11fba","status":"Succeeded","startTime":"2024-01-18T03:32:35.8995689Z","endTime":"2024-01-18T03:32:38.3605814Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/814516b4-1053-48c8-a9a5-f0cbcab73eb1","name":"814516b4-1053-48c8-a9a5-f0cbcab73eb1","status":"Succeeded","startTime":"2024-04-15T12:49:35.5901158Z","endTime":"2024-04-15T12:49:41.5736533Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '376' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:46 GMT + - Mon, 15 Apr 2024 12:49:46 GMT expires: - '-1' pragma: @@ -236,14 +244,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B6BC911DF66B489D81BDF6B1FC7EAEE3 Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:46Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -261,21 +269,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":true,"url":"https://clitest000002-clitest000003.azuremicroservices.io","provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:32:35.221599Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:32:35.221599Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":true,"url":"https://cli-unittest-clitest000003.azuremicroservices.io","provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:49:33.8047863Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:33.8047863Z"}}' headers: cache-control: - no-cache content-length: - - '1090' + - '1103' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:46 GMT + - Mon, 15 Apr 2024 12:49:47 GMT expires: - '-1' pragma: @@ -284,16 +292,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 08723D0BB1B24F339C360896F3ACA116 Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:47Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -318,39 +326,43 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:32:51.3008544Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:32:51.3008544Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:49:51.0976213Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:51.0976213Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9?api-version=2024-01-01-preview&t=638411455719883976&c=MIIHHjCCBgagAwIBAgITOgI9L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WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=byi0v_FnGbf6TpEBEwtxiV-Xpuudvma4oZ9pWzXADcnt8SDPvBdZEWqAxndkpxdwvQxdd-B3h73Vo3Is12p4pcna5HZG1CLuA0NEe5GKU4dm6VanzoTaeLcc4IeibAapDG0TwMfaf55WuM5Fw1crV0jFWzFnaE0JWYcK2LiUR4KMvgT0364Skv0zN6sqvfe4rNyxvoeePEURi2ytJ5evCACarAVYPE7TbbGI_mV6KWE66Y_3F4y4XJT8BJuVjVV-VJ3NuhJgs4doEbZ0Jc_m4Qta3iTfMvqQ0CBfmGUuAiWqQrsCpMoLpQLLeoDUV_Qfmxot-BIWB2SjdiiI5bd0VA&h=A0IBfe4_mE1XkHolPUoYxWyOuU5qJH_NAnTyhuG7aDk + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6?api-version=2024-05-01-preview&t=638487821923007790&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZX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Y-ed4wPldjzzJFmzk&s=dYbMQxzdpKlCN5MaZ0k1Ib2OUpB915CQ-D5BVoVnTNNcDcQ8hG-QW1Fp8X3E1I4j-2XSo2PHr5r9cLAO75WQD3PcYK_PvThLoYB0Xkqp6-pIz5AF_wur1QEcg-gzG3ewbELhS9wwFeLZ5gm4tV-gLLTKa8UgZgPz4n3rkMng2Rhrl8MKxOucWpRG6bO6s4r1ny4tlhC7hEzaSGXehyojEXR1IFekUTfjs_tRSjNMUbCELXTG2Eyefiblc4OR5vlJMEHLPBsfPh9cPQgJq-zfwFsYHtcHKvHXEUM60GID2xzNfjnULfztMjcTLgj0AZ70RTp08fsMjdct8RNT53ds7w&h=Zmjb3PYyrZz3qilYKGMZmW_k5UR4BpZXfNlSEkNtroI cache-control: - no-cache content-length: - - '857' + - '843' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:51 GMT + - Mon, 15 Apr 2024 12:49:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/59b39cee-4e44-4542-b53d-69df51c03fe9/Spring/default?api-version=2024-01-01-preview&t=638411455719883976&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3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0cQ6uz-dvUVB1DKIdTxvrMSv0fyig_9RvxWN-_t2gJCIqBDkiamN2N2c3tSTZQ6P7Lu_bKle9-7MGlO74ujd5p_QBnhUZrH1gWmmTWj1_AxdX0UI7PlE-WTtqoriHcdJisI3Jyk9Y_xtKeLAvqezPwbHWLEbA4iStW34xbAHrg5w_Fbvj5o7DZ9F6OmlLHdWaiJJrAXxSFeFcnnyWgGW7kIENq8tqTvIBILgvCp6UZrGKi47hYeg&h=Gc_Zu-71SGwKfT7VyIeFVTUzuWEayigoG74P3_6XVFM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/4795df74-5a09-4f3d-b309-9669cd7e6cd6/Spring/default?api-version=2024-05-01-preview&t=638487821923007790&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-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Xce8XAtJQR8-Xu7iFC0ZtCSQ pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: D578ABC8C85E46C7A758A8A702596F29 Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:50Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -368,21 +380,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9?api-version=2024-01-01-preview&t=638411455719883976&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQ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NEe5GKU4dm6VanzoTaeLcc4IeibAapDG0TwMfaf55WuM5Fw1crV0jFWzFnaE0JWYcK2LiUR4KMvgT0364Skv0zN6sqvfe4rNyxvoeePEURi2ytJ5evCACarAVYPE7TbbGI_mV6KWE66Y_3F4y4XJT8BJuVjVV-VJ3NuhJgs4doEbZ0Jc_m4Qta3iTfMvqQ0CBfmGUuAiWqQrsCpMoLpQLLeoDUV_Qfmxot-BIWB2SjdiiI5bd0VA&h=A0IBfe4_mE1XkHolPUoYxWyOuU5qJH_NAnTyhuG7aDk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6?api-version=2024-05-01-preview&t=638487821923007790&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6op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rZz3qilYKGMZmW_k5UR4BpZXfNlSEkNtroI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9","name":"59b39cee-4e44-4542-b53d-69df51c03fe9","status":"Running","startTime":"2024-01-18T03:32:51.8376778Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6","name":"4795df74-5a09-4f3d-b309-9669cd7e6cd6","status":"Running","startTime":"2024-04-15T12:49:52.1092286Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:32:51 GMT + - Mon, 15 Apr 2024 12:49:52 GMT expires: - '-1' pragma: @@ -391,14 +403,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 81DFF648E0A54D1592B5459CC88A644B Ref B: MAA201060515051 Ref C: 2024-04-15T12:49:52Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -416,21 +428,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9?api-version=2024-01-01-preview&t=638411455719883976&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ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_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=byi0v_FnGbf6TpEBEwtxiV-Xpuudvma4oZ9pWzXADcnt8SDPvBdZEWqAxndkpxdwvQxdd-B3h73Vo3Is12p4pcna5HZG1CLuA0NEe5GKU4dm6VanzoTaeLcc4IeibAapDG0TwMfaf55WuM5Fw1crV0jFWzFnaE0JWYcK2LiUR4KMvgT0364Skv0zN6sqvfe4rNyxvoeePEURi2ytJ5evCACarAVYPE7TbbGI_mV6KWE66Y_3F4y4XJT8BJuVjVV-VJ3NuhJgs4doEbZ0Jc_m4Qta3iTfMvqQ0CBfmGUuAiWqQrsCpMoLpQLLeoDUV_Qfmxot-BIWB2SjdiiI5bd0VA&h=A0IBfe4_mE1XkHolPUoYxWyOuU5qJH_NAnTyhuG7aDk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6?api-version=2024-05-01-preview&t=638487821923007790&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPy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Da3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=dYbMQxzdpKlCN5MaZ0k1Ib2OUpB915CQ-D5BVoVnTNNcDcQ8hG-QW1Fp8X3E1I4j-2XSo2PHr5r9cLAO75WQD3PcYK_PvThLoYB0Xkqp6-pIz5AF_wur1QEcg-gzG3ewbELhS9wwFeLZ5gm4tV-gLLTKa8UgZgPz4n3rkMng2Rhrl8MKxOucWpRG6bO6s4r1ny4tlhC7hEzaSGXehyojEXR1IFekUTfjs_tRSjNMUbCELXTG2Eyefiblc4OR5vlJMEHLPBsfPh9cPQgJq-zfwFsYHtcHKvHXEUM60GID2xzNfjnULfztMjcTLgj0AZ70RTp08fsMjdct8RNT53ds7w&h=Zmjb3PYyrZz3qilYKGMZmW_k5UR4BpZXfNlSEkNtroI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9","name":"59b39cee-4e44-4542-b53d-69df51c03fe9","status":"Running","startTime":"2024-01-18T03:32:51.8376778Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6","name":"4795df74-5a09-4f3d-b309-9669cd7e6cd6","status":"Running","startTime":"2024-04-15T12:49:52.1092286Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:01 GMT + - Mon, 15 Apr 2024 12:50:03 GMT expires: - '-1' pragma: @@ -439,14 +451,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D1B0F7EC5B774E9387C89B03EDD57FF3 Ref B: MAA201060515051 Ref C: 2024-04-15T12:50:03Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -464,21 +476,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9?api-version=2024-01-01-preview&t=638411455719883976&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2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ibAapDG0TwMfaf55WuM5Fw1crV0jFWzFnaE0JWYcK2LiUR4KMvgT0364Skv0zN6sqvfe4rNyxvoeePEURi2ytJ5evCACarAVYPE7TbbGI_mV6KWE66Y_3F4y4XJT8BJuVjVV-VJ3NuhJgs4doEbZ0Jc_m4Qta3iTfMvqQ0CBfmGUuAiWqQrsCpMoLpQLLeoDUV_Qfmxot-BIWB2SjdiiI5bd0VA&h=A0IBfe4_mE1XkHolPUoYxWyOuU5qJH_NAnTyhuG7aDk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6?api-version=2024-05-01-preview&t=638487821923007790&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWX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NlSEkNtroI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/59b39cee-4e44-4542-b53d-69df51c03fe9","name":"59b39cee-4e44-4542-b53d-69df51c03fe9","status":"Succeeded","startTime":"2024-01-18T03:32:51.8376778Z","endTime":"2024-01-18T03:33:12.8474584Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/4795df74-5a09-4f3d-b309-9669cd7e6cd6","name":"4795df74-5a09-4f3d-b309-9669cd7e6cd6","status":"Succeeded","startTime":"2024-04-15T12:49:52.1092286Z","endTime":"2024-04-15T12:50:14.7631821Z"}' headers: cache-control: - no-cache content-length: - - '365' + - '370' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:12 GMT + - Mon, 15 Apr 2024 12:50:14 GMT expires: - '-1' pragma: @@ -487,14 +499,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 250C942321444C74B7C7552A5106235D Ref B: MAA201060515051 Ref C: 2024-04-15T12:50:14Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -512,21 +524,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-54f88c46bf-r55rd","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:32:57Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:32:51.3008544Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:32:51.3008544Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-644fb8747-hckdz","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:49:57Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:49:51.0976213Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:51.0976213Z"}}' headers: cache-control: - no-cache content-length: - - '1365' + - '1350' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:16 GMT + - Mon, 15 Apr 2024 12:50:17 GMT expires: - '-1' pragma: @@ -535,16 +547,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 9E92FF8E935B419BB6A5427361A2AF60 Ref B: MAA201060515051 Ref C: 2024-04-15T12:50:15Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -562,21 +574,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":true,"url":"https://clitest000002-clitest000003.azuremicroservices.io","provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:32:35.221599Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:32:35.221599Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":true,"url":"https://cli-unittest-clitest000003.azuremicroservices.io","provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:49:33.8047863Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:33.8047863Z"}}' headers: cache-control: - no-cache content-length: - - '1090' + - '1103' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:17 GMT + - Mon, 15 Apr 2024 12:50:22 GMT expires: - '-1' pragma: @@ -585,16 +597,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: A521499A38D94180AC66D15F7DFAE98B Ref B: MAA201060515051 Ref C: 2024-04-15T12:50:22Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -612,21 +624,21 @@ interactions: ParameterSetName: - -n -g -s --assign-endpoint --memory User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-54f88c46bf-r55rd","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:32:57Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:32:51.3008544Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:32:51.3008544Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-644fb8747-hckdz","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:49:57Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:49:51.0976213Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:51.0976213Z"}}]}' headers: cache-control: - no-cache content-length: - - '1377' + - '1362' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:20 GMT + - Mon, 15 Apr 2024 12:50:26 GMT expires: - '-1' pragma: @@ -635,16 +647,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: AB57E1ADD30F4391AAF977F9023DD0C3 Ref B: MAA201060515051 Ref C: 2024-04-15T12:50:23Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -662,21 +674,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8c732ae6052647cfbd432919bc6eecde","networkProfile":{"outboundIPs":{"publicIPs":["172.166.84.18","172.166.84.41"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:30:24.6986911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:30:24.6986911Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '828' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:21 GMT + - Mon, 15 Apr 2024 12:50:29 GMT expires: - '-1' pragma: @@ -685,16 +697,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 0E53CD9CEA0543198B5A7D7755EC879C Ref B: MAA201060513051 Ref C: 2024-04-15T12:50:28Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -712,21 +724,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8c732ae6052647cfbd432919bc6eecde","networkProfile":{"outboundIPs":{"publicIPs":["172.166.84.18","172.166.84.41"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:30:24.6986911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:30:24.6986911Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '828' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:23 GMT + - Mon, 15 Apr 2024 12:50:29 GMT expires: - '-1' pragma: @@ -735,16 +747,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11995' + - '11999' + x-msedge-ref: + - 'Ref A: F5496B2F54F249B79994BBAAAD5B9B51 Ref B: MAA201060514047 Ref C: 2024-04-15T12:50:29Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -770,39 +782,43 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":false,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:33:23.7395047Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:33:23.7395047Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":false,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:50:31.4021462Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:50:31.4021462Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054?api-version=2024-01-01-preview&t=638411456043645140&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEV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ZogISKi5KFv0Hldm4zEaJ2CrqvbKwHgzDoOnGVwoOMO5iit7uKyo6jnXNO7O4NsOFo6oHCpIG2y8kRYH2B4geRg_eFPIAR3p3uMC_XIiKNwQOVN6JBtD9ix2nlZ7LqtOhXxUUebdPb29s8t7WpmCsKfxmSPutxrEgq_hDOrbQ3F8QPq5i_1YOuIO28_mUMNqkVvZmDPSd3aqfhiAaw3Q8rCO8OoqbMqxpw7VWNEvMmqgDIL0k4qCMTDaSpfwGuFUkwx0Rg&h=vJq564XrW0xbix44KTx_widmCJdkQcUcQ_uD_0BZWqg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168?api-version=2024-05-01-preview&t=638487822325739815&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV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lu-fLE3fNPjjSadxc7kmrh8EchZ-YoTJoGGJ1WzFR0uIAptjyTtNTT4gX3t1dQ57fm-6uVuEYqkroGpQMsMesxKkwZleIpRm6x9OkY6Gplbt0QFmZ0RnnbqOTV9xUCQIcYMi6jEnMrK5xqpgZ6tW_xLkb_NDjQLamucKYyPJy_91K9Pb3yjnLstIRvn7mNNj8m-0P_-wOfYQ7w2z8JRvp2coREe9BdhShd2zFDUbwVjebdgdjyPVFKKrb4sX77df7eGvNvRQ&h=YvEEi07XYWBKXAUdor-qAmybP82vH88eOo248eqN_gc cache-control: - no-cache content-length: - - '852' + - '838' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:24 GMT + - Mon, 15 Apr 2024 12:50:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/5bea66d2-04e6-4bad-b163-2d8191ae9054/Spring/green?api-version=2024-01-01-preview&t=638411456043801418&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipC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xICkZlEymZH0_PV_z4lbq0xhk1wRp-s4UJR4cZUpxNQ4sGMJZIxl6m0pY3EG9LpY4z1nKaYknzcUhs_VqVBkyOfrCV198fo_xWE-q1MXlFvlMgLdFeilHBf0CHyXl1XfYCZoOiz_57aoS7WSmZwARg&h=E2Pn4Wr_dIkl8szsET6z6EPLmTIYP30HJZ6rkW8XHxM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/cb47551a-7b62-49bc-8dc4-dfbc36484168/Spring/green?api-version=2024-05-01-preview&t=638487822325739815&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bx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-pMwyS0aPFaSUtDWkg_cFiizPZ059i91TYGsBwV5y0lJOsdOcAbJmpwCU8hm85uYFQ5KIZNDYm1HUDnLYYT-H2e6WkxwG-MhGRWXqjy1a8Ya0tLCgDYB0805Yjc3X7AmgNhXezBvPSWIsTvpop4g&h=38aV0ob38JuLZGcqDcfGujxx0j45Ccph_UhCvkB7rw8 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '1198' + - '1199' + x-msedge-ref: + - 'Ref A: 0721BEDA12434C03AF40E30B613F215B Ref B: MAA201060514047 Ref C: 2024-04-15T12:50:30Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -820,21 +836,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054?api-version=2024-01-01-preview&t=638411456043645140&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3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KDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=B55CbegJbjTIO9xyju42e-cXSsOKhWsIIn6p2Q7taNQJUuXzDq7sf9-31HPO_IAfWZSiOueFcTCbaccXZogISKi5KFv0Hldm4zEaJ2CrqvbKwHgzDoOnGVwoOMO5iit7uKyo6jnXNO7O4NsOFo6oHCpIG2y8kRYH2B4geRg_eFPIAR3p3uMC_XIiKNwQOVN6JBtD9ix2nlZ7LqtOhXxUUebdPb29s8t7WpmCsKfxmSPutxrEgq_hDOrbQ3F8QPq5i_1YOuIO28_mUMNqkVvZmDPSd3aqfhiAaw3Q8rCO8OoqbMqxpw7VWNEvMmqgDIL0k4qCMTDaSpfwGuFUkwx0Rg&h=vJq564XrW0xbix44KTx_widmCJdkQcUcQ_uD_0BZWqg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168?api-version=2024-05-01-preview&t=638487822325739815&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4R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Q2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ZTmlBXp0ZssOb-3PFgCDZMQ6jOuRzx8Lp9HCXk54ordYQ9SUUa8ceVLIlHYh2M-pMLxTSwF8gwuma-lu-fLE3fNPjjSadxc7kmrh8EchZ-YoTJoGGJ1WzFR0uIAptjyTtNTT4gX3t1dQ57fm-6uVuEYqkroGpQMsMesxKkwZleIpRm6x9OkY6Gplbt0QFmZ0RnnbqOTV9xUCQIcYMi6jEnMrK5xqpgZ6tW_xLkb_NDjQLamucKYyPJy_91K9Pb3yjnLstIRvn7mNNj8m-0P_-wOfYQ7w2z8JRvp2coREe9BdhShd2zFDUbwVjebdgdjyPVFKKrb4sX77df7eGvNvRQ&h=YvEEi07XYWBKXAUdor-qAmybP82vH88eOo248eqN_gc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054","name":"5bea66d2-04e6-4bad-b163-2d8191ae9054","status":"Running","startTime":"2024-01-18T03:33:24.2244209Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168","name":"cb47551a-7b62-49bc-8dc4-dfbc36484168","status":"Running","startTime":"2024-04-15T12:50:32.3754013Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '325' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:24 GMT + - Mon, 15 Apr 2024 12:50:32 GMT expires: - '-1' pragma: @@ -843,14 +859,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 3156123A7173490696FB3BEF262D37C9 Ref B: MAA201060514047 Ref C: 2024-04-15T12:50:32Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -868,21 +884,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054?api-version=2024-01-01-preview&t=638411456043645140&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nC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s8t7WpmCsKfxmSPutxrEgq_hDOrbQ3F8QPq5i_1YOuIO28_mUMNqkVvZmDPSd3aqfhiAaw3Q8rCO8OoqbMqxpw7VWNEvMmqgDIL0k4qCMTDaSpfwGuFUkwx0Rg&h=vJq564XrW0xbix44KTx_widmCJdkQcUcQ_uD_0BZWqg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168?api-version=2024-05-01-preview&t=638487822325739815&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk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rK5xqpgZ6tW_xLkb_NDjQLamucKYyPJy_91K9Pb3yjnLstIRvn7mNNj8m-0P_-wOfYQ7w2z8JRvp2coREe9BdhShd2zFDUbwVjebdgdjyPVFKKrb4sX77df7eGvNvRQ&h=YvEEi07XYWBKXAUdor-qAmybP82vH88eOo248eqN_gc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054","name":"5bea66d2-04e6-4bad-b163-2d8191ae9054","status":"Running","startTime":"2024-01-18T03:33:24.2244209Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168","name":"cb47551a-7b62-49bc-8dc4-dfbc36484168","status":"Running","startTime":"2024-04-15T12:50:32.3754013Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '325' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:34 GMT + - Mon, 15 Apr 2024 12:50:43 GMT expires: - '-1' pragma: @@ -891,14 +907,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F176BF43A5D24BBA8D1BDC19939446A1 Ref B: MAA201060514047 Ref C: 2024-04-15T12:50:43Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -916,21 +932,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054?api-version=2024-01-01-preview&t=638411456043645140&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs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uY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=B55CbegJbjTIO9xyju42e-cXSsOKhWsIIn6p2Q7taNQJUuXzDq7sf9-31HPO_IAfWZSiOueFcTCbaccXZogISKi5KFv0Hldm4zEaJ2CrqvbKwHgzDoOnGVwoOMO5iit7uKyo6jnXNO7O4NsOFo6oHCpIG2y8kRYH2B4geRg_eFPIAR3p3uMC_XIiKNwQOVN6JBtD9ix2nlZ7LqtOhXxUUebdPb29s8t7WpmCsKfxmSPutxrEgq_hDOrbQ3F8QPq5i_1YOuIO28_mUMNqkVvZmDPSd3aqfhiAaw3Q8rCO8OoqbMqxpw7VWNEvMmqgDIL0k4qCMTDaSpfwGuFUkwx0Rg&h=vJq564XrW0xbix44KTx_widmCJdkQcUcQ_uD_0BZWqg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168?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mw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmwwFwYDVR0gBBAwDjAMBgorBgEEAYI3ewEBMB8GA1UdIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ZTmlBXp0ZssOb-3PFgCDZMQ6jOuRzx8Lp9HCXk54ordYQ9SUUa8ceVLIlHYh2M-pMLxTSwF8gwuma-lu-fLE3fNPjjSadxc7kmrh8EchZ-YoTJoGGJ1WzFR0uIAptjyTtNTT4gX3t1dQ57fm-6uVuEYqkroGpQMsMesxKkwZleIpRm6x9OkY6Gplbt0QFmZ0RnnbqOTV9xUCQIcYMi6jEnMrK5xqpgZ6tW_xLkb_NDjQLamucKYyPJy_91K9Pb3yjnLstIRvn7mNNj8m-0P_-wOfYQ7w2z8JRvp2coREe9BdhShd2zFDUbwVjebdgdjyPVFKKrb4sX77df7eGvNvRQ&h=YvEEi07XYWBKXAUdor-qAmybP82vH88eOo248eqN_gc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054","name":"5bea66d2-04e6-4bad-b163-2d8191ae9054","status":"Running","startTime":"2024-01-18T03:33:24.2244209Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168","name":"cb47551a-7b62-49bc-8dc4-dfbc36484168","status":"Running","startTime":"2024-04-15T12:50:32.3754013Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '325' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:45 GMT + - Mon, 15 Apr 2024 12:50:54 GMT expires: - '-1' pragma: @@ -939,14 +955,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 33E36360EAF340F5B78D0BDD8BD1EFAB Ref B: MAA201060514047 Ref C: 2024-04-15T12:50:54Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -964,21 +980,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054?api-version=2024-01-01-preview&t=638411456043645140&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1Cmg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BnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=B55CbegJbjTIO9xyju42e-cXSsOKhWsIIn6p2Q7taNQJUuXzDq7sf9-31HPO_IAfWZSiOueFcTCbaccXZogISKi5KFv0Hldm4zEaJ2CrqvbKwHgzDoOnGVwoOMO5iit7uKyo6jnXNO7O4NsOFo6oHCpIG2y8kRYH2B4geRg_eFPIAR3p3uMC_XIiKNwQOVN6JBtD9ix2nlZ7LqtOhXxUUebdPb29s8t7WpmCsKfxmSPutxrEgq_hDOrbQ3F8QPq5i_1YOuIO28_mUMNqkVvZmDPSd3aqfhiAaw3Q8rCO8OoqbMqxpw7VWNEvMmqgDIL0k4qCMTDaSpfwGuFUkwx0Rg&h=vJq564XrW0xbix44KTx_widmCJdkQcUcQ_uD_0BZWqg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168?api-version=2024-05-01-preview&t=638487822325739815&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWR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c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ZTmlBXp0ZssOb-3PFgCDZMQ6jOuRzx8Lp9HCXk54ordYQ9SUUa8ceVLIlHYh2M-pMLxTSwF8gwuma-lu-fLE3fNPjjSadxc7kmrh8EchZ-YoTJoGGJ1WzFR0uIAptjyTtNTT4gX3t1dQ57fm-6uVuEYqkroGpQMsMesxKkwZleIpRm6x9OkY6Gplbt0QFmZ0RnnbqOTV9xUCQIcYMi6jEnMrK5xqpgZ6tW_xLkb_NDjQLamucKYyPJy_91K9Pb3yjnLstIRvn7mNNj8m-0P_-wOfYQ7w2z8JRvp2coREe9BdhShd2zFDUbwVjebdgdjyPVFKKrb4sX77df7eGvNvRQ&h=YvEEi07XYWBKXAUdor-qAmybP82vH88eOo248eqN_gc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/5bea66d2-04e6-4bad-b163-2d8191ae9054","name":"5bea66d2-04e6-4bad-b163-2d8191ae9054","status":"Succeeded","startTime":"2024-01-18T03:33:24.2244209Z","endTime":"2024-01-18T03:33:46.074202Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/cb47551a-7b62-49bc-8dc4-dfbc36484168","name":"cb47551a-7b62-49bc-8dc4-dfbc36484168","status":"Succeeded","startTime":"2024-04-15T12:50:32.3754013Z","endTime":"2024-04-15T12:50:56.8871437Z"}' headers: cache-control: - no-cache content-length: - - '362' + - '368' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:55 GMT + - Mon, 15 Apr 2024 12:51:04 GMT expires: - '-1' pragma: @@ -987,14 +1003,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 580356BF8553416987E15ADEA986B76C Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:05Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1012,21 +1028,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-5ff5977c7d-ljwpw","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:33:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:33:23.7395047Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:33:23.7395047Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-799649db8-dvh5x","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:50:37Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:50:31.4021462Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:50:31.4021462Z"}}' headers: cache-control: - no-cache content-length: - - '1358' + - '1343' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:33:58 GMT + - Mon, 15 Apr 2024 12:51:07 GMT expires: - '-1' pragma: @@ -1035,16 +1051,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 4A13948BB0394DC5BF7FF10F02145D9E Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:05Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1062,21 +1078,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-5ff5977c7d-ljwpw","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:33:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:33:23.7395047Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:33:23.7395047Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-799649db8-dvh5x","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:50:37Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:50:31.4021462Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:50:31.4021462Z"}}' headers: cache-control: - no-cache content-length: - - '1358' + - '1343' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:34:00 GMT + - Mon, 15 Apr 2024 12:51:10 GMT expires: - '-1' pragma: @@ -1085,16 +1101,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11996' + - '11999' + x-msedge-ref: + - 'Ref A: DF2726FE5A9C4EC4B7F892F20DD37A24 Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:08Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1112,21 +1128,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8c732ae6052647cfbd432919bc6eecde","networkProfile":{"outboundIPs":{"publicIPs":["172.166.84.18","172.166.84.41"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:30:24.6986911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:30:24.6986911Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '828' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:34:01 GMT + - Mon, 15 Apr 2024 12:51:11 GMT expires: - '-1' pragma: @@ -1135,16 +1151,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11994' + - '11998' + x-msedge-ref: + - 'Ref A: 0FD11ABC5C8A4CC3B0FDFEA640C1FC4A Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:11Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1164,21 +1180,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: - string: '{"primaryKey":"c5xPCErvEJottFcD8OVehzvUKnizUdxSMgzi8XctOCVGOWgOn9VWmLmP8De6YRYg","secondaryKey":"MrLcQYgObl46fHVhDIRmm7yS5rTVYPxIvVvT7chVuCikzA9wghErjkGv9vdjp4V8","primaryTestEndpoint":"https://primary:c5xPCErvEJottFcD8OVehzvUKnizUdxSMgzi8XctOCVGOWgOn9VWmLmP8De6YRYg@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:MrLcQYgObl46fHVhDIRmm7yS5rTVYPxIvVvT7chVuCikzA9wghErjkGv9vdjp4V8@clitest000002.test.azuremicroservices.io","enabled":true}' + string: '{"primaryKey":"g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif","secondaryKey":"e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN","primaryTestEndpoint":"https://primary:g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN@clitest000002.test.azuremicroservices.io","enabled":true}' headers: cache-control: - no-cache content-length: - '474' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:34:01 GMT + - Mon, 15 Apr 2024 12:51:11 GMT expires: - '-1' pragma: @@ -1187,16 +1203,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' + x-msedge-ref: + - 'Ref A: 61E9BCBA2EC244959C592E9E990892D7 Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:12Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1214,21 +1230,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8c732ae6052647cfbd432919bc6eecde","networkProfile":{"outboundIPs":{"publicIPs":["172.166.84.18","172.166.84.41"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:30:24.6986911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:30:24.6986911Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '828' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:34:02 GMT + - Mon, 15 Apr 2024 12:51:12 GMT expires: - '-1' pragma: @@ -1237,16 +1253,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11993' + - '11999' + x-msedge-ref: + - 'Ref A: CFFE6DB8E3A34E0585AF5B14DAD2EBCE Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:13Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1262,45 +1278,44 @@ interactions: User-Agent: - python-requests/2.31.0 method: GET - uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-green-15-5ff5977c7d-ljwpw?tailLines=500&limitBytes=1048576&sinceSeconds=300 + uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-green-15-799649db8-dvh5x?tailLines=500&limitBytes=1048576&sinceSeconds=300 response: body: string: "BUILD_IN_EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=https://clitest000002.svc.azuremicroservices.io/eureka/eureka\nBUILD_IN_SPRING_CLOUD_CONFIG_URI=https://clitest000002.svc.azuremicroservices.io/config\nBUILD_IN_SPRING_CLOUD_CONFIG_FAILFAST=true\n\n \ . ____ _ __ _ _\n /\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\\n( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\\n \\\\/ ___)| |_)| | | | | || (_| | ) ) ) )\n ' |____| .__|_| |_|_| |_\\__, | / / / /\n - =========|_|==============|___/=/_/_/_/\n :: Spring Boot :: (v2.7.14)\n\n2024-01-18 - 03:33:34.637 INFO 1 --- [ main] hello.Application : - Starting Application v1.0.0 using Java 11.0.20 on clitest000003-green-15-5ff5977c7d-ljwpw - with PID 1 (/app.jar started by cnb in /)\n2024-01-18 03:33:34.639 INFO 1 - --- [ main] hello.Application : No active - profile set, falling back to 1 default profile: \"default\"\n2024-01-18 03:33:36.643 - \ INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : - BeanFactory id=5a10a6b4-2276-3148-a89a-3a88ddacef4c\n2024-01-18 03:33:37.268 - \ INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : - Tomcat initialized with port(s): 1025 (http)\n2024-01-18 03:33:37.278 INFO - 1 --- [ main] o.apache.catalina.core.StandardService : Starting - service [Tomcat]\n2024-01-18 03:33:37.278 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine - \ : Starting Servlet engine: [Apache Tomcat/9.0.78]\n2024-01-18 03:33:37.463 - \ INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : - Initializing Spring embedded WebApplicationContext\n2024-01-18 03:33:37.463 - \ INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : - Root WebApplicationContext: initialization completed in 2715 ms\n2024-01-18 - 03:33:38.739 INFO 1 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping - \ : Adding welcome page: class path resource [static/index.html]\n2024-01-18 - 03:33:39.342 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver - \ : Exposing 2 endpoint(s) beneath base path '/actuator'\n2024-01-18 03:33:39.443 - \ INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : - Tomcat started on port(s): 1025 (http) with context path ''\n2024-01-18 03:33:39.459 - \ INFO 1 --- [ main] hello.Application : - Started Application in 6.285 seconds (JVM running for 7.295)\n" + =========|_|==============|___/=/_/_/_/\n :: Spring Boot :: (v3.2.0)\n\n2024-04-15T12:50:41.208Z + \ INFO 1 --- [clitest000003] [ main] hello.Application : + Starting Application v1.0.0 using Java 17.0.10 with PID 1 (/app.jar started + by cnb in /)\n2024-04-15T12:50:41.212Z INFO 1 --- [clitest000003] [ main] + hello.Application : No active profile set, falling + back to 1 default profile: \"default\"\n2024-04-15T12:50:44.575Z INFO 1 --- + [clitest000003] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer + \ : Tomcat initialized with port 1025 (http)\n2024-04-15T12:50:44.584Z INFO + 1 --- [clitest000003] [ main] o.apache.catalina.core.StandardService + \ : Starting service [Tomcat]\n2024-04-15T12:50:44.585Z INFO 1 --- [clitest000003] + [ main] o.apache.catalina.core.StandardEngine : Starting Servlet + engine: [Apache Tomcat/10.1.16]\n2024-04-15T12:50:44.888Z INFO 1 --- [clitest000003] + [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing + Spring embedded WebApplicationContext\n2024-04-15T12:50:44.889Z INFO 1 --- + [clitest000003] [ main] w.s.c.ServletWebServerApplicationContext + : Root WebApplicationContext: initialization completed in 3508 ms\n2024-04-15T12:50:45.896Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.a.w.s.WelcomePageHandlerMapping + \ : Adding welcome page: class path resource [static/index.html]\n2024-04-15T12:50:46.887Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.a.e.web.EndpointLinksResolver + \ : Exposing 2 endpoint(s) beneath base path '/actuator'\n2024-04-15T12:50:47.012Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer + \ : Tomcat started on port 1025 (http) with context path ''\n2024-04-15T12:50:47.091Z + \ INFO 1 --- [clitest000003] [ main] hello.Application : + Started Application in 7.195 seconds (process running for 8.279)\n" headers: connection: - keep-alive content-type: - text/plain date: - - Thu, 18 Jan 2024 03:34:05 GMT + - Mon, 15 Apr 2024 12:51:14 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: @@ -1322,21 +1337,21 @@ interactions: ParameterSetName: - -n --app -g -s --skip-clone-settings User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-5ff5977c7d-ljwpw","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:33:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:33:23.7395047Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:33:23.7395047Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-799649db8-dvh5x","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:50:37Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:50:31.4021462Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:50:31.4021462Z"}}' headers: cache-control: - no-cache content-length: - - '1358' + - '1343' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:34:07 GMT + - Mon, 15 Apr 2024 12:51:17 GMT expires: - '-1' pragma: @@ -1345,16 +1360,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11995' + - '11999' + x-msedge-ref: + - 'Ref A: 1A24986A5C4D45ACA478A96BD5BD30F2 Ref B: MAA201060514047 Ref C: 2024-04-15T12:51:14Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container.yaml index 1d12d4021cd..2c0a49994ad 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-23T02:57:49.439147Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:11.2005101Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:11.2005101Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/85a3507f-cbf2-42dc-a303-042ddb6cd788/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/85a3507f-cbf2-42dc-a303-042ddb6cd788/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788","name":"85a3507f-cbf2-42dc-a303-042ddb6cd788","status":"Running","startTime":"2023-04-12T09:15:11.6667063Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/85a3507f-cbf2-42dc-a303-042ddb6cd788","name":"85a3507f-cbf2-42dc-a303-042ddb6cd788","status":"Succeeded","startTime":"2023-04-12T09:15:11.6667063Z","endTime":"2023-04-12T09:15:18.1406272Z"}' @@ -262,7 +262,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:11.2005101Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:11.2005101Z"}}' @@ -319,13 +319,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:27.0289005Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -337,7 +337,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -369,7 +369,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","name":"c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","status":"Running","startTime":"2023-04-12T09:15:27.7587959Z"}' @@ -417,7 +417,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","name":"c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","status":"Running","startTime":"2023-04-12T09:15:27.7587959Z"}' @@ -465,7 +465,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","name":"c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","status":"Running","startTime":"2023-04-12T09:15:27.7587959Z"}' @@ -513,7 +513,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","name":"c1c3a9cc-039d-4ae6-bc89-74a64e5b1331","status":"Succeeded","startTime":"2023-04-12T09:15:27.7587959Z","endTime":"2023-04-12T09:15:56.4584941Z"}' @@ -561,7 +561,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:15:33Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:27.0289005Z"}}' @@ -611,7 +611,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:11.2005101Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:11.2005101Z"}}' @@ -661,7 +661,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:15:33Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:27.0289005Z"}}]}' @@ -711,7 +711,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:15:33Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:15:27.0289005Z"}}]}' @@ -761,7 +761,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"BadRequest","message":"Feature BuildService is not @@ -813,13 +813,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -831,7 +831,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/da8fc835-5b29-4c77-ac5e-02ed9a317cbc/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/da8fc835-5b29-4c77-ac5e-02ed9a317cbc/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -863,7 +863,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc","name":"da8fc835-5b29-4c77-ac5e-02ed9a317cbc","status":"Running","startTime":"2023-04-12T09:16:11.6994991Z"}' @@ -911,7 +911,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:15:33Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -961,7 +961,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:15:33Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -1011,7 +1011,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc","name":"da8fc835-5b29-4c77-ac5e-02ed9a317cbc","status":"Running","startTime":"2023-04-12T09:16:11.6994991Z"}' @@ -1059,7 +1059,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Terminating","discoveryStatus":"N/A","startTime":"2023-04-12T09:15:33Z"},{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Starting","reason":"ContainerCreating","discoveryStatus":"N/A","startTime":"2023-04-12T09:16:22Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -1109,7 +1109,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc","name":"da8fc835-5b29-4c77-ac5e-02ed9a317cbc","status":"Running","startTime":"2023-04-12T09:16:11.6994991Z"}' @@ -1157,7 +1157,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-8845b594d-fplt4","status":"Terminating","discoveryStatus":"N/A","startTime":"2023-04-12T09:15:33Z"},{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Starting","reason":"Not @@ -1208,7 +1208,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:16:22Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -1258,7 +1258,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/da8fc835-5b29-4c77-ac5e-02ed9a317cbc","name":"da8fc835-5b29-4c77-ac5e-02ed9a317cbc","status":"Succeeded","startTime":"2023-04-12T09:16:11.6994991Z","endTime":"2023-04-12T09:16:40.0247634Z"}' @@ -1306,7 +1306,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:16:22Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -1356,7 +1356,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:16:22Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -1406,7 +1406,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:16:22Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' @@ -1456,7 +1456,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-23T02:57:49.439147Z"}}' @@ -1508,7 +1508,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: string: '{"primaryKey":"g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif","secondaryKey":"e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN","primaryTestEndpoint":"https://primary:g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN@clitest000002.test.azuremicroservices.io","enabled":true}' @@ -1619,7 +1619,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-dd4cd7696-6vxwz","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:16:22Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io"}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:15:27.0289005Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:16:10.8429309Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container_command.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container_command.yaml index 334efb5d670..a73adc13c66 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container_command.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_deploy_container_command.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-23T02:57:49.439147Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:33.5296969Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:33.5296969Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/844ebd82-4248-4c59-b730-8bc06d7f9da9/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/844ebd82-4248-4c59-b730-8bc06d7f9da9/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9","name":"844ebd82-4248-4c59-b730-8bc06d7f9da9","status":"Running","startTime":"2023-04-12T09:12:33.9627206Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/844ebd82-4248-4c59-b730-8bc06d7f9da9","name":"844ebd82-4248-4c59-b730-8bc06d7f9da9","status":"Succeeded","startTime":"2023-04-12T09:12:33.9627206Z","endTime":"2023-04-12T09:12:40.4511415Z"}' @@ -262,7 +262,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:33.5296969Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:33.5296969Z"}}' @@ -319,13 +319,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:49.1862435Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -337,7 +337,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/0b1880b0-cc5c-4133-99e8-6cc42129318f/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/0b1880b0-cc5c-4133-99e8-6cc42129318f/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -369,7 +369,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f","name":"0b1880b0-cc5c-4133-99e8-6cc42129318f","status":"Running","startTime":"2023-04-12T09:12:49.9268921Z"}' @@ -417,7 +417,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f","name":"0b1880b0-cc5c-4133-99e8-6cc42129318f","status":"Running","startTime":"2023-04-12T09:12:49.9268921Z"}' @@ -465,7 +465,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f","name":"0b1880b0-cc5c-4133-99e8-6cc42129318f","status":"Running","startTime":"2023-04-12T09:12:49.9268921Z"}' @@ -513,7 +513,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/0b1880b0-cc5c-4133-99e8-6cc42129318f","name":"0b1880b0-cc5c-4133-99e8-6cc42129318f","status":"Succeeded","startTime":"2023-04-12T09:12:49.9268921Z","endTime":"2023-04-12T09:13:14.2568849Z"}' @@ -561,7 +561,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:12:55Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:49.1862435Z"}}' @@ -611,7 +611,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:33.5296969Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:33.5296969Z"}}' @@ -661,7 +661,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:12:55Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:49.1862435Z"}}]}' @@ -711,7 +711,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:12:55Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:12:49.1862435Z"}}]}' @@ -761,7 +761,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"BadRequest","message":"Feature BuildService is not @@ -814,13 +814,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -832,7 +832,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/532af7c3-36e1-437d-ba54-661d5cfa202c/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/532af7c3-36e1-437d-ba54-661d5cfa202c/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -864,7 +864,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:12:55Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -914,7 +914,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:12:55Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -964,7 +964,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c","name":"532af7c3-36e1-437d-ba54-661d5cfa202c","status":"Running","startTime":"2023-04-12T09:13:41.4693744Z"}' @@ -1012,7 +1012,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Terminating","discoveryStatus":"N/A","startTime":"2023-04-12T09:12:55Z"},{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Starting","reason":"ContainerCreating","discoveryStatus":"N/A","startTime":"2023-04-12T09:13:52Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -1062,7 +1062,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-686589849-5m6lr","status":"Terminating","discoveryStatus":"N/A","startTime":"2023-04-12T09:12:55Z"},{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Starting","reason":"Not @@ -1113,7 +1113,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c","name":"532af7c3-36e1-437d-ba54-661d5cfa202c","status":"Running","startTime":"2023-04-12T09:13:41.4693744Z"}' @@ -1161,7 +1161,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:13:52Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -1211,7 +1211,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/532af7c3-36e1-437d-ba54-661d5cfa202c","name":"532af7c3-36e1-437d-ba54-661d5cfa202c","status":"Succeeded","startTime":"2023-04-12T09:13:41.4693744Z","endTime":"2023-04-12T09:14:09.7852708Z"}' @@ -1259,7 +1259,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:13:52Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -1309,7 +1309,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:13:52Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -1359,7 +1359,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:13:52Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' @@ -1409,7 +1409,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-23T02:57:49.439147Z"}}' @@ -1461,7 +1461,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: string: '{"primaryKey":"g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif","secondaryKey":"e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN","primaryTestEndpoint":"https://primary:g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN@clitest000002.test.azuremicroservices.io","enabled":true}' @@ -1572,7 +1572,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6999f65fdd-9q798","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:13:52Z"}],"source":{"type":"Container","version":"","customContainer":{"containerImage":"springio/gs-spring-boot-docker","server":"docker.io","command":["java"],"args":["-cp","/app/resources:/app/classes:/app/libs/*","hello.Application"]}}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:12:49.1862435Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:13:40.1908624Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_app_i2a_tls.yaml b/src/spring/azext_spring/tests/latest/recordings/test_app_i2a_tls.yaml index 72cc6400598..e7b2d2a2105 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_app_i2a_tls.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_app_i2a_tls.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-23T02:57:49.439147Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:22.5638284Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/278c525f-74f7-4bed-b2b1-ab4fb04503af/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/278c525f-74f7-4bed-b2b1-ab4fb04503af/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af","name":"278c525f-74f7-4bed-b2b1-ab4fb04503af","status":"Running","startTime":"2023-04-03T07:41:23.3093113Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/278c525f-74f7-4bed-b2b1-ab4fb04503af","name":"278c525f-74f7-4bed-b2b1-ab4fb04503af","status":"Succeeded","startTime":"2023-04-03T07:41:23.3093113Z","endTime":"2023-04-03T07:41:29.8049927Z"}' @@ -262,7 +262,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:22.5638284Z"}}' @@ -319,13 +319,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:38.595217Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -337,7 +337,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/f899b4b1-ad21-4869-a554-3b0a849d3fdc/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/f899b4b1-ad21-4869-a554-3b0a849d3fdc/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -369,7 +369,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc","name":"f899b4b1-ad21-4869-a554-3b0a849d3fdc","status":"Running","startTime":"2023-04-03T07:41:39.3189057Z"}' @@ -417,7 +417,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e7284d56-1b10-4178-abf5-889d4f27754a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e7284d56-1b10-4178-abf5-889d4f27754a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e7284d56-1b10-4178-abf5-889d4f27754a","name":"e7284d56-1b10-4178-abf5-889d4f27754a","status":"Running","startTime":"2023-04-03T07:41:40.8556032Z"}' @@ -465,7 +465,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e7284d56-1b10-4178-abf5-889d4f27754a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e7284d56-1b10-4178-abf5-889d4f27754a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e7284d56-1b10-4178-abf5-889d4f27754a","name":"e7284d56-1b10-4178-abf5-889d4f27754a","status":"Succeeded","startTime":"2023-04-03T07:41:40.8556032Z","endTime":"2023-04-03T07:41:48.1024053Z"}' @@ -513,7 +513,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:39.8404878Z"}}' @@ -563,7 +563,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc","name":"f899b4b1-ad21-4869-a554-3b0a849d3fdc","status":"Running","startTime":"2023-04-03T07:41:39.3189057Z"}' @@ -611,7 +611,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f899b4b1-ad21-4869-a554-3b0a849d3fdc","name":"f899b4b1-ad21-4869-a554-3b0a849d3fdc","status":"Succeeded","startTime":"2023-04-03T07:41:39.3189057Z","endTime":"2023-04-03T07:42:07.3726713Z"}' @@ -659,7 +659,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fb57c5b75-kqj86","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:41:42Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:38.595217Z"}}' @@ -709,7 +709,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:39.8404878Z"}}' @@ -759,7 +759,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fb57c5b75-kqj86","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:41:42Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:38.595217Z"}}]}' @@ -809,7 +809,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:39.8404878Z"}}' @@ -859,7 +859,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fb57c5b75-kqj86","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:41:42Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:38.595217Z"}}]}' @@ -909,7 +909,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fb57c5b75-kqj86","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:41:42Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:41:38.595217Z"}}]}' @@ -963,13 +963,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":true,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:23.045971Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -981,7 +981,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/07fb7463-8fd8-4fc3-ba40-17fa96b69344/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/07fb7463-8fd8-4fc3-ba40-17fa96b69344/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1018,13 +1018,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1036,7 +1036,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fb9b08ac-b365-4b60-8529-305a64fd83b9/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fb9b08ac-b365-4b60-8529-305a64fd83b9/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1068,7 +1068,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9","name":"fb9b08ac-b365-4b60-8529-305a64fd83b9","status":"Running","startTime":"2023-04-03T07:42:24.7739769Z"}' @@ -1116,7 +1116,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344","name":"07fb7463-8fd8-4fc3-ba40-17fa96b69344","status":"Running","startTime":"2023-04-03T07:42:23.857894Z"}' @@ -1164,7 +1164,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9","name":"fb9b08ac-b365-4b60-8529-305a64fd83b9","status":"Running","startTime":"2023-04-03T07:42:24.7739769Z"}' @@ -1212,7 +1212,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/07fb7463-8fd8-4fc3-ba40-17fa96b69344","name":"07fb7463-8fd8-4fc3-ba40-17fa96b69344","status":"Succeeded","startTime":"2023-04-03T07:42:23.857894Z","endTime":"2023-04-03T07:42:37.6443595Z"}' @@ -1260,7 +1260,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":true,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:23.045971Z"}}' @@ -1310,7 +1310,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9","name":"fb9b08ac-b365-4b60-8529-305a64fd83b9","status":"Running","startTime":"2023-04-03T07:42:24.7739769Z"}' @@ -1358,7 +1358,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9","name":"fb9b08ac-b365-4b60-8529-305a64fd83b9","status":"Running","startTime":"2023-04-03T07:42:24.7739769Z"}' @@ -1406,7 +1406,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/fb9b08ac-b365-4b60-8529-305a64fd83b9","name":"fb9b08ac-b365-4b60-8529-305a64fd83b9","status":"Succeeded","startTime":"2023-04-03T07:42:24.7739769Z","endTime":"2023-04-03T07:43:01.5943922Z"}' @@ -1454,7 +1454,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7c7f767697-lqv2f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:42:35Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}' @@ -1504,7 +1504,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":true,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:23.045971Z"}}' @@ -1554,7 +1554,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7c7f767697-lqv2f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:42:35Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}]}' @@ -1604,7 +1604,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":true,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:23.045971Z"}}' @@ -1654,7 +1654,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7c7f767697-lqv2f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:42:35Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}]}' @@ -1704,7 +1704,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7c7f767697-lqv2f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:42:35Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}]}' @@ -1758,13 +1758,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:43:27.3344091Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1776,7 +1776,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5ea80979-ed98-4483-ad04-761b54f6f43d/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5ea80979-ed98-4483-ad04-761b54f6f43d/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1812,13 +1812,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:43:27.3344091Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1830,7 +1830,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5ea80979-ed98-4483-ad04-761b54f6f43d/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5ea80979-ed98-4483-ad04-761b54f6f43d/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1862,7 +1862,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d","name":"5ea80979-ed98-4483-ad04-761b54f6f43d","status":"Running","startTime":"2023-04-03T07:43:27.8491438Z"}' @@ -1915,7 +1915,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7c7f767697-lqv2f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:42:35Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}' @@ -1965,7 +1965,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d","name":"5ea80979-ed98-4483-ad04-761b54f6f43d","status":"Running","startTime":"2023-04-03T07:43:27.8491438Z"}' @@ -2013,7 +2013,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5ea80979-ed98-4483-ad04-761b54f6f43d","name":"5ea80979-ed98-4483-ad04-761b54f6f43d","status":"Succeeded","startTime":"2023-04-03T07:43:27.8491438Z","endTime":"2023-04-03T07:43:40.3131221Z"}' @@ -2061,7 +2061,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:43:27.3344091Z"}}' @@ -2111,7 +2111,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:22.5638284Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:43:27.3344091Z"}}' @@ -2161,7 +2161,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7c7f767697-lqv2f","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-03T07:42:35Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:41:38.595217Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:42:24.1241823Z"}}]}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_application_accelerator.yaml b/src/spring/azext_spring/tests/latest/recordings/test_application_accelerator.yaml index 7d0fb0f81b9..4ad57ed56b7 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_application_accelerator.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_application_accelerator.yaml @@ -18,39 +18,43 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T02:59:48.8784183Z"}}' + string: '{"properties":{"provisioningState":"Creating","public":true,"components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:21:28.7974035Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d?api-version=2024-01-01-preview&t=638412299896909338&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5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sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=e0SZOqCwRd1xKaAsqX1XxqT3VuUMZf7aw3XJI2RLB2ama-70OpTAbaqd3KKgpJbiZ3t_2xbleyJfu5sA0BL3AK_492UyaUgKBnMiw0kPPHXHXu-Gsft4i9AAFgSuVJXljeWCxTVnKeCq9PjNJ4iPsUhUpmUYNNxfXu3VQ2vKM6ys91TUezlrsCzN-UyY2-kb7r2OTagcjdFkn6rY6tZpFMSUr-6rWWUAo6MVNdywQ9xplNUti-nvKPavg00gz0w_RkI2X8veicNusR5wSEA_sI8bv_42I8bxcgQOjYB1qQPO-AUcDZTAVgAArhPWOwZUjFBUz1Rpx32gDbGT46VDmg&h=_DBnZwTSkouzyQBXFG6RUpzEk0uPZUvtOuoWuUJpgk4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa?api-version=2024-05-01-preview&t=638487660895630727&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyL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anBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=D7bG_urtuCLFGK4EI9rd7sOs08Wr_86amDwS-f4LhXEGVNJdwDjzOHAIi0HHGYg8iZ2yqSYkFQtGtWEVhnJyZMwfc3xsRySOdJ8g6s_MgDQtu99GpMmzPbuIQaqwubaZ-a0ni4PdsU5qHBqZ-eUimxL_BjO_GUuRgYhBmqVBmO5W4DIL9jSJnoSPsbAF6VJdYY77aF8xTRtAh5311MVEGCnRf1ciwJHEZxpaaWzhhMnShAAs-KOGO-Lu5Zk4RcvX7chW3ZkMw1J-yAFg_Zq9r5tBVsHpSbRx81ZurPhRRNG-6TCfJ1j35V9vV3jz05q774tNM9pyA1K1ugxRscqo9A&h=t0NsBKgv15F5TfVx_0T_Nd96sIEQI0Tw75yNufFwPyI cache-control: - no-cache content-length: - - '864' + - '769' content-type: - application/json date: - - Fri, 19 Jan 2024 02:59:49 GMT + - Mon, 15 Apr 2024 08:21:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/2b31691a-8201-4cf9-a393-535df1245d5d/Spring/clitest000002?api-version=2024-01-01-preview&t=638412299896909338&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlv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9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=jAtw6fcPE6MQedFr5PoVMaiEYib3j3PEJP6OPAO2VIrrzMgTtB3l1DrjyjJAMU4zamsxGR5Q2yiQJqOQIT_TqKszRRMGIUhdBLai24fWoklWBLKO29rBUFH-bSAdlZgsl6DGLtsxjlAfvHM7AgyPUcsulq6ecU24-2YD9s2V-DJneAny2KVnK1wanq8406fxR5bZWTjk_kh4ZvGDjulN667vbGnERwf1dD-ls-SvpMNl9egxb_bjB4Y3Y7CulaMOb70ZuRSQ25LSBBTDhSrmAOTclZhh8uF0lpN_kEydTekTulOtPd0IVChyDKs7-DYczjw2Mn8eMBivWzjxtNTujQ&h=1LXQVAN37hp-S395fH3dVccsNX9vn9lLdsFiJpZPVws + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/d1a53e8a-a6c7-40c5-8da6-d995b08badfa/Spring/clitest000002?api-version=2024-05-01-preview&t=638487660895630727&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpW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zTjAC1lJ7k2gnVPFKDQUIUg6FWtGdqDvGvkH_-5HYumOhniT4McZ1l9ibPPa0hBjNQ4INzvzh39HzhnxMy70s4kYmuslcyGA3HE6rkOcdyJLhhhoMDDDy4pkB5aD25aRw4g&h=7yHIAs-bMZJKosnucihcw9dd7FnJHsCcICNG4eFj5P4 pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: DF5B58D9DA604700AEA47118AC0E9B16 Ref B: MAA201060514009 Ref C: 2024-04-15T08:21:28Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -68,37 +72,37 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d?api-version=2024-01-01-preview&t=638412299896909338&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjB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Nx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=e0SZOqCwRd1xKaAsqX1XxqT3VuUMZf7aw3XJI2RLB2ama-70OpTAbaqd3KKgpJbiZ3t_2xbleyJfu5sA0BL3AK_492UyaUgKBnMiw0kPPHXHXu-Gsft4i9AAFgSuVJXljeWCxTVnKeCq9PjNJ4iPsUhUpmUYNNxfXu3VQ2vKM6ys91TUezlrsCzN-UyY2-kb7r2OTagcjdFkn6rY6tZpFMSUr-6rWWUAo6MVNdywQ9xplNUti-nvKPavg00gz0w_RkI2X8veicNusR5wSEA_sI8bv_42I8bxcgQOjYB1qQPO-AUcDZTAVgAArhPWOwZUjFBUz1Rpx32gDbGT46VDmg&h=_DBnZwTSkouzyQBXFG6RUpzEk0uPZUvtOuoWuUJpgk4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa?api-version=2024-05-01-preview&t=638487660895630727&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbN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UuRgYhBmqVBmO5W4DIL9jSJnoSPsbAF6VJdYY77aF8xTRtAh5311MVEGCnRf1ciwJHEZxpaaWzhhMnShAAs-KOGO-Lu5Zk4RcvX7chW3ZkMw1J-yAFg_Zq9r5tBVsHpSbRx81ZurPhRRNG-6TCfJ1j35V9vV3jz05q774tNM9pyA1K1ugxRscqo9A&h=t0NsBKgv15F5TfVx_0T_Nd96sIEQI0Tw75yNufFwPyI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d","name":"2b31691a-8201-4cf9-a393-535df1245d5d","status":"Running","startTime":"2024-01-19T02:59:49.6115921Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa","name":"d1a53e8a-a6c7-40c5-8da6-d995b08badfa","status":"Running","startTime":"2024-04-15T08:21:29.4421631Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 02:59:50 GMT + - Mon, 15 Apr 2024 08:21:30 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 056341D43BDE4D5F8FCE32676851043F Ref B: MAA201060514009 Ref C: 2024-04-15T08:21:29Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -116,37 +120,37 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d?api-version=2024-01-01-preview&t=638412299896909338&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQU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resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa?api-version=2024-05-01-preview&t=638487660895630727&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5B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cDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=D7bG_urtuCLFGK4EI9rd7sOs08Wr_86amDwS-f4LhXEGVNJdwDjzOHAIi0HHGYg8iZ2yqSYkFQtGtWEVhnJyZMwfc3xsRySOdJ8g6s_MgDQtu99GpMmzPbuIQaqwubaZ-a0ni4PdsU5qHBqZ-eUimxL_BjO_GUuRgYhBmqVBmO5W4DIL9jSJnoSPsbAF6VJdYY77aF8xTRtAh5311MVEGCnRf1ciwJHEZxpaaWzhhMnShAAs-KOGO-Lu5Zk4RcvX7chW3ZkMw1J-yAFg_Zq9r5tBVsHpSbRx81ZurPhRRNG-6TCfJ1j35V9vV3jz05q774tNM9pyA1K1ugxRscqo9A&h=t0NsBKgv15F5TfVx_0T_Nd96sIEQI0Tw75yNufFwPyI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d","name":"2b31691a-8201-4cf9-a393-535df1245d5d","status":"Running","startTime":"2024-01-19T02:59:49.6115921Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa","name":"d1a53e8a-a6c7-40c5-8da6-d995b08badfa","status":"Running","startTime":"2024-04-15T08:21:29.4421631Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:00:00 GMT + - Mon, 15 Apr 2024 08:21:41 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A0D873D4871C436D94538DFEE97B70D0 Ref B: MAA201060514009 Ref C: 2024-04-15T08:21:40Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -164,37 +168,37 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d?api-version=2024-01-01-preview&t=638412299896909338&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5Whc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Ptz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=e0SZOqCwRd1xKaAsqX1XxqT3VuUMZf7aw3XJI2RLB2ama-70OpTAbaqd3KKgpJbiZ3t_2xbleyJfu5sA0BL3AK_492UyaUgKBnMiw0kPPHXHXu-Gsft4i9AAFgSuVJXljeWCxTVnKeCq9PjNJ4iPsUhUpmUYNNxfXu3VQ2vKM6ys91TUezlrsCzN-UyY2-kb7r2OTagcjdFkn6rY6tZpFMSUr-6rWWUAo6MVNdywQ9xplNUti-nvKPavg00gz0w_RkI2X8veicNusR5wSEA_sI8bv_42I8bxcgQOjYB1qQPO-AUcDZTAVgAArhPWOwZUjFBUz1Rpx32gDbGT46VDmg&h=_DBnZwTSkouzyQBXFG6RUpzEk0uPZUvtOuoWuUJpgk4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa?api-version=2024-05-01-preview&t=638487660895630727&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqK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sU5qHBqZ-eUimxL_BjO_GUuRgYhBmqVBmO5W4DIL9jSJnoSPsbAF6VJdYY77aF8xTRtAh5311MVEGCnRf1ciwJHEZxpaaWzhhMnShAAs-KOGO-Lu5Zk4RcvX7chW3ZkMw1J-yAFg_Zq9r5tBVsHpSbRx81ZurPhRRNG-6TCfJ1j35V9vV3jz05q774tNM9pyA1K1ugxRscqo9A&h=t0NsBKgv15F5TfVx_0T_Nd96sIEQI0Tw75yNufFwPyI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/2b31691a-8201-4cf9-a393-535df1245d5d","name":"2b31691a-8201-4cf9-a393-535df1245d5d","status":"Succeeded","startTime":"2024-01-19T02:59:49.6115921Z","endTime":"2024-01-19T03:00:02.1517248Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa","name":"d1a53e8a-a6c7-40c5-8da6-d995b08badfa","status":"Running","startTime":"2024-04-15T08:21:29.4421631Z"}' headers: cache-control: - no-cache content-length: - - '372' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:00:10 GMT + - Mon, 15 Apr 2024 08:21:52 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 1A66C8872948491CAB8CFA84050E6F91 Ref B: MAA201060514009 Ref C: 2024-04-15T08:21:51Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -212,670 +216,37 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa?api-version=2024-05-01-preview&t=638487660895630727&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf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PhRRNG-6TCfJ1j35V9vV3jz05q774tNM9pyA1K1ugxRscqo9A&h=t0NsBKgv15F5TfVx_0T_Nd96sIEQI0Tw75yNufFwPyI response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7c88fb797-6z9lz","status":"Running"},{"name":"server-7c88fb797-zw5sv","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T02:59:48.8784183Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa","name":"d1a53e8a-a6c7-40c5-8da6-d995b08badfa","status":"Running","startTime":"2024-04-15T08:21:29.4421631Z"}' headers: cache-control: - no-cache content-length: - - '985' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:00:11 GMT + - Mon, 15 Apr 2024 08:22:02 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 21DADD18C8DC4C5CB7C6499BA24F91BB Ref B: MAA201060514009 Ref C: 2024-04-15T08:22:02Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1b82148b47c4407d879cbf4e7d3a3dfa","networkProfile":{"outboundIPs":{"publicIPs":["20.2.51.212","20.2.52.7"]},"ingressConfig":{"readTimeoutInSeconds":200},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{"asc-test":"dogfood","api-target":"arm","test-job-id":"0421300e-d7b4-5c64-f530-fa21e83c0a48","test-pipeline-link":"https://msazure.visualstudio.com/AzureDMSS/_build/results?buildId=85933649","service-create-time":"2024-01-19 - 02:07:56 +0800","service-expire-time":"2024-01-20 13:07:56 +0800"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T18:07:57.3631957Z","lastModifiedBy":"744f634a-c741-43e5-b464-ccc043d13fac","lastModifiedByType":"Application","lastModifiedAt":"2024-01-18T18:07:57.3631957Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '1302' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:12 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: '{"properties": {}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - Content-Length: - - '18' - Content-Type: - - application/json - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Creating","components":[{"name":"accelerator-server","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":2},"instances":[]},{"name":"accelerator-engine","resourceRequests":{"cpu":"1000m","memory":"3Gi","instanceCount":1},"instances":[]},{"name":"accelerator-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[]},{"name":"source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[]}]},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2024-01-19T03:00:13.9632551Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T03:00:13.9632551Z"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLg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L2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - cache-control: - - no-cache - content-length: - - '1007' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:13 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/350fa4af-4894-40b8-8330-8df075e78a84/Spring/clitest000002?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW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3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JxnEE5WO19_jXhCSG-rvwa4S1N7_l1IQ6JcDafPN4Z0-Sp9Ux1ez2z5oVCnG1q6A-Jn-BHnuqJ5gtfrd3sQS-i10caFEDb-Fbsu7VotdUZNj62mK7xDsMbaBR-I3w7wa1191hn7cCkdeO6YlFBmkE9Fhc_a7FVFtgb6VFSUNRmDjEAtDWVNFAzItY9IQ9eKcz4Xy2o7biNNFPN49ePB5v_qGix3TnKjQMAfWtLmOwSrZh5uy3zGhzx4zgG8yKFF-yzeF08X54pG37_5JgdU9vOwn0fsg345SxP_e24lpyJwKxLcktLkLEdzPEGBJiZczkFa-U_4p8C19UU5wYzKlgA&h=rUoJoOIiCcccaRQ6saHsvxgCvIKv-itlPl5LJ5ejY4g - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7c88fb797-6z9lz","status":"Running"},{"name":"server-7c88fb797-zw5sv","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T02:59:48.8784183Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '985' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:14 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxU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BJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:25 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqD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aH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:36 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330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BAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:46 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8l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3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:00:56 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5W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_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:01:07 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcw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jBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:01:17 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnv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AOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:01:27 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1C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ZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:01:39 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCB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CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:01:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ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ih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:01:59 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -887,43 +258,43 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator create + - spring dev-tool create Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0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vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa?api-version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A3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=D7bG_urtuCLFGK4EI9rd7sOs08Wr_86amDwS-f4LhXEGVNJdwDjzOHAIi0HHGYg8iZ2yqSYkFQtGtWEVhnJyZMwfc3xsRySOdJ8g6s_MgDQtu99GpMmzPbuIQaqwubaZ-a0ni4PdsU5qHBqZ-eUimxL_BjO_GUuRgYhBmqVBmO5W4DIL9jSJnoSPsbAF6VJdYY77aF8xTRtAh5311MVEGCnRf1ciwJHEZxpaaWzhhMnShAAs-KOGO-Lu5Zk4RcvX7chW3ZkMw1J-yAFg_Zq9r5tBVsHpSbRx81ZurPhRRNG-6TCfJ1j35V9vV3jz05q774tNM9pyA1K1ugxRscqo9A&h=t0NsBKgv15F5TfVx_0T_Nd96sIEQI0Tw75yNufFwPyI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/d1a53e8a-a6c7-40c5-8da6-d995b08badfa","name":"d1a53e8a-a6c7-40c5-8da6-d995b08badfa","status":"Succeeded","startTime":"2024-04-15T08:21:29.4421631Z","endTime":"2024-04-15T08:22:11.8124207Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '371' content-type: - application/json date: - - Fri, 19 Jan 2024 03:02:10 GMT + - Mon, 15 Apr 2024 08:22:13 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9CD7CDC921C1402C962741DEB4B424BF Ref B: MAA201060514009 Ref C: 2024-04-15T08:22:13Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -935,43 +306,43 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator create + - spring dev-tool create Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMj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7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-602db.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7dd67cf6b8-fp6f7","status":"Running"},{"name":"server-7dd67cf6b8-tj647","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:21:28.7974035Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '960' content-type: - application/json date: - - Fri, 19 Jan 2024 03:02:20 GMT + - Mon, 15 Apr 2024 08:22:15 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 25C51542451741FD9AFDC711162F6A99 Ref B: MAA201060514009 Ref C: 2024-04-15T08:22:14Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -979,7 +350,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: @@ -989,88 +360,100 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCC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6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"675c7a1fa6c845069f19e6491e3ee84c","networkProfile":{"outboundIPs":{"publicIPs":["4.250.60.193","4.250.61.234"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:17:26.0879001Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:17:26.0879001Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '933' content-type: - application/json date: - - Fri, 19 Jan 2024 03:02:30 GMT + - Mon, 15 Apr 2024 08:22:16 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 8EA0A47EC35B4E9794D6A8C87842F124 Ref B: MAA201060515047 Ref C: 2024-04-15T08:22:16Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: null + body: '{"properties": {}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - spring application-accelerator create Connection: - keep-alive + Content-Length: + - '18' + Content-Type: + - application/json ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRw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Y3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"properties":{"provisioningState":"Creating","components":[{"name":"accelerator-server","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":2},"instances":[]},{"name":"accelerator-engine","resourceRequests":{"cpu":"1000m","memory":"3Gi","instanceCount":1},"instances":[]},{"name":"accelerator-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[]},{"name":"source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[]}]},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:22:18.4814319Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:22:18.4814319Z"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNp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Xz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI cache-control: - no-cache content-length: - - '329' + - '1005' content-type: - application/json date: - - Fri, 19 Jan 2024 03:02:41 GMT + - Mon, 15 Apr 2024 08:22:18 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/12279335-abde-436e-a607-0662fa22ac22/Spring/clitest000002?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaC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cv4ppEf1X4Uazc1cJNY_LOMlRAPja3z1RYsurEoCeMDpQmTdh80EwTcrD9KXrV4SpA1H2Fr417U1QYQkrCpU9da-N8n5R3NUSPee90AY6zYDv6HW12pHjceftFGqj-3fz4GD74j_-Re2tbYl-wyJdYBtJt-JbK_LR31QA3wr_1PmeIMRRs9YuCgbDFFBuVLRSfpRmZ_w&h=SNcaajTZI-THE-LCGnTyXq4zaQ4EbitsiNaNrRPwQZ0 pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: C8B9844555D74BAEBC8D99DEB36DA6E8 Ref B: MAA201060514029 Ref C: 2024-04-15T08:22:18Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -1085,37 +468,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR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aFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQE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FNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:02:51 GMT + - Mon, 15 Apr 2024 08:22:18 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A78AA80F4D344D8891B97822B1D04183 Ref B: MAA201060514029 Ref C: 2024-04-15T08:22:19Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1133,37 +516,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSan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gkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCs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AYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:02 GMT + - Mon, 15 Apr 2024 08:22:29 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B4EED7210A874C56991AD0D7E55AA75A Ref B: MAA201060514029 Ref C: 2024-04-15T08:22:29Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1181,37 +564,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgY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82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsK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oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:13 GMT + - Mon, 15 Apr 2024 08:22:40 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 70293D27C60D4C528CD7E550543A7F33 Ref B: MAA201060514029 Ref C: 2024-04-15T08:22:40Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1229,37 +612,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAw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OYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC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jG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:23 GMT + - Mon, 15 Apr 2024 08:22:52 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C90BECB059A940C5BB9AD2F85DD054D2 Ref B: MAA201060514029 Ref C: 2024-04-15T08:22:51Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1277,37 +660,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcN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wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YvViKjYEtWwewUT8gM1KrkFCTlst4e5tuwOfhUDP6G_QaCngrCVizZWiBE94Zh8VJfib1xT3wUmaH7quMP1GRnhTgNRUfVwhGkWIAITGhIW02tFqyWsxtp9kecSkm4zIpZgMZiPqgqhP6jEwzyBAOWLZ1LXe_YvM05QqOhrc9kGtB3rK9w2LWmBZ3Bb8cKjVx0toRp3e6L8U5yiJpNoSBJzgEcAUxo6fv15IdN4Bxd5ux6RimFOR7Ee6Zk2uhFnexLZh0V40rDH4g9NQ7Q4Ipw4-6dptFc-HPs34kDkHWGQ-DU01Rnjkd3MSv059g3I1sCSnjj2xc2UjvZKGgkAxcg&h=3aeUkx5_yG0jvWl1qoyMG2Lls2JOYfBtW8CBbdeZn98 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw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RIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Running","startTime":"2024-01-19T03:00:14.5618997Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:34 GMT + - Mon, 15 Apr 2024 08:23:03 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7E417553473C42E1AA63AA8F3C59EDA2 Ref B: MAA201060514029 Ref C: 2024-04-15T08:23:02Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1325,37 +708,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84?api-version=2024-01-01-preview&t=638412300146820422&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQ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riptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUE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UEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/350fa4af-4894-40b8-8330-8df075e78a84","name":"350fa4af-4894-40b8-8330-8df075e78a84","status":"Succeeded","startTime":"2024-01-19T03:00:14.5618997Z","endTime":"2024-01-19T03:03:35.3187715Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '372' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:44 GMT + - Mon, 15 Apr 2024 08:23:14 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 816FB63906594EBCB040A4A5889A9CA9 Ref B: MAA201060514029 Ref C: 2024-04-15T08:23:13Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1373,37 +756,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRM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opXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"properties":{"provisioningState":"Succeeded","components":[{"name":"accelerator-server","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":2},"instances":[{"name":"acc-server-6f7d4c488f-khpkc","status":"Running"},{"name":"acc-server-6f7d4c488f-ptvxc","status":"Running"}]},{"name":"accelerator-engine","resourceRequests":{"cpu":"1000m","memory":"3Gi","instanceCount":1},"instances":[{"name":"acc-engine-78579b7b8b-zrjw8","status":"Running"}]},{"name":"accelerator-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"accelerator-controller-manager-7cd56687d6-5np4x","status":"Running"}]},{"name":"source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"source-controller-manager-678465bbfc-dzbpx","status":"Running"}]},{"name":"flux-source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"fluxcd-source-controller-d9cd7c9db-96dmj","status":"Running"}]}]},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2024-01-19T03:00:13.9632551Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T03:00:13.9632551Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '1517' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:45 GMT + - Mon, 15 Apr 2024 08:23:25 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 96B74E6A94D24326BB1DBB17B15D6873 Ref B: MAA201060514029 Ref C: 2024-04-15T08:23:24Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1411,50 +794,47 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring dev-tool show + - spring application-accelerator create Connection: - keep-alive ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBg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IwMDYuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1b82148b47c4407d879cbf4e7d3a3dfa","networkProfile":{"outboundIPs":{"publicIPs":["20.2.51.212","20.2.52.7"]},"ingressConfig":{"readTimeoutInSeconds":200},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{"asc-test":"dogfood","api-target":"arm","test-job-id":"0421300e-d7b4-5c64-f530-fa21e83c0a48","test-pipeline-link":"https://msazure.visualstudio.com/AzureDMSS/_build/results?buildId=85933649","service-create-time":"2024-01-19 - 02:07:56 +0800","service-expire-time":"2024-01-20 13:07:56 +0800"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T18:07:57.3631957Z","lastModifiedBy":"744f634a-c741-43e5-b464-ccc043d13fac","lastModifiedByType":"Application","lastModifiedAt":"2024-01-18T18:07:57.3631957Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '1302' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:46 GMT + - Mon, 15 Apr 2024 08:23:35 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + x-msedge-ref: + - 'Ref A: 7118483C3E364197A92296F4B8630521 Ref B: MAA201060514029 Ref C: 2024-04-15T08:23:35Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1462,47 +842,47 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring dev-tool show + - spring application-accelerator create Connection: - keep-alive ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCC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0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7c88fb797-6z9lz","status":"Running"},{"name":"server-7c88fb797-zw5sv","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T02:59:48.8784183Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '985' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:47 GMT + - Mon, 15 Apr 2024 08:23:46 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 35BF3BF8E59341DAAC40D4DBD3F1F30B Ref B: MAA201060514029 Ref C: 2024-04-15T08:23:46Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1510,50 +890,47 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator show + - spring application-accelerator create Connection: - keep-alive ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1b82148b47c4407d879cbf4e7d3a3dfa","networkProfile":{"outboundIPs":{"publicIPs":["20.2.51.212","20.2.52.7"]},"ingressConfig":{"readTimeoutInSeconds":200},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{"asc-test":"dogfood","api-target":"arm","test-job-id":"0421300e-d7b4-5c64-f530-fa21e83c0a48","test-pipeline-link":"https://msazure.visualstudio.com/AzureDMSS/_build/results?buildId=85933649","service-create-time":"2024-01-19 - 02:07:56 +0800","service-expire-time":"2024-01-20 13:07:56 +0800"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T18:07:57.3631957Z","lastModifiedBy":"744f634a-c741-43e5-b464-ccc043d13fac","lastModifiedByType":"Application","lastModifiedAt":"2024-01-18T18:07:57.3631957Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Running","startTime":"2024-04-15T08:22:19.1189596Z"}' headers: cache-control: - no-cache content-length: - - '1302' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:48 GMT + - Mon, 15 Apr 2024 08:23:57 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + x-msedge-ref: + - 'Ref A: 46CB8BD546B64019A13419A8A144C675 Ref B: MAA201060514029 Ref C: 2024-04-15T08:23:57Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1561,47 +938,47 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator show + - spring application-accelerator create Connection: - keep-alive ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22?api-version=2024-05-01-preview&t=638487661392626876&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCN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FodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=daHwoRMqscmPBKtuaXIBC2_Q_m0ccVO07cI4tQOx6VwqucFNSBdBoZ_UgGjqOCht8cQW5Vq0OM4VGR7GW8oODu62BRxsiQcvNZCETiDsDUTdcQOILiqzNySzqRIQibk6uGpdcnU5uIxlCLbO-AF-6im0_iaGU4FMxobCvr7Qox1KNlOEpSwYAZh3PtsxAXXjp2MVpTcb6jK5DGhNY7BLPbsXh2P_PH96_G91KZEmfg_X9oG7uI_00Y9jlAGrPIPuKH4_JI2AUKAFMv3XJRFqYqt7zTIeipo8SdAKinlngW_Oua8UWdXUk0G5hp1kCRPodu3KkeHiELRRgSqY1Zz_Qw&h=BtAmjY4WJ-upuqY6ljzwZlCF4ij2Vua_JYy4lkVu8QI response: body: - string: '{"properties":{"provisioningState":"Succeeded","components":[{"name":"accelerator-server","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":2},"instances":[{"name":"acc-server-6f7d4c488f-khpkc","status":"Running"},{"name":"acc-server-6f7d4c488f-ptvxc","status":"Running"}]},{"name":"accelerator-engine","resourceRequests":{"cpu":"1000m","memory":"3Gi","instanceCount":1},"instances":[{"name":"acc-engine-78579b7b8b-zrjw8","status":"Running"}]},{"name":"accelerator-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"accelerator-controller-manager-7cd56687d6-5np4x","status":"Running"}]},{"name":"source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"source-controller-manager-678465bbfc-dzbpx","status":"Running"}]},{"name":"flux-source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"fluxcd-source-controller-d9cd7c9db-96dmj","status":"Running"}]}]},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2024-01-19T03:00:13.9632551Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T03:00:13.9632551Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/12279335-abde-436e-a607-0662fa22ac22","name":"12279335-abde-436e-a607-0662fa22ac22","status":"Succeeded","startTime":"2024-04-15T08:22:19.1189596Z","endTime":"2024-04-15T08:24:04.6832367Z"}' headers: cache-control: - no-cache content-length: - - '1517' + - '371' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:49 GMT + - Mon, 15 Apr 2024 08:24:08 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C3302C110A6E438280498134DD203B4C Ref B: MAA201060514029 Ref C: 2024-04-15T08:24:07Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1609,46 +986,47 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator delete + - spring application-accelerator create Connection: - keep-alive ParameterSetName: - - --yes -g -s + - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1b82148b47c4407d879cbf4e7d3a3dfa","networkProfile":{"outboundIPs":{"publicIPs":["20.2.51.212","20.2.52.7"]},"ingressConfig":{"readTimeoutInSeconds":200},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{"asc-test":"dogfood","api-target":"arm","test-job-id":"0421300e-d7b4-5c64-f530-fa21e83c0a48","test-pipeline-link":"https://msazure.visualstudio.com/AzureDMSS/_build/results?buildId=85933649","service-create-time":"2024-01-19 - 02:07:56 +0800","service-expire-time":"2024-01-20 13:07:56 +0800"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T18:07:57.3631957Z","lastModifiedBy":"744f634a-c741-43e5-b464-ccc043d13fac","lastModifiedByType":"Application","lastModifiedAt":"2024-01-18T18:07:57.3631957Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","components":[{"name":"accelerator-server","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":2},"instances":[{"name":"acc-server-6775d7857b-df6s5","status":"Running"},{"name":"acc-server-6775d7857b-tl86r","status":"Running"}]},{"name":"accelerator-engine","resourceRequests":{"cpu":"1000m","memory":"3Gi","instanceCount":1},"instances":[{"name":"acc-engine-799db8d9bc-gb545","status":"Running"}]},{"name":"accelerator-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"accelerator-controller-manager-559cc9f687-hvb5j","status":"Running"}]},{"name":"source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"source-controller-manager-86bd547dfd-bxngw","status":"Running"}]},{"name":"flux-source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"fluxcd-source-controller-6b456df899-979cl","status":"Running"}]}]},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:22:18.4814319Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:22:18.4814319Z"}}' headers: cache-control: - no-cache content-length: - - '1302' + - '1516' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:50 GMT + - Mon, 15 Apr 2024 08:24:09 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + x-msedge-ref: + - 'Ref A: 497E7EE47E2443B5BC0D34E0A97D52C1 Ref B: MAA201060514029 Ref C: 2024-04-15T08:24:08Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1660,244 +1038,93 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --yes -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-01-01-preview - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMM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XUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DUJDgdu7dZDD7XjyTUJ2Q-POQCXcGrJoVjZmaeXDOGYc4Amne7UVsqMbNB8InXKFR6hwITowcvtQO4H-D_gGYgKoCEbmsIJlcuK3WyPqAV2mVOTDqshDYYqomUZCvHUsuyxg4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 19 Jan 2024 03:03:51 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/ff19bd50-e537-4a58-b305-74c8a021ca88/Spring/clitest000002?api-version=2024-01-01-preview&t=638412302325304868&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZ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vIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sO0_ozPfBAngePXw4I9018ekH9vC5edHTEA2vdYKSW3Ws1wzw19N4E1QfIXlxOKhC5LojlIihEjK2SB8M3NTvsWr_EZu6h8z2DMEsD5ukgnAN_AKJ9vvxZBSn4rU4Jww2DxOMD-VSFNV0UL3o7zLx9GzfzeaC4HNVOl3JNP0jFpXD89uaS2Iwv0elrupVQVKf_zqNjhrX97UZsoUqztl7yN6jEwOuf9k3-3NTAFBP7ZW3a0s1hvdxMDqtq0yHM6rPlKSPmZsS499pWGYgxi9qyVIQBEniV2cF2Hl3Pa2eF_vZ2Qt_SYOaWdxIMWOmqS0wWOfNgY94qJDAF8Rmj4ojQ&h=Y90p3UxZKoYpP5v5S89FFOnThU86KmG2VOv9dF-RLIs - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator delete + - spring dev-tool show Connection: - keep-alive ParameterSetName: - - --yes -g -s + - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7c88fb797-6z9lz","status":"Running"},{"name":"server-7c88fb797-zw5sv","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T02:59:48.8784183Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"675c7a1fa6c845069f19e6491e3ee84c","networkProfile":{"outboundIPs":{"publicIPs":["4.250.60.193","4.250.61.234"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:17:26.0879001Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:17:26.0879001Z"}}' headers: cache-control: - no-cache content-length: - - '985' + - '933' content-type: - application/json date: - - Fri, 19 Jan 2024 03:03:53 GMT + - Mon, 15 Apr 2024 08:24:10 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 156B6C4342E245A983473CA99E779D14 Ref B: MAA201060514017 Ref C: 2024-04-15T08:24:10Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK -- request: - body: '{"properties": {"public": true, "features": {"applicationAccelerator": - {"state": "Disabled"}, "applicationLiveView": {"state": "Enabled"}}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator delete - Connection: - - keep-alive - Content-Length: - - '140' - Content-Type: - - application/json - ParameterSetName: - - --yes -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Updating","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Disabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T03:03:53.5304715Z"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVC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UUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 - cache-control: - - no-cache - content-length: - - '865' - content-type: - - application/json - date: - - Fri, 19 Jan 2024 03:03:54 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7/Spring/clitest000002?api-version=2024-01-01-preview&t=638412302340773804&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIM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ZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=snCvisRyEmvdE4uYjnu49JQfwhDcNVRkbkOgbrdFUlEZY6Ubfce5np6YhuDyzl3OdJHPskS4aUft6EviKXE_VwJGBYmJEso-xbmu07WGvdKkBfbnTF59y3ae4UWmrMubiryZR4r7V_cS7NXF8MZvj3hhNRP2BYOSp13V9sc7TJqfTlTBEhrGzFIrw-zF3otq9ym6GmuvyehoRwRA9bFkWg4YDLlh7br53oEzl1mH5-H3CieVULHb_wZHzkAcomxEjIabzt0TYVi-O-WzeydluncAF2sV-f4BvJ0QGzDfUKCEhSJEfDBNwgS_6rgWApoaCj1pi7gauifjunm7vIGfgg&h=WkQofwlbHZZ-8ZjhgkoXQtNNIJ5IXGEuVB1fMTo3sfI - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 201 - message: Created - request: body: null headers: Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator delete - Connection: - - keep-alive - ParameterSetName: - - --yes -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYB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04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' - headers: - cache-control: - - no-cache - content-length: - - '329' - content-type: - application/json - date: - - Fri, 19 Jan 2024 03:03:54 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator delete + - spring dev-tool show Connection: - keep-alive ParameterSetName: - - --yes -g -s + - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvb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jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DUJDgdu7dZDD7XjyTUJ2Q-POQCXcGrJoVjZmaeXDOGYc4Amne7UVsqMbNB8InXKFR6hwITowcvtQO4H-D_gGYgKoCEbmsIJlcuK3WyPqAV2mVOTDqshDYYqomUZCvHUsuyxg4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-602db.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7dd67cf6b8-fp6f7","status":"Running"},{"name":"server-7dd67cf6b8-tj647","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:21:28.7974035Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '960' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:03 GMT + - Mon, 15 Apr 2024 08:24:13 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DB3029A962024BEFAC7BD790B97FC6A4 Ref B: MAA201060513045 Ref C: 2024-04-15T08:24:12Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1905,47 +1132,49 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator delete + - spring application-accelerator show Connection: - keep-alive ParameterSetName: - - --yes -g -s + - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGE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KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"675c7a1fa6c845069f19e6491e3ee84c","networkProfile":{"outboundIPs":{"publicIPs":["4.250.60.193","4.250.61.234"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:17:26.0879001Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:17:26.0879001Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '933' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:04 GMT + - Mon, 15 Apr 2024 08:24:15 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + x-msedge-ref: + - 'Ref A: D11D6B3F70BA4C079BF34B212786D1F3 Ref B: MAA201060516029 Ref C: 2024-04-15T08:24:14Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1953,47 +1182,47 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator delete + - spring application-accelerator show Connection: - keep-alive ParameterSetName: - - --yes -g -s + - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggr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2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DUJDgdu7dZDD7XjyTUJ2Q-POQCXcGrJoVjZmaeXDOGYc4Amne7UVsqMbNB8InXKFR6hwITowcvtQO4H-D_gGYgKoCEbmsIJlcuK3WyPqAV2mVOTDqshDYYqomUZCvHUsuyxg4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"properties":{"provisioningState":"Succeeded","components":[{"name":"accelerator-server","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":2},"instances":[{"name":"acc-server-6775d7857b-df6s5","status":"Running"},{"name":"acc-server-6775d7857b-tl86r","status":"Running"}]},{"name":"accelerator-engine","resourceRequests":{"cpu":"1000m","memory":"3Gi","instanceCount":1},"instances":[{"name":"acc-engine-799db8d9bc-gb545","status":"Running"}]},{"name":"accelerator-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"accelerator-controller-manager-559cc9f687-hvb5j","status":"Running"}]},{"name":"source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"source-controller-manager-86bd547dfd-bxngw","status":"Running"}]},{"name":"flux-source-controller","resourceRequests":{"cpu":"200m","memory":"256Mi","instanceCount":1},"instances":[{"name":"fluxcd-source-controller-6b456df899-979cl","status":"Running"}]}]},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:22:18.4814319Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:22:18.4814319Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '1516' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:14 GMT + - Mon, 15 Apr 2024 08:24:16 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7C0DCE13DE2B4714AF08671F860ABA55 Ref B: MAA201060515033 Ref C: 2024-04-15T08:24:16Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2001,7 +1230,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: @@ -2011,37 +1240,39 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwE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-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"675c7a1fa6c845069f19e6491e3ee84c","networkProfile":{"outboundIPs":{"publicIPs":["4.250.60.193","4.250.61.234"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:17:26.0879001Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:17:26.0879001Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '933' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:15 GMT + - Mon, 15 Apr 2024 08:24:19 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: E99C5307293846A5B9585F3F78CF5BE5 Ref B: MAA201060514051 Ref C: 2024-04-15T08:24:18Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2049,50 +1280,56 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - spring application-accelerator delete Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI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P1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DUJDgdu7dZDD7XjyTUJ2Q-POQCXcGrJoVjZmaeXDOGYc4Amne7UVsqMbNB8InXKFR6hwITowcvtQO4H-D_gGYgKoCEbmsIJlcuK3WyPqAV2mVOTDqshDYYqomUZCvHUsuyxg4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-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THfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g cache-control: - no-cache content-length: - - '329' - content-type: - - application/json + - '0' date: - - Fri, 19 Jan 2024 03:04:24 GMT + - Mon, 15 Apr 2024 08:24:21 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/447999df-fa55-46e7-a3b2-e4ad669d920d/Spring/clitest000002?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4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taYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NOnm9x3hF4NkAtDLqIly1DHG_vt0HMgKcJpz0xdpbEEHs6AIOxqaUwBctRFXLH5XnD9jRX61v55fzIrP-BMUAfD9WMnS0ki0lLoa78BhGyNo0sSIPavJy-Y4MqEPJvtb_YHYCCNb9NDnvB6EE6_UXPkCiw1F0qKKr63lBu4mvO50dcnEUThpCFbxJCCK7mVYUJrW9oF3Gbamqc9ABZ4Hu3HcD2WFfMEDY0g5EWX6xUoha17IC4KF14ysa1TI82u-z3FFiBelkiJ2N1mq0vSP0Zm38BbD1UaKp8yjvRqDQy75VMzC4rL8vynXi8_yKI679RpNQGmNfG1NWeuF758YVQ&h=lJX_5EZl6ZGe5-tJtjxmryOhjtsyWRxFRuYwAgA90j8 pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: BE2B4E129AA94D36836A2DEBAD9E3899 Ref B: MAA201060513039 Ref C: 2024-04-15T08:24:20Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -2107,37 +1344,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQl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AWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImi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yNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:25 GMT + - Mon, 15 Apr 2024 08:24:22 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2AAAC5F2F8614D2FBC6995CC30F2EB6E Ref B: MAA201060513039 Ref C: 2024-04-15T08:24:21Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2145,7 +1382,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: @@ -2155,88 +1392,99 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCgg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GrJoVjZmaeXDOGYc4Amne7UVsqMbNB8InXKFR6hwITowcvtQO4H-D_gGYgKoCEbmsIJlcuK3WyPqAV2mVOTDqshDYYqomUZCvHUsuyxg4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-602db.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7dd67cf6b8-fp6f7","status":"Running"},{"name":"server-7dd67cf6b8-tj647","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:21:28.7974035Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '960' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:34 GMT + - Mon, 15 Apr 2024 08:24:22 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 1DA48706ADCE4A1AB2E471AEDCF54E42 Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:21Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: null + body: '{"properties": {"public": true, "features": {"applicationAccelerator": + {"state": "Disabled"}, "applicationLiveView": {"state": "Enabled"}}}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - spring application-accelerator delete Connection: - keep-alive + Content-Length: + - '140' + Content-Type: + - application/json ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FM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odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"properties":{"provisioningState":"Updating","public":true,"url":"clitest000002-devtoolportal-602db.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Disabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:24:23.345076Z"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixH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DDgLi_BNAY-n5QmMp6Eo-moBzctaO1bYIpRoYY cache-control: - no-cache content-length: - - '329' + - '837' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:35 GMT + - Mon, 15 Apr 2024 08:24:23 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/e73c2b66-642f-44dd-927a-12e1f9f4640d/Spring/clitest000002?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGC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jFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=OtT8d4ajX9qG8Yj13e6mKyLrm_IZlQOJvw8bYbL6RljCzKLksrPsYaGaTLlhVjaFLTp_5VUS7iFzT5bRpsUh1VELF3EZ0M0oxCW_lePfhZNWH4qv7Xp4e-IxuUOV8EA9mNbiiO8P4c9DmMsS9yRlwXFaNjDGYrJiUcWVSSw7tfQMlvJvgV5W1ZAPMjrzqsdgwlzadAcMJKEAFPy148sabP0HAeDgc_Une-w6vmHb1DLmtb3eYBkWryUYvuJrwiND_8JNHQoOTGKw2lhNkx56w5iE0VGVsTHGyvcVqLRtPAQ8PImjCn3Hv0ZBGJp8BLqtvyRPxQ6VdQ-7Krko2k42RA&h=LqJbhNUKhdNI_yFkdksqmMUDmr_KI_Xbw7UmH4a-DZA pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: EE3D5FAAA5D94D6ABC9752D7FA257E16 Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:22Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -2251,37 +1499,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VF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aH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf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scriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d","name":"e73c2b66-642f-44dd-927a-12e1f9f4640d","status":"Running","startTime":"2024-04-15T08:24:24.0022222Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:45 GMT + - Mon, 15 Apr 2024 08:24:24 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5DB1102BF15E4CCB8F2F80AAB12F5D9C Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:24Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2299,37 +1547,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0F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BgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9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TZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:46 GMT + - Mon, 15 Apr 2024 08:24:33 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 48CB32F8F4964073BA1CD5352EA44C39 Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:32Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2347,37 +1595,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrN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hqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMC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"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d","name":"e73c2b66-642f-44dd-927a-12e1f9f4640d","status":"Running","startTime":"2024-04-15T08:24:24.0022222Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:55 GMT + - Mon, 15 Apr 2024 08:24:35 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5BDB0E0EA7444C608E672DFB03ED1381 Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:35Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2395,37 +1643,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX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AdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDE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dNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:04:56 GMT + - Mon, 15 Apr 2024 08:24:43 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DBF65AA6127D4322BF247BD1538A0D2D Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:43Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2443,37 +1691,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXr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dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoM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{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d","name":"e73c2b66-642f-44dd-927a-12e1f9f4640d","status":"Running","startTime":"2024-04-15T08:24:24.0022222Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:06 GMT + - Mon, 15 Apr 2024 08:24:46 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2FED5B80441043CBB1E1664F07A38EE8 Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:46Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2491,37 +1739,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX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AdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDE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dNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:07 GMT + - Mon, 15 Apr 2024 08:24:54 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C097FCE7103F40D2ADCC6DC68991F5AA Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:54Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2539,37 +1787,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTX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4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3So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'{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Running","startTime":"2024-01-19T03:03:52.4528425Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d","name":"e73c2b66-642f-44dd-927a-12e1f9f4640d","status":"Running","startTime":"2024-04-15T08:24:24.0022222Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:16 GMT + - Mon, 15 Apr 2024 08:24:57 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E9AFE029C9984D16BE3C8543F6E7AA67 Ref B: MAA201060513037 Ref C: 2024-04-15T08:24:56Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2587,37 +1835,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0J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YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQ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RKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:17 GMT + - Mon, 15 Apr 2024 08:25:05 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0D88B776C632437DA7D8A06A93EAF85A Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:05Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2635,37 +1883,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88?api-version=2024-01-01-preview&t=638412302325148199&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocT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g4dhqnwoaH9LmPN2h64CV75I09I7t8HuNION48xkUqmLSs-z6zQPuS8egofmSVOw6a3QIWBtVtbKROSHs5LqrWWk0_RQN6AOb7DGiX0GXvYZgV2eOwxTJD5LyKvxR2Vxx0UneBtPxV5VTpTh2HykK5c0bAUBtYcXs1KhwCymXSee4vWIQ67eUkT4dCsEfOoR3OCuocpkAT02AyO9HoA&h=oqy6DMmrHhsaWgCuh0_a8wBsX39dBixEiaQLxEQiBDQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3S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: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/ff19bd50-e537-4a58-b305-74c8a021ca88","name":"ff19bd50-e537-4a58-b305-74c8a021ca88","status":"Succeeded","startTime":"2024-01-19T03:03:52.4528425Z","endTime":"2024-01-19T03:05:23.0852532Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d","name":"e73c2b66-642f-44dd-927a-12e1f9f4640d","status":"Running","startTime":"2024-04-15T08:24:24.0022222Z"}' headers: cache-control: - no-cache content-length: - - '372' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:26 GMT + - Mon, 15 Apr 2024 08:25:08 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 60DB6916648244B8AFA6EAA6D44DE0BB Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:07Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2683,37 +1931,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMv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GDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZ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HwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:27 GMT + - Mon, 15 Apr 2024 08:25:16 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 87F945EBECC646139FBEC255D6D4234E Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:15Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2731,37 +1979,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJV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-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d?api-version=2024-05-01-preview&t=638487662641264033&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009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Mp6Eo-moBzctaO1bYIpRoYY response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/e73c2b66-642f-44dd-927a-12e1f9f4640d","name":"e73c2b66-642f-44dd-927a-12e1f9f4640d","status":"Succeeded","startTime":"2024-04-15T08:24:24.0022222Z","endTime":"2024-04-15T08:25:15.5841982Z"}' headers: cache-control: - no-cache content-length: - - '329' + - '371' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:38 GMT + - Mon, 15 Apr 2024 08:25:19 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8AA3E37FF05741EC8BF89B89FFF42210 Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:18Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2779,37 +2027,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsL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1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=g10Oa2U89HKCKb0DaSdC6NZ1a9Ascbudd-hRezNca8oGIoTtOYFL_JESy0IIjEKme6sRKqEFnczY2f-GR1X187UKRZoMSBTnZKxKCicg-2KC3qh5ONOQenOtcfzjqP1tCPjR2LGM6DoYOum3gn2amUNK3Xfpp3ZNLLeevKBj8QCv1XMM3iE5u_Aqo3CM7ZqPDBYyzLqtTM0rfMPU93i42XLvVbFU683trKn1XxcRDEku76N01kMQbqh-7PsbqtHrSPYyyRDS_rUBwcoeU1f3C5YWlxHEkCld9lNOsEwsQJKciiHSWm8Oi27hnLgPNoRfcBwKvmuaSFpm50NmMdiI1A&h=a2WnQQexuufDOmakJKv_sAnozdOfyd5yKdvNfL-o9V8 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Running","startTime":"2024-01-19T03:03:54.0035956Z"}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-602db.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-64fc7c6475-d6zbs","status":"Running"},{"name":"server-64fc7c6475-g65sz","status":"Running"},{"name":"server-7dd67cf6b8-fp6f7","status":"Running"},{"name":"server-7dd67cf6b8-tj647","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Disabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:24:23.345076Z"}}' headers: cache-control: - no-cache content-length: - - '329' + - '1068' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:48 GMT + - Mon, 15 Apr 2024 08:25:20 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 10D4925F263546B69912E97F6EE6AC77 Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:19Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2827,37 +2075,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7?api-version=2024-01-01-preview&t=638412302340617536&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjc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000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5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UBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","name":"0d6c1a9d-2372-47ed-8ffa-e569b65b6ba7","status":"Succeeded","startTime":"2024-01-19T03:03:54.0035956Z","endTime":"2024-01-19T03:05:56.650203Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Running","startTime":"2024-04-15T08:24:21.1697389Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '328' content-type: - application/json date: - - Fri, 19 Jan 2024 03:05:59 GMT + - Mon, 15 Apr 2024 08:25:27 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2CF3963454994B8C868C2791090541B4 Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:26Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2875,37 +2123,37 @@ interactions: ParameterSetName: - --yes -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d?api-version=2024-05-01-preview&t=638487662612942459&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG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thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=NjJNUAs0PxH0xiSlgf9S4zmytADRZS9wLPikTegINvizQb8G1p_iPuF2OEV4t9BNQjWwto3xG9_OJkmhMgrqS6EeA6hOruNQCK2Y0lyLXVbLv6iIyBnDP9Z2JGqN8Oh-mOoew4KZFdo3F_IwbehNkcBtr_9IAnXxscfefDf9mHL5rxq0qC7fWeZRDNL9lUgrYNDtD96apwDwm8rNGMZKI2uMndFfnFoW9wJMMM_Yac8X66lUvzCBJD0WW9tS248C1eYssPOHSYn4mIGAu4drQDk97wdxYntIgHWkWIY3bA9uRt-2XNJ4HMvRs5s90OLn1O3VV9l1WmNxy0qm4aQi8g&h=JI-hUlj1WXLCpGKZeWpofHkRdyHTapvkZXu9gBTIX_g response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-77b7775976-5mfr6","status":"Running"},{"name":"server-77b7775976-v6qgj","status":"Running"},{"name":"server-7c88fb797-zw5sv","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Disabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T03:03:53.5304715Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/447999df-fa55-46e7-a3b2-e4ad669d920d","name":"447999df-fa55-46e7-a3b2-e4ad669d920d","status":"Succeeded","startTime":"2024-04-15T08:24:21.1697389Z","endTime":"2024-04-15T08:25:27.9058121Z"}' headers: cache-control: - no-cache content-length: - - '1041' + - '371' content-type: - application/json date: - - Fri, 19 Jan 2024 03:06:00 GMT + - Mon, 15 Apr 2024 08:25:38 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C43401A71EEA4EBEB632294827CAE15D Ref B: MAA201060513037 Ref C: 2024-04-15T08:25:37Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2923,40 +2171,39 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1b82148b47c4407d879cbf4e7d3a3dfa","networkProfile":{"outboundIPs":{"publicIPs":["20.2.51.212","20.2.52.7"]},"ingressConfig":{"readTimeoutInSeconds":200},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{"asc-test":"dogfood","api-target":"arm","test-job-id":"0421300e-d7b4-5c64-f530-fa21e83c0a48","test-pipeline-link":"https://msazure.visualstudio.com/AzureDMSS/_build/results?buildId=85933649","service-create-time":"2024-01-19 - 02:07:56 +0800","service-expire-time":"2024-01-20 13:07:56 +0800"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T18:07:57.3631957Z","lastModifiedBy":"744f634a-c741-43e5-b464-ccc043d13fac","lastModifiedByType":"Application","lastModifiedAt":"2024-01-18T18:07:57.3631957Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"675c7a1fa6c845069f19e6491e3ee84c","networkProfile":{"outboundIPs":{"publicIPs":["4.250.60.193","4.250.61.234"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:17:26.0879001Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:17:26.0879001Z"}}' headers: cache-control: - no-cache content-length: - - '1302' + - '933' content-type: - application/json date: - - Fri, 19 Jan 2024 03:06:04 GMT + - Mon, 15 Apr 2024 08:25:40 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 19BEF36B9B6A48059B525C7103918B76 Ref B: MAA201060516029 Ref C: 2024-04-15T08:25:40Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2974,37 +2221,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"df-ae-enterpri-0119020747-devtoolportal-830a2.svc.asc-test.net","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-77b7775976-5mfr6","status":"Running"},{"name":"server-77b7775976-v6qgj","status":"Running"},{"name":"server-7c88fb797-zw5sv","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Disabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2024-01-18T19:05:51.986158Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-19T03:03:53.5304715Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-602db.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-64fc7c6475-d6zbs","status":"Running"},{"name":"server-64fc7c6475-g65sz","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Disabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:21:28.7974035Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:24:23.345076Z"}}' headers: cache-control: - no-cache content-length: - - '1041' + - '960' content-type: - application/json date: - - Fri, 19 Jan 2024 03:06:06 GMT + - Mon, 15 Apr 2024 08:25:42 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 287D8046B96D494F96295DEF2A71ABDA Ref B: MAA201060516011 Ref C: 2024-04-15T08:25:41Z' x-rp-server-mvid: - - 539f7c20-f4a0-4dc9-b9bc-9f93e1248671 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_application_configuration_service.yaml b/src/spring/azext_spring/tests/latest/recordings/test_application_configuration_service.yaml index 4171acb3a86..825e17b6b4c 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_application_configuration_service.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_application_configuration_service.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -27,21 +27,25 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:31 GMT + - Tue, 16 Apr 2024 09:17:43 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 7C028D5DB23A44F7939ABFBF742904DD Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:42Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -59,39 +63,39 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:31 GMT + - Tue, 16 Apr 2024 09:17:45 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 169DBFFB92E044CB9789ED514C1D1B43 Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:43Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -115,39 +119,43 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:32.6147539Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:46.2268196Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/e27a30c7-ac5e-4274-9cbd-02ae73341dda?api-version=2024-01-01-preview&t=638411633135210096&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioS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SqcOEcFZW17u0MRAqqPnAWn9M9KBvCY67GNBcCvKUBVWc8goKZyCh0xFAqTEwRvhl0god2e3FE0ATme5C0z0cHmVcqnK9V2EniEJOWt7Rk9MfJdY6ZsrGZovPw9MEtkOu9DwQScAV5AXvxqqxDGDY3WXnSgWAnHaBm-AL9aDyr4-u5NFD9J4pmS1RTUpQsgzgPpbpfIKaoQTYFVrtzVy6wvVyu-ptQlNRbO-lKiw&h=MeHYdR3ZTyxxEDrT_FVkLs8eFwNjFMthb9wzNzVwYaQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/bc148cf2-7ec2-46f9-a317-5f3df51cbe61?api-version=2024-05-01-preview&t=638488558672112853&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u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HyO5BWY6pOgNYUy2OhMEd24 cache-control: - no-cache content-length: - - '923' + - '911' content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:33 GMT + - Tue, 16 Apr 2024 09:17:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/e27a30c7-ac5e-4274-9cbd-02ae73341dda/Spring/clitest000003?api-version=2024-01-01-preview&t=638411633135366358&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYT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mZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=o6rB3p63Tpd2bkn3PxHq4UPxT-1O_BmX4FZEXaUV_ROLd0aOtIAf9T0i1yBtNmcsVQSGhxn7smgJ-hDwoXZuWq6XucM4BNy3Ij65lyq0B4kxaK2Ud9-9f0AO0FdBzZACbaE47yvdvVQ5qu8xJRSaCDgEnH5nPe3C5JHV7dkVPqRhdS0mjbWQBgxgEZSpu1U984tHf_cZjnDmmOjMqfbXe29GBIZ4L-qUdtWPUdjywpkyknft7hkIkpEQmVAsWOqCwWJZIgfOQG70rQySyMFSL59XXyjcx6sxsZXyi9irqufdjDErEINb2fhudO3eGnUUdgyeayKE4uMHUtmkW_W2VA&h=Wl-c2bvl7Waza4437bLOXN1qPa3BETfitplZpXyyxo4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bc148cf2-7ec2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UrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Pj1hcgAPOdCh7YxC-Dl0Wjuy1FE9xDW77wGtp3xUOvnR5rvW8v5eXm6OuBMA_lUDi776P0V08XoYa7O2b73ptwnQHh8K4vBYCoyvHJp6uuoKK8UmyrgYopmVt-fqdGlpdL4U4LC4ohPGUoL1I18kOkruGh_G9JDxfBeVTI7YG4k82sKbe4m0j_WcZSDGS2V8oB1mGGAuUBxs-qJ5S0iEP3tUXv9g6ROjS_4T6vTH4U4nOcTP0FOh-VrmQ19HkGuApo32P2ByrimE8FpNeHf_wejRd9j1Oa0Zk1t0Syw_r0SItCQmU2BAWvfetw3ZvmnbSwmTSGojGj-MTSp_tfgYzg&h=Vy9w0Z4tem8vUNpmmgoQeILUChom-eX4SgwlmWFyUq8 pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 063EC15D241E43149D043FF1299C72C8 Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:45Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -165,60 +173,12 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/e27a30c7-ac5e-4274-9cbd-02ae73341dda?api-version=2024-01-01-preview&t=638411633135210096&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwC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0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/bc148cf2-7ec2-46f9-a317-5f3df51cbe61?api-version=2024-05-01-preview&t=638488558672112853&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJ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FjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=OMrVNZEKQBlqJpm0mhm4MHyy6se70xf3V2PdxOuGWvSw1bs9yX4nDIuAbOwtqh07mFyqiQpZPK_944sj-tzxtp0HMDta7GRjMnOP8bRXybA_sp3JeUiZeWZEdO3Hh0ArOSWtanwA_AGf1No6pnoqfTgcXidbWfW6JxnVJDrHB0Xk9tYAb6-_iOQigO0r21_9W7AXRCrJ_pwlzCzFGKxi3oCuwiwAkPgv2EfjQwux4GgBSXq34V9_7iCNh-RSjdGn1st1Oi4bpz6pJeCKyChsMj6IGWcl5UgQxffjLPZ3hiohisJDGUPy11xg0YFi5DODUGVEQsW-HZvuYMXc-hR_mA&h=SZ7lJqvVqkWOx1pB8TC4HyO5BWY6pOgNYUy2OhMEd24 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/e27a30c7-ac5e-4274-9cbd-02ae73341dda","name":"e27a30c7-ac5e-4274-9cbd-02ae73341dda","status":"Running","startTime":"2024-01-18T08:28:33.3901165Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:28:33 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app create - Connection: - - keep-alive - ParameterSetName: - - -g -s -n - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/e27a30c7-ac5e-4274-9cbd-02ae73341dda?api-version=2024-01-01-preview&t=638411633135210096&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO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ScAV5AXvxqqxDGDY3WXnSgWAnHaBm-AL9aDyr4-u5NFD9J4pmS1RTUpQsgzgPpbpfIKaoQTYFVrtzVy6wvVyu-ptQlNRbO-lKiw&h=MeHYdR3ZTyxxEDrT_FVkLs8eFwNjFMthb9wzNzVwYaQ - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/e27a30c7-ac5e-4274-9cbd-02ae73341dda","name":"e27a30c7-ac5e-4274-9cbd-02ae73341dda","status":"Succeeded","startTime":"2024-01-18T08:28:33.3901165Z","endTime":"2024-01-18T08:28:34.6696138Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/bc148cf2-7ec2-46f9-a317-5f3df51cbe61","name":"bc148cf2-7ec2-46f9-a317-5f3df51cbe61","status":"Succeeded","startTime":"2024-04-16T09:17:47.0415015Z","endTime":"2024-04-16T09:17:47.4125527Z"}' headers: cache-control: - no-cache @@ -227,23 +187,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:44 GMT + - Tue, 16 Apr 2024 09:17:47 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7C9F8C3DEA3A4A7388F639F1B8F4317C Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:47Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -261,39 +221,39 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:32.6147539Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:46.2268196Z"}}' headers: cache-control: - no-cache content-length: - - '1018' + - '1015' content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:44 GMT + - Tue, 16 Apr 2024 09:17:48 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 78455FE0D0914DA7B3BB68F0804A609B Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:48Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -318,39 +278,43 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:48.7399173Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:48.7399173Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:52.5868593Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:52.5868593Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1?api-version=2024-01-01-preview&t=638411633323179975&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29m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QMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=oX334Hiz1bA0h_nvYU_Rug-kEs-AEgqmpNDdatXJDbTaigKdveSZO43-HtXdPgkW4sy7z-jqJuDIPNlO7Po5wci2qB_qJCBokiA0U-dtBo1NL5a6U3Hi5PyyA70THODA_5OAJYIsCRShKUwal9MtGlTptKPbnAFcETBmjrDUssJfUYBNUl5XW2CrDWkxM7G6r4AcJ61sNjGurIe73LqoTLzXj71frTND7tpMeasnLg9O-fvD8C_WJ3j_hlFPzJZdv32fCVkcoMdi1jRvXdHluM-DVxIO5gk3f86sPFaV5IJ7jx7no56m8fXlHfs0U2ydVTMzf0TDJnaAzlk_UMCNMA&h=W01B14dbexoHnpg8JiKhKhgpfKhd11oRAGeN7ZNaygo + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded?api-version=2024-05-01-preview&t=638488558738212457&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQ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AYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Ldc7mnNyDBiHdJTZSOnuIP86ZU5MfrZFqBcMSbX9LfX0ljKh3q-EkFMRt09hps6lxdogzrRGWznuRP0PN1v81EemyQvkwLdiCLvo8IzDdrPcjcoCVV44b9FE_AARQc6fZL0SZdbBZAj1_efIYzkE54spkBPWimBPcE--0Ik1SNAo7Hx4HBM2xELj_AiowvC1sHJC8ebYbIZ72B22Io_00wfw3I_2ZFqXYAkZ7zA00SvAcFVJuaKve78v8YmEv1-OPvGjWD9biF31xyNcTC7Zg5Y9b8rVOCJ9ibjZHC91zjtnQojvTjOt_LxUBqmzajhnx_DXl5ZeG_Z_bkyQUj7PWA&h=yupI3VDVmv_oZ97fwi-29ekbZMmv60uXSDotVO-OTq0 cache-control: - no-cache content-length: - - '839' + - '827' content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:51 GMT + - Tue, 16 Apr 2024 09:17:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1/Spring/default?api-version=2024-01-01-preview&t=638411633323179975&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlv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_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=1FxEghEjOk5_hSn6Ekq3SjdB0zQ7CL0Xow8RBau9BFgOTw3W-ZR6KNUcsyfHLDfaF87wHWteXLXiCt4yFeHBzK1pMI9_Yg0dlLGBK51vxZDUljf-wcUN3ienTF-ky-JlY6ZqNmBwt8R-Jnq34GLeW0u8ab4o9IO8jmjvHih11OEhyb4b39u50XzZbGDs2ll-wrCeKQN-SFmciZkO6X2MUTf401KEFmDAwwdLM1ZrbLOCJEgLLqpblh6Bn1mkxzPdzHtjlbuP8tgc5T0BZhy1iJQXuG1tjGcGv5XyQgPHLxktI2NYkKiteEIBxob5L7u0oMOCqgTTeL8PpL91GJ33QQ&h=xR_S6_wTkB3cIUxIMKqV2qktrY7kCTR631BZrgGvP5E + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/562a5cb8-3e03-4157-8ca6-0e96c563dded/Spring/default?api-version=2024-05-01-preview&t=638488558738212457&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZ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BjbRtEXgW8cKIkpfLykKKxg0rGTuRSp3uc97w8WNOLS-j905CW0FCQgn2KysC4nYced0kDLb7w-qH1FbTKVXVFCo87ze9SsPhs2z733VgWPPGhHVF9rxbsT7uSEMkyyOwxE8B2o1oa1ZrNjCSKMohvg&h=Dba_z9kKLTihRr6ZD7EAUgxq8rsaSA7oyTu-kX1a5LM pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: F6D5BD7E3983446FBD8F32376C5C5293 Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:52Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -368,12 +332,12 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1?api-version=2024-01-01-preview&t=638411633323179975&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMD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fAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=oX334Hiz1bA0h_nvYU_Rug-kEs-AEgqmpNDdatXJDbTaigKdveSZO43-HtXdPgkW4sy7z-jqJuDIPNlO7Po5wci2qB_qJCBokiA0U-dtBo1NL5a6U3Hi5PyyA70THODA_5OAJYIsCRShKUwal9MtGlTptKPbnAFcETBmjrDUssJfUYBNUl5XW2CrDWkxM7G6r4AcJ61sNjGurIe73LqoTLzXj71frTND7tpMeasnLg9O-fvD8C_WJ3j_hlFPzJZdv32fCVkcoMdi1jRvXdHluM-DVxIO5gk3f86sPFaV5IJ7jx7no56m8fXlHfs0U2ydVTMzf0TDJnaAzlk_UMCNMA&h=W01B14dbexoHnpg8JiKhKhgpfKhd11oRAGeN7ZNaygo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded?api-version=2024-05-01-preview&t=638488558738212457&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11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BPWimBPcE--0Ik1SNAo7Hx4HBM2xELj_AiowvC1sHJC8ebYbIZ72B22Io_00wfw3I_2ZFqXYAkZ7zA00SvAcFVJuaKve78v8YmEv1-OPvGjWD9biF31xyNcTC7Zg5Y9b8rVOCJ9ibjZHC91zjtnQojvTjOt_LxUBqmzajhnx_DXl5ZeG_Z_bkyQUj7PWA&h=yupI3VDVmv_oZ97fwi-29ekbZMmv60uXSDotVO-OTq0 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","name":"68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","status":"Running","startTime":"2024-01-18T08:28:52.0626507Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded","name":"562a5cb8-3e03-4157-8ca6-0e96c563dded","status":"Running","startTime":"2024-04-16T09:17:53.6006807Z"}' headers: cache-control: - no-cache @@ -382,23 +346,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:28:52 GMT + - Tue, 16 Apr 2024 09:17:54 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: ACE28088E3C6448FAB86A079F9395CC4 Ref B: MAA201060514039 Ref C: 2024-04-16T09:17:53Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -416,12 +380,12 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1?api-version=2024-01-01-preview&t=638411633323179975&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBB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000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded?api-version=2024-05-01-preview&t=638488558738212457&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTU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AQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Ldc7mnNyDBiHdJTZSOnuIP86ZU5MfrZFqBcMSbX9LfX0ljKh3q-EkFMRt09hps6lxdogzrRGWznuRP0PN1v81EemyQvkwLdiCLvo8IzDdrPcjcoCVV44b9FE_AARQc6fZL0SZdbBZAj1_efIYzkE54spkBPWimBPcE--0Ik1SNAo7Hx4HBM2xELj_AiowvC1sHJC8ebYbIZ72B22Io_00wfw3I_2ZFqXYAkZ7zA00SvAcFVJuaKve78v8YmEv1-OPvGjWD9biF31xyNcTC7Zg5Y9b8rVOCJ9ibjZHC91zjtnQojvTjOt_LxUBqmzajhnx_DXl5ZeG_Z_bkyQUj7PWA&h=yupI3VDVmv_oZ97fwi-29ekbZMmv60uXSDotVO-OTq0 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","name":"68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","status":"Running","startTime":"2024-01-18T08:28:52.0626507Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded","name":"562a5cb8-3e03-4157-8ca6-0e96c563dded","status":"Running","startTime":"2024-04-16T09:17:53.6006807Z"}' headers: cache-control: - no-cache @@ -430,23 +394,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:02 GMT + - Tue, 16 Apr 2024 09:18:04 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0F8F51743DAD44A3B05C9DA622AEC4F1 Ref B: MAA201060514039 Ref C: 2024-04-16T09:18:05Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -464,12 +428,12 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1?api-version=2024-01-01-preview&t=638411633323179975&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2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Qb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=oX334Hiz1bA0h_nvYU_Rug-kEs-AEgqmpNDdatXJDbTaigKdveSZO43-HtXdPgkW4sy7z-jqJuDIPNlO7Po5wci2qB_qJCBokiA0U-dtBo1NL5a6U3Hi5PyyA70THODA_5OAJYIsCRShKUwal9MtGlTptKPbnAFcETBmjrDUssJfUYBNUl5XW2CrDWkxM7G6r4AcJ61sNjGurIe73LqoTLzXj71frTND7tpMeasnLg9O-fvD8C_WJ3j_hlFPzJZdv32fCVkcoMdi1jRvXdHluM-DVxIO5gk3f86sPFaV5IJ7jx7no56m8fXlHfs0U2ydVTMzf0TDJnaAzlk_UMCNMA&h=W01B14dbexoHnpg8JiKhKhgpfKhd11oRAGeN7ZNaygo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded?api-version=2024-05-01-preview&t=638488558738212457&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61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WimBPcE--0Ik1SNAo7Hx4HBM2xELj_AiowvC1sHJC8ebYbIZ72B22Io_00wfw3I_2ZFqXYAkZ7zA00SvAcFVJuaKve78v8YmEv1-OPvGjWD9biF31xyNcTC7Zg5Y9b8rVOCJ9ibjZHC91zjtnQojvTjOt_LxUBqmzajhnx_DXl5ZeG_Z_bkyQUj7PWA&h=yupI3VDVmv_oZ97fwi-29ekbZMmv60uXSDotVO-OTq0 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","name":"68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","status":"Running","startTime":"2024-01-18T08:28:52.0626507Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded","name":"562a5cb8-3e03-4157-8ca6-0e96c563dded","status":"Running","startTime":"2024-04-16T09:17:53.6006807Z"}' headers: cache-control: - no-cache @@ -478,23 +442,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:13 GMT + - Tue, 16 Apr 2024 09:18:15 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8FEE8D9BD2834A598B1B95409382F20C Ref B: MAA201060514039 Ref C: 2024-04-16T09:18:15Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -512,12 +476,12 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1?api-version=2024-01-01-preview&t=638411633323179975&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQU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000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded?api-version=2024-05-01-preview&t=638488558738212457&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUu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YIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Ldc7mnNyDBiHdJTZSOnuIP86ZU5MfrZFqBcMSbX9LfX0ljKh3q-EkFMRt09hps6lxdogzrRGWznuRP0PN1v81EemyQvkwLdiCLvo8IzDdrPcjcoCVV44b9FE_AARQc6fZL0SZdbBZAj1_efIYzkE54spkBPWimBPcE--0Ik1SNAo7Hx4HBM2xELj_AiowvC1sHJC8ebYbIZ72B22Io_00wfw3I_2ZFqXYAkZ7zA00SvAcFVJuaKve78v8YmEv1-OPvGjWD9biF31xyNcTC7Zg5Y9b8rVOCJ9ibjZHC91zjtnQojvTjOt_LxUBqmzajhnx_DXl5ZeG_Z_bkyQUj7PWA&h=yupI3VDVmv_oZ97fwi-29ekbZMmv60uXSDotVO-OTq0 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","name":"68e18512-3bb8-4a21-a759-4ff6e1fbc7e1","status":"Succeeded","startTime":"2024-01-18T08:28:52.0626507Z","endTime":"2024-01-18T08:29:16.9244297Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/562a5cb8-3e03-4157-8ca6-0e96c563dded","name":"562a5cb8-3e03-4157-8ca6-0e96c563dded","status":"Succeeded","startTime":"2024-04-16T09:17:53.6006807Z","endTime":"2024-04-16T09:18:19.7327518Z"}' headers: cache-control: - no-cache @@ -526,23 +490,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:23 GMT + - Tue, 16 Apr 2024 09:18:27 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7B7B6DD3334A4F5DA1C0287DB0AF0B3C Ref B: MAA201060514039 Ref C: 2024-04-16T09:18:26Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -560,39 +524,39 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-f75585b5d-kjgnx","status":"Running","discoveryStatus":"N/A","startTime":"2024-01-18T08:28:56Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:48.7399173Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:48.7399173Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-54c64b79b-5hqdw","status":"Running","discoveryStatus":"N/A","startTime":"2024-04-16T09:17:59Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:52.5868593Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:52.5868593Z"}}' headers: cache-control: - no-cache content-length: - - '1337' + - '1325' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:24 GMT + - Tue, 16 Apr 2024 09:18:31 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 7CD931138A67485D9A2432E3D6D5778F Ref B: MAA201060514039 Ref C: 2024-04-16T09:18:28Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -610,39 +574,39 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:32.6147539Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:46.2268196Z"}}' headers: cache-control: - no-cache content-length: - - '1018' + - '1015' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:27 GMT + - Tue, 16 Apr 2024 09:18:34 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 7AA2E90C0EE34B49B6B727F063DD9AC6 Ref B: MAA201060514039 Ref C: 2024-04-16T09:18:34Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -660,39 +624,39 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-f75585b5d-kjgnx","status":"Running","discoveryStatus":"N/A","startTime":"2024-01-18T08:28:56Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:48.7399173Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:48.7399173Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-54c64b79b-5hqdw","status":"Running","discoveryStatus":"N/A","startTime":"2024-04-16T09:17:59Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:52.5868593Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:52.5868593Z"}}]}' headers: cache-control: - no-cache content-length: - - '1349' + - '1337' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:28 GMT + - Tue, 16 Apr 2024 09:18:36 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 92358FE32558483ABC711E679094EED4 Ref B: MAA201060514039 Ref C: 2024-04-16T09:18:35Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -710,39 +674,39 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:29 GMT + - Tue, 16 Apr 2024 09:18:38 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 2C3C9CFECBDF4B22BE9071A6F4953C25 Ref B: MAA201060513053 Ref C: 2024-04-16T09:18:37Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -760,37 +724,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:27:27.5097476Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:16:53.7807925Z"}}' headers: cache-control: - no-cache content-length: - - '816' + - '792' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:31 GMT + - Tue, 16 Apr 2024 09:18:40 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 670183F0F33C4E6FA9BA3FAED74F9FD6 Ref B: MAA201060513051 Ref C: 2024-04-16T09:18:39Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -808,39 +772,39 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:32 GMT + - Tue, 16 Apr 2024 09:18:42 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: E504B4BC01F945538E99646E6AEBFE42 Ref B: MAA201060514035 Ref C: 2024-04-16T09:18:42Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -858,37 +822,37 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:27:27.5097476Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:16:53.7807925Z"}}' headers: cache-control: - no-cache content-length: - - '816' + - '792' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:34 GMT + - Tue, 16 Apr 2024 09:18:44 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C48F78A652374379ABDAA7D1871AC932 Ref B: MAA201060513027 Ref C: 2024-04-16T09:18:43Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -912,37 +876,41 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default/validate?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default/validate?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/74c12c0a-5d6d-4695-8558-af767ca6c243?api-version=2024-01-01-preview&t=638411633756552373&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aW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MzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=ACY_L0U7k_WJA2P9ygFU0leUjHJo5zTZW58lBSxSuqS7LG0THmku-WDi3EIqxywWdF66OTsGUuf0lN_-Nc8tOid386Ow8WV-Y8TxIDUN0_Qb736N44ZLptLwTB85KWpuu6N4Zx7GGDAzGPvsL1s7q1cPVgAEcNfS4z3C3Gh4Caq27Gwvv1eMDeJ7_wQtvEEV6EwIeo3oIEgcjvM6BlFJIgw9e5ng6ywHT45fFPVfawZ3iRzc23tE1bFlMA4WQRSOXzT0sJWS23eH_06I0oJcFLfTEhQPP4tqujNZr_u7mHE-U4d04SnsT12rfpE4iNfP7ExC_Z8FirrEGZJr0dZkbA&h=kARJR8MCgvoyiJtrRWm3bxxGcELxI1ghPixIjyUmk2k + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/433ea40c-b1be-45e4-9be7-18ca31bd87b0?api-version=2024-05-01-preview&t=638488559263293488&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O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HyXFcOeBXA2_7hgO9nIW2sc_KUEouVfizdaqLpiu2AxMJN-KnS1KKUgzKbb-uIAIolCcngHoyyHzuhhhqZbrmCPOCLBz0V46nPVhiy5uHh0JfxpW9fKP93zTT2qWy-JmdY6-tg&h=mdF6nu07NCNhEI2nXYy20J9GERC7kNEnf06G54r74_c cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 08:29:35 GMT + - Tue, 16 Apr 2024 09:18:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/74c12c0a-5d6d-4695-8558-af767ca6c243/Spring/clitest000002?api-version=2024-01-01-preview&t=638411633756552373&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zR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Q&h=YtTfhMPwopFzdFA0OBMhPahYNUxKVFJYkt5emMOHGLI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/433ea40c-b1be-45e4-9be7-18ca31bd87b0/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559263446203&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUF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YBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=fAT2MMr_DmXImu11IycWn6XCoNZVvcESBoBQZ5NMat_YQeQ33ehCZRemQ7ZsY3bsE0HFVK5bOONKbI8pL7Zqq1uRo7tRZoMaGxFB3PZqQbrxxNbfPFhbif4HqM3bXO42lfPcoWO8BPOvVx_MtEeDjKJ560JXLAp2RsLN0prHY40DlNWQ4NCbqcd59L0CoEgr2qpTyPLjVyS8KblE9mVbbVuo_FPHxy4LAsJp2Yn6loCwoy2ATd7VhqvQterJ1W4KCV8OQIzmDVgv4NWIKX3-hf7yPGsD8zbH1y451mAg9-T4uWCUo96qKjsYd8vG5H8I6MhcUtOJvfOCk5tTScihOg&h=KOkV2WhreIc3CoRuDkcepqloZ3NpzuDqEOTsNKapJKE pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 7143A83787474A2D87AE59543F6B725B Ref B: MAA201060513027 Ref C: 2024-04-16T09:18:45Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -960,60 +928,12 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/74c12c0a-5d6d-4695-8558-af767ca6c243?api-version=2024-01-01-preview&t=638411633756552373&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2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kbA&h=kARJR8MCgvoyiJtrRWm3bxxGcELxI1ghPixIjyUmk2k - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/74c12c0a-5d6d-4695-8558-af767ca6c243","name":"74c12c0a-5d6d-4695-8558-af767ca6c243","status":"Running","startTime":"2024-01-18T08:29:35.5261847Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:29:36 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service git repo add - Connection: - - keep-alive - ParameterSetName: - - -g -s -n --label --patterns --uri - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/74c12c0a-5d6d-4695-8558-af767ca6c243?api-version=2024-01-01-preview&t=638411633756552373&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDI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E4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=ACY_L0U7k_WJA2P9ygFU0leUjHJo5zTZW58lBSxSuqS7LG0THmku-WDi3EIqxywWdF66OTsGUuf0lN_-Nc8tOid386Ow8WV-Y8TxIDUN0_Qb736N44ZLptLwTB85KWpuu6N4Zx7GGDAzGPvsL1s7q1cPVgAEcNfS4z3C3Gh4Caq27Gwvv1eMDeJ7_wQtvEEV6EwIeo3oIEgcjvM6BlFJIgw9e5ng6ywHT45fFPVfawZ3iRzc23tE1bFlMA4WQRSOXzT0sJWS23eH_06I0oJcFLfTEhQPP4tqujNZr_u7mHE-U4d04SnsT12rfpE4iNfP7ExC_Z8FirrEGZJr0dZkbA&h=kARJR8MCgvoyiJtrRWm3bxxGcELxI1ghPixIjyUmk2k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/433ea40c-b1be-45e4-9be7-18ca31bd87b0?api-version=2024-05-01-preview&t=638488559263293488&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm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fS4HqlRPAnmMz-FBv5Q9zmltSlf2vRvhyelV2mSOpkXBA6FOBcvIWkY12knmvOcx7GM-EtzILxxNjLyv9rSxbTFIRce-Tov03usKbjUHyXFcOeBXA2_7hgO9nIW2sc_KUEouVfizdaqLpiu2AxMJN-KnS1KKUgzKbb-uIAIolCcngHoyyHzuhhhqZbrmCPOCLBz0V46nPVhiy5uHh0JfxpW9fKP93zTT2qWy-JmdY6-tg&h=mdF6nu07NCNhEI2nXYy20J9GERC7kNEnf06G54r74_c response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/74c12c0a-5d6d-4695-8558-af767ca6c243","name":"74c12c0a-5d6d-4695-8558-af767ca6c243","status":"Succeeded","startTime":"2024-01-18T08:29:35.5261847Z","endTime":"2024-01-18T08:29:36.3289293Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/433ea40c-b1be-45e4-9be7-18ca31bd87b0","name":"433ea40c-b1be-45e4-9be7-18ca31bd87b0","status":"Succeeded","startTime":"2024-04-16T09:18:46.1864523Z","endTime":"2024-04-16T09:18:47.0970624Z"}' headers: cache-control: - no-cache @@ -1022,23 +942,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:46 GMT + - Tue, 16 Apr 2024 09:18:47 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5D7B0AE6F1C54ACDBDBA994778C9CDBE Ref B: MAA201060513027 Ref C: 2024-04-16T09:18:46Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1056,9 +976,9 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/74c12c0a-5d6d-4695-8558-af767ca6c243/Spring/clitest000002?api-version=2024-01-01-preview&t=638411633756552373&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMv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_8CGgxvf8PnrgaILKMO2Z1oYzXaEJizn16MI6O4b6VEYlM2Q&h=YtTfhMPwopFzdFA0OBMhPahYNUxKVFJYkt5emMOHGLI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/433ea40c-b1be-45e4-9be7-18ca31bd87b0/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559263446203&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py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BJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=fAT2MMr_DmXImu11IycWn6XCoNZVvcESBoBQZ5NMat_YQeQ33ehCZRemQ7ZsY3bsE0HFVK5bOONKbI8pL7Zqq1uRo7tRZoMaGxFB3PZqQbrxxNbfPFhbif4HqM3bXO42lfPcoWO8BPOvVx_MtEeDjKJ560JXLAp2RsLN0prHY40DlNWQ4NCbqcd59L0CoEgr2qpTyPLjVyS8KblE9mVbbVuo_FPHxy4LAsJp2Yn6loCwoy2ATd7VhqvQterJ1W4KCV8OQIzmDVgv4NWIKX3-hf7yPGsD8zbH1y451mAg9-T4uWCUo96qKjsYd8vG5H8I6MhcUtOJvfOCk5tTScihOg&h=KOkV2WhreIc3CoRuDkcepqloZ3NpzuDqEOTsNKapJKE response: body: string: '{"gitPropertyValidationResult":{"isValid":true,"gitReposValidationResult":[]}}' @@ -1070,23 +990,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:47 GMT + - Tue, 16 Apr 2024 09:18:47 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D8064362C44142709F65CAD295A9912A Ref B: MAA201060513027 Ref C: 2024-04-16T09:18:47Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1111,39 +1031,43 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:29:47.9522933Z"}}' + string: '{"properties":{"provisioningState":"Updating","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:18:48.2955325Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/dcf55f35-b8fd-4fc7-91c2-51659361fd8d?api-version=2024-01-01-preview&t=638411633884679870&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLm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7UHrhAv7N0cUingZ7xJY8z_M&s=NNqmxmmIIG0LllIaE12t9eA3qBraIC9jPqaRP6UN8HhwJyCjn-UsWQTjvZY9kvBCx6zph1qSAmzP5xVKOyQt2ugYUeP0d5y22rzH1JZ207hGNmOagBk4x2mG6CrcacFOlEZb3yfI3iZ8OQk7dVYB9Q1GFWsZds6w9C0PQOu-BtO7ONXniI0kbt893Xys_djA4F0WqQG8npFmr91__4V-lZLC3Pcd5EEX5aqFov2my4kewPX_CO5NW9sv0mcOC1dRM2RpqM7ctcmiqZVrsKgQlj7hW7WrqCyR0F3EZUfCHwFGCadyJCCpX-GBts_RoEVcWeYbLMLpZH1sMfu5HPjYMA&h=umkBiNP07ZBwq9ywbj7i1yjkQmT0-cspVqcyh654p7U + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/de38b8a0-424f-4ab2-b89c-f8cb17a39987?api-version=2024-05-01-preview&t=638488559294050011&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVz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aV-1JTUmfO0pDnaiSD98jdaenAiN-jYjFBf1FgwOZRcJCTpfpx3IKMALMnQuMhY_m9HSmyUKBBkjeZtd_4-lwOQs-FqT3hrs5EG_6Zg&h=Nqj8ly7EdBhgj3fRANrucCSCj9y3G1pLNgOwCtiVnqM cache-control: - no-cache content-length: - - '1008' + - '998' content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:48 GMT + - Tue, 16 Apr 2024 09:18:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/dcf55f35-b8fd-4fc7-91c2-51659361fd8d/Spring/clitest000002?api-version=2024-01-01-preview&t=638411633884835520&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEM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2HpetXzdkEnqjd5gflx9ib4QQfLN3fwFZI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/de38b8a0-424f-4ab2-b89c-f8cb17a39987/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559294050011&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8v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BgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=CvMhYpRjWud5DLki4ZeRo5sRXNO-phRcIA5Ufrr5ItoYq-oRVcb4O0RaWcTu2i8X0ahktrSvUOXmx-Hr018aZQckeYIkRRfH7KchQzzB9g3jw0ztQSkTCHlm6Zz2tZ8LjcMjrFZqmz2sWBf30bqhcPtjTL4Xs3YgB1u8j6NgGmHxNItphMOjuLbSJG4FGoFEdM4nlCaLKCq4aoSSgSjrz3nHCPT1ts1KPfhSD-V3V8D6gPsnSK8fWpIrrVdYC_peEqFfIsuoO2MUDyZfTTwWfuslaWu-MaYnHz-aSKdN3snwulIAraecODQsr9zV36H5Z2YqTMesk0ngAh6kOfow4A&h=gG2t7b0aqS9EcSLFy38KqkLfHRqnBwUr1CQbt8f9AmQ pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: ACAEA8945A094053952C926AC6E55B3B Ref B: MAA201060513027 Ref C: 2024-04-16T09:18:48Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -1161,12 +1085,12 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/dcf55f35-b8fd-4fc7-91c2-51659361fd8d?api-version=2024-01-01-preview&t=638411633884679870&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz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EZUfCHwFGCadyJCCpX-GBts_RoEVcWeYbLMLpZH1sMfu5HPjYMA&h=umkBiNP07ZBwq9ywbj7i1yjkQmT0-cspVqcyh654p7U + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/de38b8a0-424f-4ab2-b89c-f8cb17a39987?api-version=2024-05-01-preview&t=638488559294050011&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4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MjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=XUfseFYwWi-62Ng3GLp2RkmmwZSdXvyWeLKo1Ikx9gghG3PeyrB86ZdZfOMIOYWMzlLks9F32VFL7MZzZghK5GGJBNcHAUwl1wFjw0RrDVcwlBkNvYRoZ-ANDAiy2BIYeP7yqYnu_lNFyOESN95os6l5154d6ZjdfIGEvBwo0Xu08drXUZ9LckD-HL8x7Vmd0lV4w9NUgYcwBvWysqHXXTbdDDhl8CQlSFTKDPWEW4bj9l0aV-1JTUmfO0pDnaiSD98jdaenAiN-jYjFBf1FgwOZRcJCTpfpx3IKMALMnQuMhY_m9HSmyUKBBkjeZtd_4-lwOQs-FqT3hrs5EG_6Zg&h=Nqj8ly7EdBhgj3fRANrucCSCj9y3G1pLNgOwCtiVnqM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/dcf55f35-b8fd-4fc7-91c2-51659361fd8d","name":"dcf55f35-b8fd-4fc7-91c2-51659361fd8d","status":"Running","startTime":"2024-01-18T08:29:48.3333751Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/de38b8a0-424f-4ab2-b89c-f8cb17a39987","name":"de38b8a0-424f-4ab2-b89c-f8cb17a39987","status":"Running","startTime":"2024-04-16T09:18:49.2333273Z"}' headers: cache-control: - no-cache @@ -1175,23 +1099,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:48 GMT + - Tue, 16 Apr 2024 09:18:50 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A8264B0850D846EC92A6CAA80B98E6B0 Ref B: MAA201060513027 Ref C: 2024-04-16T09:18:49Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1209,12 +1133,12 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/dcf55f35-b8fd-4fc7-91c2-51659361fd8d?api-version=2024-01-01-preview&t=638411633884679870&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4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uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=NNqmxmmIIG0LllIaE12t9eA3qBraIC9jPqaRP6UN8HhwJyCjn-UsWQTjvZY9kvBCx6zph1qSAmzP5xVKOyQt2ugYUeP0d5y22rzH1JZ207hGNmOagBk4x2mG6CrcacFOlEZb3yfI3iZ8OQk7dVYB9Q1GFWsZds6w9C0PQOu-BtO7ONXniI0kbt893Xys_djA4F0WqQG8npFmr91__4V-lZLC3Pcd5EEX5aqFov2my4kewPX_CO5NW9sv0mcOC1dRM2RpqM7ctcmiqZVrsKgQlj7hW7WrqCyR0F3EZUfCHwFGCadyJCCpX-GBts_RoEVcWeYbLMLpZH1sMfu5HPjYMA&h=umkBiNP07ZBwq9ywbj7i1yjkQmT0-cspVqcyh654p7U + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/de38b8a0-424f-4ab2-b89c-f8cb17a39987?api-version=2024-05-01-preview&t=638488559294050011&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdj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ukDY-ed4wPldjzzJFmzk&s=XUfseFYwWi-62Ng3GLp2RkmmwZSdXvyWeLKo1Ikx9gghG3PeyrB86ZdZfOMIOYWMzlLks9F32VFL7MZzZghK5GGJBNcHAUwl1wFjw0RrDVcwlBkNvYRoZ-ANDAiy2BIYeP7yqYnu_lNFyOESN95os6l5154d6ZjdfIGEvBwo0Xu08drXUZ9LckD-HL8x7Vmd0lV4w9NUgYcwBvWysqHXXTbdDDhl8CQlSFTKDPWEW4bj9l0aV-1JTUmfO0pDnaiSD98jdaenAiN-jYjFBf1FgwOZRcJCTpfpx3IKMALMnQuMhY_m9HSmyUKBBkjeZtd_4-lwOQs-FqT3hrs5EG_6Zg&h=Nqj8ly7EdBhgj3fRANrucCSCj9y3G1pLNgOwCtiVnqM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/dcf55f35-b8fd-4fc7-91c2-51659361fd8d","name":"dcf55f35-b8fd-4fc7-91c2-51659361fd8d","status":"Succeeded","startTime":"2024-01-18T08:29:48.3333751Z","endTime":"2024-01-18T08:29:59.1109036Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/de38b8a0-424f-4ab2-b89c-f8cb17a39987","name":"de38b8a0-424f-4ab2-b89c-f8cb17a39987","status":"Succeeded","startTime":"2024-04-16T09:18:49.2333273Z","endTime":"2024-04-16T09:19:00.0660945Z"}' headers: cache-control: - no-cache @@ -1223,23 +1147,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:29:59 GMT + - Tue, 16 Apr 2024 09:19:01 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 19A2DA8B62E24D998DE66CFB9E5F6C4D Ref B: MAA201060513027 Ref C: 2024-04-16T09:19:00Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1257,37 +1181,37 @@ interactions: ParameterSetName: - -g -s -n --label --patterns --uri User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:29:47.9522933Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:18:48.2955325Z"}}' headers: cache-control: - no-cache content-length: - - '1009' + - '999' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:01 GMT + - Tue, 16 Apr 2024 09:19:02 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5D0ABE4F05DC4A96933B2D88E7FBD622 Ref B: MAA201060513027 Ref C: 2024-04-16T09:19:02Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1305,39 +1229,39 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:03 GMT + - Tue, 16 Apr 2024 09:19:04 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 6DFC9DB7D57444A99EB6F186DCF2A47F Ref B: MAA201060514027 Ref C: 2024-04-16T09:19:04Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1355,37 +1279,37 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:29:47.9522933Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:18:48.2955325Z"}}' headers: cache-control: - no-cache content-length: - - '1009' + - '999' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:04 GMT + - Tue, 16 Apr 2024 09:19:06 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 87F39B6A8B194282BCDC995EB5736797 Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:05Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1409,37 +1333,41 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default/validate?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default/validate?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/14fae220-ca68-44e2-9fc3-e82f27d56aee?api-version=2024-01-01-preview&t=638411634063574354&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMw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GrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=yV4aHVfNGSIIhCSZNykWtvMnsXQLDMY0ZDAbG21_nckF-m2Slld0WU-Zb4jEMTBoqCsVwK70pmgzZG_mQ9k9-ZjXc7JBN2jXpq2WCeec_Xi5rFu1IzyaKddQqVQqrURIFFQwJzguX6bqVEO3SkxG7_TqDwrROxj9WQaAdd_2_nf536PkeY_xy3kOdJXxR6-OB9Z8gpFMaJbrMtBx_hMWtzlpWL74eLLzPa2yKjhhQ6zZ0IKHUOukJjLkWzqWJHwJ0g9abmTc3gD4ILVssbHjh3FHXiHA-lhd-X03WyNvy4cRLOgFwuHNqkjsa4EWg6JfrO8ZGuKYqghuLyMveiyFtg&h=t_sH8XJhnAs9OZsVGvwx0BbQuziL_weDUb67EF6Sjls + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/93d72fcf-7153-4726-ae88-454e82b491b7?api-version=2024-05-01-preview&t=638488559475100451&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50Lm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scfChTyeGF6GRTM6URCSH5dDHuvXJR03obmrtjyN18M9Zbg9zmXsQTQhM0ZsYUs3nM2o32hFawjlEQLTzxuCEudmE8DxxEapKRfZTZprtikTtYJYBMhgLuvN-wniMZ9lpFBQ1c8dIP8JYHR7JIayojSkCA9tWlB2r0XYFnaOJEeWiRgw7HK7zl_RsI5pD88S9AP9e0hHIkthsgMqJAcmFvOE-ol9wvnxRnyU7-rQSmdqLxFSLCT0xWOR4KtZOyeMbOSIqMBmFQelojERu2iTP4Vn1gcod8dIBXiAp0wnrt4xP5bRrENeunJl8ZqMqw2jwe6C9JIe1g&h=Z9ZO1YpXlOAI84sZUuUPPB81bW1uV4j5g7DW6c7rCaY cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 08:30:05 GMT + - Tue, 16 Apr 2024 09:19:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/14fae220-ca68-44e2-9fc3-e82f27d56aee/Spring/clitest000002?api-version=2024-01-01-preview&t=638411634063730718&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kI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1i3ixPzJqDApTJ28lR31zJzTRMokvKF8f9V4jxaZpsBrpYia-uDMtv_jUCIOgP706jsj8OA3iyoVzsp9-NFrlvnpKYcFIdAd3ZxHpRq2iODRL3Ij3Rbm0hLwR0UDy7rOcClHtv82lk3YETJo5ejhv1Jzx4dNfBQm7CCKPq0IAF-9TvXQZm25b4ikoa4pBgRw&h=x0y_4ql7jmsgVurnNYh45s1ox_XMEh6tfp39Ie0hCEM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/93d72fcf-7153-4726-ae88-454e82b491b7/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559475257354&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA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-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 737FEEE60DC74DCB84A1871CE46C2C79 Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:06Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -1457,60 +1385,12 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/14fae220-ca68-44e2-9fc3-e82f27d56aee?api-version=2024-01-01-preview&t=638411634063574354&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOT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xj9WQaAdd_2_nf536PkeY_xy3kOdJXxR6-OB9Z8gpFMaJbrMtBx_hMWtzlpWL74eLLzPa2yKjhhQ6zZ0IKHUOukJjLkWzqWJHwJ0g9abmTc3gD4ILVssbHjh3FHXiHA-lhd-X03WyNvy4cRLOgFwuHNqkjsa4EWg6JfrO8ZGuKYqghuLyMveiyFtg&h=t_sH8XJhnAs9OZsVGvwx0BbQuziL_weDUb67EF6Sjls - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/14fae220-ca68-44e2-9fc3-e82f27d56aee","name":"14fae220-ca68-44e2-9fc3-e82f27d56aee","status":"Running","startTime":"2024-01-18T08:30:06.2244921Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:30:05 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service git repo update - Connection: - - keep-alive - ParameterSetName: - - -g -s -n --label - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/14fae220-ca68-44e2-9fc3-e82f27d56aee?api-version=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hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=yV4aHVfNGSIIhCSZNykWtvMnsXQLDMY0ZDAbG21_nckF-m2Slld0WU-Zb4jEMTBoqCsVwK70pmgzZG_mQ9k9-ZjXc7JBN2jXpq2WCeec_Xi5rFu1IzyaKddQqVQqrURIFFQwJzguX6bqVEO3SkxG7_TqDwrROxj9WQaAdd_2_nf536PkeY_xy3kOdJXxR6-OB9Z8gpFMaJbrMtBx_hMWtzlpWL74eLLzPa2yKjhhQ6zZ0IKHUOukJjLkWzqWJHwJ0g9abmTc3gD4ILVssbHjh3FHXiHA-lhd-X03WyNvy4cRLOgFwuHNqkjsa4EWg6JfrO8ZGuKYqghuLyMveiyFtg&h=t_sH8XJhnAs9OZsVGvwx0BbQuziL_weDUb67EF6Sjls + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/93d72fcf-7153-4726-ae88-454e82b491b7?api-version=2024-05-01-preview&t=638488559475100451&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUw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Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=qU8ptiiqplRpscfChTyeGF6GRTM6URCSH5dDHuvXJR03obmrtjyN18M9Zbg9zmXsQTQhM0ZsYUs3nM2o32hFawjlEQLTzxuCEudmE8DxxEapKRfZTZprtikTtYJYBMhgLuvN-wniMZ9lpFBQ1c8dIP8JYHR7JIayojSkCA9tWlB2r0XYFnaOJEeWiRgw7HK7zl_RsI5pD88S9AP9e0hHIkthsgMqJAcmFvOE-ol9wvnxRnyU7-rQSmdqLxFSLCT0xWOR4KtZOyeMbOSIqMBmFQelojERu2iTP4Vn1gcod8dIBXiAp0wnrt4xP5bRrENeunJl8ZqMqw2jwe6C9JIe1g&h=Z9ZO1YpXlOAI84sZUuUPPB81bW1uV4j5g7DW6c7rCaY response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/14fae220-ca68-44e2-9fc3-e82f27d56aee","name":"14fae220-ca68-44e2-9fc3-e82f27d56aee","status":"Succeeded","startTime":"2024-01-18T08:30:06.2244921Z","endTime":"2024-01-18T08:30:07.1034695Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/93d72fcf-7153-4726-ae88-454e82b491b7","name":"93d72fcf-7153-4726-ae88-454e82b491b7","status":"Succeeded","startTime":"2024-04-16T09:19:07.3609853Z","endTime":"2024-04-16T09:19:08.1650864Z"}' headers: cache-control: - no-cache @@ -1519,23 +1399,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:17 GMT + - Tue, 16 Apr 2024 09:19:08 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: BF563465D9E94501A750739998F408AA Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:07Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1553,9 +1433,9 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/14fae220-ca68-44e2-9fc3-e82f27d56aee/Spring/clitest000002?api-version=2024-01-01-preview&t=638411634063730718&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFS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0RVGZo_A9xp2iDHEqNI1i3ixPzJqDApTJ28lR31zJzTRMokvKF8f9V4jxaZpsBrpYia-uDMtv_jUCIOgP706jsj8OA3iyoVzsp9-NFrlvnpKYcFIdAd3ZxHpRq2iODRL3Ij3Rbm0hLwR0UDy7rOcClHtv82lk3YETJo5ejhv1Jzx4dNfBQm7CCKPq0IAF-9TvXQZm25b4ikoa4pBgRw&h=x0y_4ql7jmsgVurnNYh45s1ox_XMEh6tfp39Ie0hCEM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/93d72fcf-7153-4726-ae88-454e82b491b7/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559475257354&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc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ValidationResult":{"isValid":true,"gitReposValidationResult":[]}}' @@ -1567,23 +1447,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:18 GMT + - Tue, 16 Apr 2024 09:19:10 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A8487BA94C144A3DB4A1BC174C6CB2C8 Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:09Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1608,39 +1488,43 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:18.466883Z"}}' + string: '{"properties":{"provisioningState":"Updating","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:10.6493525Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/5f8d0acb-1897-4da5-94b0-508d69e5bf1d?api-version=2024-01-01-preview&t=638411634192326132&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9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qY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=vnOl5X2lvwclg-VkdM7sFfP6_b4VTexa59bbgYENBjbtGbgfuyynF2e5TZ0A00HgxCb_hUCJOwpcmH92K866kv6HqHgc8h4AGK4pcB0ed7pVVew6kU-NyucmqOHDb05CUfqG_XWk0YKuySOpXiaZ7CetuIA9Ow1XIOibyRaDT30Cwk2aRX_XKK5XQKesSLKr16p2Xo9K7KAzGHuK5obA2qPOWSHLjtNECrTb5aTyDRB7U50Lag5ty9n6VYhTtTCJiR6RxercGLFgXjUoGJIX5iAh6HkHd6S5EdFIPiPz8dJuMqfNWNOyIBJvp8Qek7SXCm6Z-mmOuyMw_OJHlcsV9w&h=DOfWIBf6DQ-AGFYMN_iv8TzTJq3UF-BkeoufI7eTxgw + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/76dd0c96-5806-4636-a5b1-5598d7e991cf?api-version=2024-05-01-preview&t=638488559515556522&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFs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7ij4jSXQO3nBh_9_Cu1t-1i3c1qgRVQGTm_aNksC3R0EZsQhUEq51vcPOZ4TF_Z5vyq49nGdtgUj5JnwyvQqbeNyE7P75gJsDdb0W3Gnp26IrTeBHqOU73WO8W-V8Ojnp0UAca8SKDpqiHrJaBqPLgYmNf47Dikzi3c21-RLoCSpSvhp7bBl5DYNKbJvjXhtYXYCnlszgb7ko7sJIjkzPPiCYrmwLaahJZJ4MCLCHPyArnyyJCY05gi7XCJQNSQ&h=fMSW7cRvO64vme2WfdCwZRDXA7Xv5FjComPq-4DQLg4 cache-control: - no-cache content-length: - - '1007' + - '998' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:19 GMT + - Tue, 16 Apr 2024 09:19:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/5f8d0acb-1897-4da5-94b0-508d69e5bf1d/Spring/clitest000002?api-version=2024-01-01-preview&t=638411634192326132&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOe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ZmU5wfyBG47fGBqS5W_vYChBXc8RdUy3LfZN1MrWTmrJXQA01uIHIfMGmkzNBO_vu_laX-MqU9O9259LZDxY_m5w4qmtIjCQxebKvrtkzIZeTg-BcMXbIro732GKvF51-hOsh1BVCPWODq9JDw&h=jFSD4BBbgnKybzjxLnJryudkc-qVJRO1m9YQb2ulq5s + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/76dd0c96-5806-4636-a5b1-5598d7e991cf/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559515556522&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYI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uZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=iIiF8s1B_to-IpxZSTq4LlrsxG62wBkUT4psSYFBy-8kZFVXbejuwgc_j1LGMOgfKsmif2K4bR7rD26meCWf1M-RVMOqorwYPGzzDLyAyqahjZP3WPkVihot02MCjFZUpvGqbmuikmKw31c9E9ZT4UJ7MvZZYEyb5xvqzdB7tOFah9cTAqfbWL-_BR9vwm9NZn92oA7a_oNA-nC89NBDFl8IBnuYocscl8lpBtZQa6x36Ftzuji2pp5GkmM_r61tpHeEIT0eLy99Bw770ckDhhyrP0dVGVK9l2QQvaCKdBXjpo7fc_v17yr6vIlxP_CkjyythiRPXNBrkKeHOiD6-Q&h=v0J-CdnlGmU3f1RrCjm_y2b9nB8R1pdAJXhhpwns144 pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 62C7D74444834C1989A4F988DCB2643E Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:10Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -1658,12 +1542,12 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/5f8d0acb-1897-4da5-94b0-508d69e5bf1d?api-version=2024-01-01-preview&t=638411634192326132&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-J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IOibyRaDT30Cwk2aRX_XKK5XQKesSLKr16p2Xo9K7KAzGHuK5obA2qPOWSHLjtNECrTb5aTyDRB7U50Lag5ty9n6VYhTtTCJiR6RxercGLFgXjUoGJIX5iAh6HkHd6S5EdFIPiPz8dJuMqfNWNOyIBJvp8Qek7SXCm6Z-mmOuyMw_OJHlcsV9w&h=DOfWIBf6DQ-AGFYMN_iv8TzTJq3UF-BkeoufI7eTxgw + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/76dd0c96-5806-4636-a5b1-5598d7e991cf?api-version=2024-05-01-preview&t=638488559515556522&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0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4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/5f8d0acb-1897-4da5-94b0-508d69e5bf1d","name":"5f8d0acb-1897-4da5-94b0-508d69e5bf1d","status":"Running","startTime":"2024-01-18T08:30:19.0947163Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/76dd0c96-5806-4636-a5b1-5598d7e991cf","name":"76dd0c96-5806-4636-a5b1-5598d7e991cf","status":"Running","startTime":"2024-04-16T09:19:11.3711408Z"}' headers: cache-control: - no-cache @@ -1672,23 +1556,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:19 GMT + - Tue, 16 Apr 2024 09:19:12 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2F388A9E02FF45119AA9D414CE60AB05 Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:11Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1706,37 +1590,37 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/5f8d0acb-1897-4da5-94b0-508d69e5bf1d?api-version=2024-01-01-preview&t=638411634192326132&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElu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gNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=vnOl5X2lvwclg-VkdM7sFfP6_b4VTexa59bbgYENBjbtGbgfuyynF2e5TZ0A00HgxCb_hUCJOwpcmH92K866kv6HqHgc8h4AGK4pcB0ed7pVVew6kU-NyucmqOHDb05CUfqG_XWk0YKuySOpXiaZ7CetuIA9Ow1XIOibyRaDT30Cwk2aRX_XKK5XQKesSLKr16p2Xo9K7KAzGHuK5obA2qPOWSHLjtNECrTb5aTyDRB7U50Lag5ty9n6VYhTtTCJiR6RxercGLFgXjUoGJIX5iAh6HkHd6S5EdFIPiPz8dJuMqfNWNOyIBJvp8Qek7SXCm6Z-mmOuyMw_OJHlcsV9w&h=DOfWIBf6DQ-AGFYMN_iv8TzTJq3UF-BkeoufI7eTxgw + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/76dd0c96-5806-4636-a5b1-5598d7e991cf?api-version=2024-05-01-preview&t=638488559515556522&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRg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os3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=pVuQo7M3da_1H915LpQVJcuMlcwJwRK-ed07Qfy3LvR5o5iaQKFTrwq6dhNjrm0tUMdve7p653smv4-dsGUraxB7ij4jSXQO3nBh_9_Cu1t-1i3c1qgRVQGTm_aNksC3R0EZsQhUEq51vcPOZ4TF_Z5vyq49nGdtgUj5JnwyvQqbeNyE7P75gJsDdb0W3Gnp26IrTeBHqOU73WO8W-V8Ojnp0UAca8SKDpqiHrJaBqPLgYmNf47Dikzi3c21-RLoCSpSvhp7bBl5DYNKbJvjXhtYXYCnlszgb7ko7sJIjkzPPiCYrmwLaahJZJ4MCLCHPyArnyyJCY05gi7XCJQNSQ&h=fMSW7cRvO64vme2WfdCwZRDXA7Xv5FjComPq-4DQLg4 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/5f8d0acb-1897-4da5-94b0-508d69e5bf1d","name":"5f8d0acb-1897-4da5-94b0-508d69e5bf1d","status":"Succeeded","startTime":"2024-01-18T08:30:19.0947163Z","endTime":"2024-01-18T08:30:29.885426Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/76dd0c96-5806-4636-a5b1-5598d7e991cf","name":"76dd0c96-5806-4636-a5b1-5598d7e991cf","status":"Succeeded","startTime":"2024-04-16T09:19:11.3711408Z","endTime":"2024-04-16T09:19:22.4566985Z"}' headers: cache-control: - no-cache content-length: - - '369' + - '370' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:29 GMT + - Tue, 16 Apr 2024 09:19:23 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6ABFE6AAE5934C298E3B04BA61CA0D24 Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:22Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1754,37 +1638,37 @@ interactions: ParameterSetName: - -g -s -n --label User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:18.466883Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:10.6493525Z"}}' headers: cache-control: - no-cache content-length: - - '1008' + - '999' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:30 GMT + - Tue, 16 Apr 2024 09:19:25 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0F22DEAA8AD447909A2FDF36CF53882E Ref B: MAA201060514045 Ref C: 2024-04-16T09:19:24Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1802,39 +1686,39 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:33 GMT + - Tue, 16 Apr 2024 09:19:27 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 2570D1F65C454C44971B8ECAFFB69CCD Ref B: MAA201060513023 Ref C: 2024-04-16T09:19:26Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1852,37 +1736,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:18.466883Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:10.6493525Z"}}' headers: cache-control: - no-cache content-length: - - '1008' + - '999' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:34 GMT + - Tue, 16 Apr 2024 09:19:28 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2330A10210AB4DA6ABDA95C486F3FA9D Ref B: MAA201060516033 Ref C: 2024-04-16T09:19:28Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1900,39 +1784,39 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:37 GMT + - Tue, 16 Apr 2024 09:19:31 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 5FE97EE5330C42E7B08C2571F6F3C936 Ref B: MAA201060516027 Ref C: 2024-04-16T09:19:30Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1950,37 +1834,37 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:18.466883Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[{"name":"repo1","patterns":["api-gateway","customers-service"],"label":"main","uri":"https://github.com/spring-petclinic/spring-petclinic-microservices-config"}]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:10.6493525Z"}}' headers: cache-control: - no-cache content-length: - - '1008' + - '999' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:37 GMT + - Tue, 16 Apr 2024 09:19:33 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F1B21AD611044AB49DDEC259B01E1FBE Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:32Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2002,37 +1886,41 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default/validate?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default/validate?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/8c3ac552-445c-4f1a-a256-7f7a394a9f79?api-version=2024-01-01-preview&t=638411634389514641&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225Kn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ex0gyytVFPqFq_7_bnkPAZoADw6rp77jVi8x-WdTugIaqGSe1Psc7yD-YvivwZkNlBxNtZRaNQss0w&h=QPcn7KL8b6blDYgKEl8FSHMu4MRd14j6NhglXLnYt7o + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/35bbd7ad-921d-4e9f-8d0b-9d218fceae19?api-version=2024-05-01-preview&t=638488559754528973&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHi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C5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=OqssL8BB6iuY3JQt2O6uiNOHfHoX076bLFCBoMuAuXVJ0-rBaQXj4hlCEX8fob4uhmGgJ6R6DOltJA3yNgvnwXO45taCEQ2H18DgukGh2_hQ50q3vaAnhQqE3jYagFLBgeDKU34dXXfPK_7gE4UNlTg5XGQ9N0eDDTJcfRgxOP_1sawtgr1z0uG4xOrY_4OhNr1l7oThFZk6FfZIIPRH3ElOO5_8fgo-lcDagLZZ3E7PNnk20ydX2shaYiH9zXX7GveWKvLAK8GXmjoLmY-u0afoCy_lUneNydlJlDhZcEqLZ4RRdRcDtPpjYngCboEqbPNGnUwxSRJyjb0Zwel3xw&h=GFhhXiVFIKRCsccbbPF4CWTPYbPtxakOf7hb2ESUIeY cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 08:30:38 GMT + - Tue, 16 Apr 2024 09:19:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8c3ac552-445c-4f1a-a256-7f7a394a9f79/Spring/clitest000002?api-version=2024-01-01-preview&t=638411634389670851&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZ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NVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=veMC7t24qmgDJZs-Ebd5gHLQ-St8wc44EPwxazhhgKZlT6MZjWW388SwIyObJM8LIITDMV7KjU_DypKHtkdRCVYRjyqslU6yENouyGKJUJ1DPmqsZAx7Q15lVhg7xZrvy-CdzDjEbR7_xGG60ooc4xMwyRGMcxxAeteMpej1ZtX3b8RFqyQGc5idFaRCgzsPKlKvZ2_mKWh6Nz4TXJw2TCOnIetMduAiuMHfU6FeC27x0zAvzWoaVMOtBI8RPobUDhKCf1ChLa94LAFSF6F4xceuSYXrJYo4uIYlyhYfJ-x_-c2A4IjeIOmDoxhdxZdIuBW6YMZ9SLQPvZ-BW0V6wg&h=Xgxb_Z7aOnq8l-Vg0KYuzKP_YemExA5tb24rYW7uJcY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/35bbd7ad-921d-4e9f-8d0b-9d218fceae19/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559754685413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMR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Wos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mPb1l6T7730Bsbss9qjjy88_9jl5No96e5ddnd_Ll9rRi4-VLojCYB2TnPGqCm7zzkiJMNtLpFlGDkHequ4VW1VKUAHP_oOWDMt4o2WGqbu2giVY1Lnhh1eFnFrBJk_oRw1fXpnCiS_jXWxdJX5HVO5567BkopAxGhbFWCN2nRITqyl0L6pkW-ET5o5lJZJk_5MOB5m67-U55YYwKawqnR3vwaDoo1Oqt3ooqIuXIzyuoSIpZsX2qHNpuMLZUzkPEmPAr4kBxjSKNiNfvExGJzpc2ueg5lLnTsIDZXv3iqQ8RqPK9hBst-wL3c6Xr6aXN-TJQMoOIxsVtH4YYPXE6g&h=6eBhIcxOqxHSoKdg9U6Fny3sxz_bKaPxEtcIeHu1SRw pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 8509B8B3FB0A429DBB633230FE5A34BE Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:34Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -2050,12 +1938,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/8c3ac552-445c-4f1a-a256-7f7a394a9f79?api-version=2024-01-01-preview&t=638411634389514641&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5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4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=0ycUhVgY0i1SW9NPaEjeS-QikJSB3y1GHzWrF2pzpsAi166cNAyp_IkhswjQo4j5AZiuil1Peon6RIXeBCPdfI2q7Ph-_kptyutAxBSWsVQJRY3pv_QiJQk0dV574aAsU4kybHw2Kk0EktvB26LZ00kzngPyu7XRgAWjfnXjWWQ5sDzr0ZPUFhyDAxysVSjPndooQarfi6dpYaT5QGqUxhe1cbkfHKEYzRn5_uFHPR7LZq-RAZ3GuvoyewmgPSJxm-mTmg11ex0gyytVFPqFq_7_bnkPAZoADw6rp77jVi8x-WdTugIaqGSe1Psc7yD-YvivwZkNlBxNtZRaNQss0w&h=QPcn7KL8b6blDYgKEl8FSHMu4MRd14j6NhglXLnYt7o + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/35bbd7ad-921d-4e9f-8d0b-9d218fceae19?api-version=2024-05-01-preview&t=638488559754528973&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFAD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2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=OqssL8BB6iuY3JQt2O6uiNOHfHoX076bLFCBoMuAuXVJ0-rBaQXj4hlCEX8fob4uhmGgJ6R6DOltJA3yNgvnwXO45taCEQ2H18DgukGh2_hQ50q3vaAnhQqE3jYagFLBgeDKU34dXXfPK_7gE4UNlTg5XGQ9N0eDDTJcfRgxOP_1sawtgr1z0uG4xOrY_4OhNr1l7oThFZk6FfZIIPRH3ElOO5_8fgo-lcDagLZZ3E7PNnk20ydX2shaYiH9zXX7GveWKvLAK8GXmjoLmY-u0afoCy_lUneNydlJlDhZcEqLZ4RRdRcDtPpjYngCboEqbPNGnUwxSRJyjb0Zwel3xw&h=GFhhXiVFIKRCsccbbPF4CWTPYbPtxakOf7hb2ESUIeY response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/8c3ac552-445c-4f1a-a256-7f7a394a9f79","name":"8c3ac552-445c-4f1a-a256-7f7a394a9f79","status":"Succeeded","startTime":"2024-01-18T08:30:38.8177707Z","endTime":"2024-01-18T08:30:39.0228321Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/35bbd7ad-921d-4e9f-8d0b-9d218fceae19","name":"35bbd7ad-921d-4e9f-8d0b-9d218fceae19","status":"Succeeded","startTime":"2024-04-16T09:19:35.3098356Z","endTime":"2024-04-16T09:19:35.6873394Z"}' headers: cache-control: - no-cache @@ -2064,23 +1952,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:38 GMT + - Tue, 16 Apr 2024 09:19:35 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B6EAA9B913D94F23BF0511D8EEC2CE72 Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:35Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2098,9 +1986,9 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/8c3ac552-445c-4f1a-a256-7f7a394a9f79/Spring/clitest000002?api-version=2024-01-01-preview&t=638411634389670851&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCC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v7N0cUingZ7xJY8z_M&s=veMC7t24qmgDJZs-Ebd5gHLQ-St8wc44EPwxazhhgKZlT6MZjWW388SwIyObJM8LIITDMV7KjU_DypKHtkdRCVYRjyqslU6yENouyGKJUJ1DPmqsZAx7Q15lVhg7xZrvy-CdzDjEbR7_xGG60ooc4xMwyRGMcxxAeteMpej1ZtX3b8RFqyQGc5idFaRCgzsPKlKvZ2_mKWh6Nz4TXJw2TCOnIetMduAiuMHfU6FeC27x0zAvzWoaVMOtBI8RPobUDhKCf1ChLa94LAFSF6F4xceuSYXrJYo4uIYlyhYfJ-x_-c2A4IjeIOmDoxhdxZdIuBW6YMZ9SLQPvZ-BW0V6wg&h=Xgxb_Z7aOnq8l-Vg0KYuzKP_YemExA5tb24rYW7uJcY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/35bbd7ad-921d-4e9f-8d0b-9d218fceae19/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559754685413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSX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pZsX2qHNpuMLZUzkPEmPAr4kBxjSKNiNfvExGJzpc2ueg5lLnTsIDZXv3iqQ8RqPK9hBst-wL3c6Xr6aXN-TJQMoOIxsVtH4YYPXE6g&h=6eBhIcxOqxHSoKdg9U6Fny3sxz_bKaPxEtcIeHu1SRw response: body: string: '{"gitPropertyValidationResult":{"isValid":true,"gitReposValidationResult":[]}}' @@ -2112,23 +2000,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:38 GMT + - Tue, 16 Apr 2024 09:19:36 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 23C63255581B47029D42FF1A0DC6B5E3 Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:36Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2151,39 +2039,43 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:40.1233268Z"}}' + string: '{"properties":{"provisioningState":"Updating","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:37.9531171Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe?api-version=2024-01-01-preview&t=638411634409045757&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQY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9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=IpDNjFTmvPcMY_QTVgcfYLJPB-3Guf8CLVm-Jik5w1V5BE9TZcuj7-cJYr4QPWYERCyUp_T4dU_aN5bCfggs6irlWtc2Ln8hvMFjeBe06Ub7jHFlQaI0ukEPld56vaLPKlN3S4nU58lP8o1KMmBWCEiIfaNqGZy0LZMW-fJj-6qyO_BCyI5pNTZsXWJ1zDOrAD40Mbf_KDeyB145DdSNj6cP-f0mw3dxCgXOaP8nP0lXvOfx8OsfELddNj3w18BE2TqiXY7MxGZeoqrCI1TGwNmVSVw0ykHq51D7VF89FQnHd1Z9p2MeopqsSFD4nUNElseEfVplte8TLC_C9sAdsQ&h=h_LBVJ9__VOWoOgJLCl54lxUh0PCMtZVZg6pGq7Joko + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb?api-version=2024-05-01-preview&t=638488559790781220&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhv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Oi0OsmNffcbR97ykKitrYNkeDb6VNxKRJDuFSRtOuQnISYuJDPBux89Pv3oqooDL5J9ekSpxvnSvMnY8nEGt_cXd-hrUIq9HyyiZlCKl2AiwM8_PQtT1asSTO_0aTe3GaWkUDeQ14_eLz35Zf3CdGhCD94-Y-XOJH5oX4ggenBOsNbx7A0e1Z_izpHGAzQaFqKrIWNKwpG0lR8HF87ixb5AJPDqZbHOLlXYSou4-M4s_EY26j3CudEaiOyxZxfyZf2IZL5FD-11RRM2il5BtN6gOoEQBwvVbZjBV3wv1--m9w&h=Z0lxVFZrBQ8UJcBAPzWifJdTqGUdGcxD9_6B3WV9TRs cache-control: - no-cache content-length: - - '848' + - '838' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:40 GMT + - Tue, 16 Apr 2024 09:19:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe/Spring/clitest000002?api-version=2024-01-01-preview&t=638411634409202376&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7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3A3aRvxhW1XV0w4uORVW6Q6dfLM-iYUBuKCITMPNbjRQmHFx-_OD8_vt56fa7IpeT8pTLfEQnltqOB3ngG9xHcV7jx5b-kFYiaoH8EV8xwCXtPrJjbD4H9XOUX6M886x4KFrAnT5rUmAswBltcJjHSA4b5cyDi_zjr9LKeQNirbarmpeZYOFx_K5UgiI5m6rd6KIffrQ&h=h7YQaEY4KRbVDujS-KC-x6d0Zd-zLiCthHRjXXzP0o8 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb/Spring/clitest000002?api-version=2024-05-01-preview&t=638488559790781220&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCc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- appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: A63576BA38434F9C965B89789525DA6E Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:37Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -2201,12 +2093,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe?api-version=2024-01-01-preview&t=638411634409045757&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBO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Cfggs6irlWtc2Ln8hvMFjeBe06Ub7jHFlQaI0ukEPld56vaLPKlN3S4nU58lP8o1KMmBWCEiIfaNqGZy0LZMW-fJj-6qyO_BCyI5pNTZsXWJ1zDOrAD40Mbf_KDeyB145DdSNj6cP-f0mw3dxCgXOaP8nP0lXvOfx8OsfELddNj3w18BE2TqiXY7MxGZeoqrCI1TGwNmVSVw0ykHq51D7VF89FQnHd1Z9p2MeopqsSFD4nUNElseEfVplte8TLC_C9sAdsQ&h=h_LBVJ9__VOWoOgJLCl54lxUh0PCMtZVZg6pGq7Joko + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb?api-version=2024-05-01-preview&t=638488559790781220&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJ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w&h=Z0lxVFZrBQ8UJcBAPzWifJdTqGUdGcxD9_6B3WV9TRs response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe","name":"4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe","status":"Running","startTime":"2024-01-18T08:30:40.7582931Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb","name":"a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb","status":"Running","startTime":"2024-04-16T09:19:38.8976256Z"}' headers: cache-control: - no-cache @@ -2215,23 +2107,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:40 GMT + - Tue, 16 Apr 2024 09:19:39 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 4F75CDEC90EF43A8A2DDD96B05CBB3AA Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:39Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2249,12 +2141,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe?api-version=2024-01-01-preview&t=638411634409045757&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGA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SUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=IpDNjFTmvPcMY_QTVgcfYLJPB-3Guf8CLVm-Jik5w1V5BE9TZcuj7-cJYr4QPWYERCyUp_T4dU_aN5bCfggs6irlWtc2Ln8hvMFjeBe06Ub7jHFlQaI0ukEPld56vaLPKlN3S4nU58lP8o1KMmBWCEiIfaNqGZy0LZMW-fJj-6qyO_BCyI5pNTZsXWJ1zDOrAD40Mbf_KDeyB145DdSNj6cP-f0mw3dxCgXOaP8nP0lXvOfx8OsfELddNj3w18BE2TqiXY7MxGZeoqrCI1TGwNmVSVw0ykHq51D7VF89FQnHd1Z9p2MeopqsSFD4nUNElseEfVplte8TLC_C9sAdsQ&h=h_LBVJ9__VOWoOgJLCl54lxUh0PCMtZVZg6pGq7Joko + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb?api-version=2024-05-01-preview&t=638488559790781220&c=MIIHADCCBeigA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5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=D4H5eyf6aNl4y40fCp-HXum1W5B9V6yF2pXJGctDPOi0OsmNffcbR97ykKitrYNkeDb6VNxKRJDuFSRtOuQnISYuJDPBux89Pv3oqooDL5J9ekSpxvnSvMnY8nEGt_cXd-hrUIq9HyyiZlCKl2AiwM8_PQtT1asSTO_0aTe3GaWkUDeQ14_eLz35Zf3CdGhCD94-Y-XOJH5oX4ggenBOsNbx7A0e1Z_izpHGAzQaFqKrIWNKwpG0lR8HF87ixb5AJPDqZbHOLlXYSou4-M4s_EY26j3CudEaiOyxZxfyZf2IZL5FD-11RRM2il5BtN6gOoEQBwvVbZjBV3wv1--m9w&h=Z0lxVFZrBQ8UJcBAPzWifJdTqGUdGcxD9_6B3WV9TRs response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe","name":"4dc7ab0a-0d2a-4f72-953c-e17c5bfb4ebe","status":"Succeeded","startTime":"2024-01-18T08:30:40.7582931Z","endTime":"2024-01-18T08:30:51.2019223Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb","name":"a382c7bb-3dfa-4bdc-9ba2-d15f6fb983eb","status":"Succeeded","startTime":"2024-04-16T09:19:38.8976256Z","endTime":"2024-04-16T09:19:49.4947855Z"}' headers: cache-control: - no-cache @@ -2263,23 +2155,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:52 GMT + - Tue, 16 Apr 2024 09:19:50 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B93E9CC2D229432FBFA2D8BD7A9A3E21 Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:50Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2297,37 +2189,37 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:40.1233268Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:37.9531171Z"}}' headers: cache-control: - no-cache content-length: - - '849' + - '839' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:52 GMT + - Tue, 16 Apr 2024 09:19:51 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D97D864BEC4D4D54A6BADD2A741EC294 Ref B: MAA201060516045 Ref C: 2024-04-16T09:19:51Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2345,39 +2237,39 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:54 GMT + - Tue, 16 Apr 2024 09:19:54 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 18FFDD6D795D4E77B0F236A5F52499E9 Ref B: MAA201060515051 Ref C: 2024-04-16T09:19:53Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2395,37 +2287,37 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:40.1233268Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:37.9531171Z"}}' headers: cache-control: - no-cache content-length: - - '849' + - '839' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:56 GMT + - Tue, 16 Apr 2024 09:19:55 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9A8997202A614CF9956DB146EA6C5576 Ref B: MAA201060516033 Ref C: 2024-04-16T09:19:55Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2443,39 +2335,39 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:58 GMT + - Tue, 16 Apr 2024 09:19:58 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 4A63ED2A1B0F4EB5994323102CC35169 Ref B: MAA201060515009 Ref C: 2024-04-16T09:19:57Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2493,39 +2385,39 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:32.6147539Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:46.2268196Z"}}' headers: cache-control: - no-cache content-length: - - '1018' + - '1015' content-type: - application/json date: - - Thu, 18 Jan 2024 08:30:59 GMT + - Tue, 16 Apr 2024 09:20:00 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: A4026E17353D4D18B6DF9DFA6929D1A1 Ref B: MAA201060516027 Ref C: 2024-04-16T09:19:59Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2553,39 +2445,43 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:00.6266603Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:00.5889302Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7?api-version=2024-01-01-preview&t=638411634612672447&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS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IKgNEplxY6Qa-wG6UL7x86Kg7CF3-kPta_I3QXZWuLm4IVLr88Q5Hl29g6WKvV0SW6iF5R3YuyTLGHobs6tt21uHAIxMmygVfaC4y9cc6SPKlDHN7xMyYDv5APzWSU0HFHqebczaPcivm6FxCljzJc2z0_fOesjjS4tzWCinbgVdBHOddwNAlCtodGHHlm8r6sJSHrxz15k7K8SBeTtDKglEUBtPVuPVTVyrlDyBYFVPj3d5B2CuKwn813bb_M4ouw55m220fM8tAZFfB_K78c4kaElQ&h=YTcheNcAHoh13iOJivGHa-RMTgBkxE1zK44gxPwaAoM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/38c60d51-b43a-4d0b-99e2-46447c843d9b?api-version=2024-05-01-preview&t=638488560015420661&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2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_7e37awsHA&h=_yfwZsiWh8LK3RhkZuJk4_9MFQo0ZCThK-GBpTKKAcw cache-control: - no-cache content-length: - - '1198' + - '1195' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:00 GMT + - Tue, 16 Apr 2024 09:20:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/d4001aa6-d667-437b-8e9c-dbc73f7812e7/Spring/clitest000003?api-version=2024-01-01-preview&t=638411634612672447&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBA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Y3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=MdG8cG7moSgQ_QQm-v_8KNsMS2quw6Clm6dd1thiiLG8mn_yTRIYeTvPW6D918MWugYz7JUID3AJUGyp_ceX5mzzFAJDHEaKd0ctQKIMdNjLjZZsm_QKwp0AuPj8howBxTGq7KlauLhrnNmooQpAtz71Tnnk-aLQDBcIBypzxgu4vuCYn-_aLypMiUN2zoK2nl4oCbKSab2SK-WxtW8ubsIiGHRjp7s2FXBPxKwyBCx5EypHNlgHL0-yalA3OEeix7YC3GZlkUKtd0O4qdHEc_sY-aUAgcMXH8ij0Y-QNrpBzHJ3OZtgGi1SDVwy5zIlj65AYNERNseyggqsQm7ibg&h=BdGyaDl8ldkYfokv2RRRV7yola5XnYuf06nXlgPsJRE + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/38c60d51-b43a-4d0b-99e2-46447c843d9b/Spring/clitest000003?api-version=2024-05-01-preview&t=638488560015576903&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ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NAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=LQk_aebhc5IDxzbGQhIRC1nV-nfHzcpJCYu4RupqOYSokOw2hK9xVGLKKhUlvljskyWXicF9_gJM_IOeQ-yCY4-EpeqRGzYfX_Olz3cPS28Xl-a5j5uaEWDF3IztNhNqrbQgnJyGjO_IEOpi6K1XqybWZURWQcddkRih_EKNdwFrXpl2TR7VgqXepxgfL4ehWvtvOBsoEuDnPJFampLmxDkeDLlgMPfx6WlnCQjxZ1KCuy5vVuOany42Tyn13glJ1lIfpmrsd1d16eOrLRqTIuchDqSmZkwlXIlOknN4z-p1BUQIF8g67ODacnQ-74mhtobHoSGB7oRp6Fey2kbDjQ&h=MQ3UHfq02UyWQtKcNssBGVYVEZgSy3q6qtycKZIEE34 pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 965FCF2C6F724E9FA58DD176A80E8CA8 Ref B: MAA201060516027 Ref C: 2024-04-16T09:20:00Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -2603,85 +2499,37 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7?api-version=2024-01-01-preview&t=638411634612672447&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUH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5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=w5wsRqX5xSv0CrXvyuOfPwtuhR5SlEGTtJ6ATiLCQ-aSnSfehF0t-X7CQ0IKgNEplxY6Qa-wG6UL7x86Kg7CF3-kPta_I3QXZWuLm4IVLr88Q5Hl29g6WKvV0SW6iF5R3YuyTLGHobs6tt21uHAIxMmygVfaC4y9cc6SPKlDHN7xMyYDv5APzWSU0HFHqebczaPcivm6FxCljzJc2z0_fOesjjS4tzWCinbgVdBHOddwNAlCtodGHHlm8r6sJSHrxz15k7K8SBeTtDKglEUBtPVuPVTVyrlDyBYFVPj3d5B2CuKwn813bb_M4ouw55m220fM8tAZFfB_K78c4kaElQ&h=YTcheNcAHoh13iOJivGHa-RMTgBkxE1zK44gxPwaAoM - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7","name":"d4001aa6-d667-437b-8e9c-dbc73f7812e7","status":"Running","startTime":"2024-01-18T08:31:01.060326Z"}' - headers: - cache-control: - - no-cache - content-length: - - '326' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:31:01 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service bind - Connection: - - keep-alive - ParameterSetName: - - --app -g -s - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7?api-version=2024-01-01-preview&t=638411634612672447&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50Lm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jyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=w5wsRqX5xSv0CrXvyuOfPwtuhR5SlEGTtJ6ATiLCQ-aSnSfehF0t-X7CQ0IKgNEplxY6Qa-wG6UL7x86Kg7CF3-kPta_I3QXZWuLm4IVLr88Q5Hl29g6WKvV0SW6iF5R3YuyTLGHobs6tt21uHAIxMmygVfaC4y9cc6SPKlDHN7xMyYDv5APzWSU0HFHqebczaPcivm6FxCljzJc2z0_fOesjjS4tzWCinbgVdBHOddwNAlCtodGHHlm8r6sJSHrxz15k7K8SBeTtDKglEUBtPVuPVTVyrlDyBYFVPj3d5B2CuKwn813bb_M4ouw55m220fM8tAZFfB_K78c4kaElQ&h=YTcheNcAHoh13iOJivGHa-RMTgBkxE1zK44gxPwaAoM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/38c60d51-b43a-4d0b-99e2-46447c843d9b?api-version=2024-05-01-preview&t=638488560015420661&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE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Cfd9Hrgjy3VWSWFn-Uh9lhNts2my7OmrBY3j9FUhx5KMY3Z9E13bFeqV2-vIhJXHQCxeDrNUdzQYQei7QG0PvediboqU2m4DGkh_7e37awsHA&h=_yfwZsiWh8LK3RhkZuJk4_9MFQo0ZCThK-GBpTKKAcw response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7","name":"d4001aa6-d667-437b-8e9c-dbc73f7812e7","status":"Running","startTime":"2024-01-18T08:31:01.060326Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/38c60d51-b43a-4d0b-99e2-46447c843d9b","name":"38c60d51-b43a-4d0b-99e2-46447c843d9b","status":"Running","startTime":"2024-04-16T09:20:01.3719336Z"}' headers: cache-control: - no-cache content-length: - - '326' + - '327' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:11 GMT + - Tue, 16 Apr 2024 09:20:02 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 802ABC78C45641E4BC35598CD5E7FF5E Ref B: MAA201060516027 Ref C: 2024-04-16T09:20:01Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2699,37 +2547,37 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7?api-version=2024-01-01-preview&t=638411634612672447&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys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BJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=w5wsRqX5xSv0CrXvyuOfPwtuhR5SlEGTtJ6ATiLCQ-aSnSfehF0t-X7CQ0IKgNEplxY6Qa-wG6UL7x86Kg7CF3-kPta_I3QXZWuLm4IVLr88Q5Hl29g6WKvV0SW6iF5R3YuyTLGHobs6tt21uHAIxMmygVfaC4y9cc6SPKlDHN7xMyYDv5APzWSU0HFHqebczaPcivm6FxCljzJc2z0_fOesjjS4tzWCinbgVdBHOddwNAlCtodGHHlm8r6sJSHrxz15k7K8SBeTtDKglEUBtPVuPVTVyrlDyBYFVPj3d5B2CuKwn813bb_M4ouw55m220fM8tAZFfB_K78c4kaElQ&h=YTcheNcAHoh13iOJivGHa-RMTgBkxE1zK44gxPwaAoM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/38c60d51-b43a-4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cEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BHu8VSQzIe1FZFQ0YzM3meOH-ubFieOQOkg6MGJUOr1UncE6wnHNCbmFMMKW68Lkv9DlBNKLwIPDdfMj5P6d1WITo2f4ywbDTgXQJ4C7i6_MkwEyAKugiZQlapqjsiipwe7AMJedzLuWC_RxSSeHgfvCvfN4rBRixIvaYzsdgwNP4zqiWfjUwv_OwNq5o98MphIAYL7CxCXYZnfW23Lkq3t71uZdSrL8YA2EtqDV8Cfd9Hrgjy3VWSWFn-Uh9lhNts2my7OmrBY3j9FUhx5KMY3Z9E13bFeqV2-vIhJXHQCxeDrNUdzQYQei7QG0PvediboqU2m4DGkh_7e37awsHA&h=_yfwZsiWh8LK3RhkZuJk4_9MFQo0ZCThK-GBpTKKAcw response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d4001aa6-d667-437b-8e9c-dbc73f7812e7","name":"d4001aa6-d667-437b-8e9c-dbc73f7812e7","status":"Succeeded","startTime":"2024-01-18T08:31:01.060326Z","endTime":"2024-01-18T08:31:13.9063539Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/38c60d51-b43a-4d0b-99e2-46447c843d9b","name":"38c60d51-b43a-4d0b-99e2-46447c843d9b","status":"Succeeded","startTime":"2024-04-16T09:20:01.3719336Z","endTime":"2024-04-16T09:20:07.1674791Z"}' headers: cache-control: - no-cache content-length: - - '369' + - '370' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:21 GMT + - Tue, 16 Apr 2024 09:20:13 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A96625DC6E5D4B31B4D9360361FDD3A0 Ref B: MAA201060516027 Ref C: 2024-04-16T09:20:12Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2747,39 +2595,39 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:00.6266603Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:00.5889302Z"}}' headers: cache-control: - no-cache content-length: - - '1199' + - '1196' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:22 GMT + - Tue, 16 Apr 2024 09:20:14 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: AFF5413271374A41AB6BCB3A06F59D10 Ref B: MAA201060516027 Ref C: 2024-04-16T09:20:13Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2797,39 +2645,39 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:00.6266603Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:00.5889302Z"}}' headers: cache-control: - no-cache content-length: - - '1199' + - '1196' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:25 GMT + - Tue, 16 Apr 2024 09:20:17 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 9491DE9E7BD7481CA82B813D9ACDD58C Ref B: MAA201060515047 Ref C: 2024-04-16T09:20:16Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2847,39 +2695,39 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-f75585b5d-kjgnx","status":"Running","discoveryStatus":"N/A","startTime":"2024-01-18T08:28:56Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:48.7399173Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:28:48.7399173Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-54c64b79b-5hqdw","status":"Running","discoveryStatus":"N/A","startTime":"2024-04-16T09:17:59Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:52.5868593Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:17:52.5868593Z"}}]}' headers: cache-control: - no-cache content-length: - - '1349' + - '1337' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:25 GMT + - Tue, 16 Apr 2024 09:20:23 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: C77107F9CC034C888EA4DCBC3C59ADF5 Ref B: MAA201060515047 Ref C: 2024-04-16T09:20:17Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2891,45 +2739,45 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service unbind + - spring application-configuration-service clear Connection: - keep-alive ParameterSetName: - - --app -g -s + - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:28 GMT + - Tue, 16 Apr 2024 09:20:24 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 3265DE1232CF46A2A64A8594BFD7F4A1 Ref B: MAA201060514017 Ref C: 2024-04-16T09:20:24Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2941,107 +2789,104 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service unbind + - spring application-configuration-service clear Connection: - keep-alive ParameterSetName: - - --app -g -s + - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:00.6266603Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:19:37.9531171Z"}}' headers: cache-control: - no-cache content-length: - - '1199' + - '839' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:30 GMT + - Tue, 16 Apr 2024 09:20:26 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + x-msedge-ref: + - 'Ref A: 2B10FF02D8A043668B7E7DC17567E376 Ref B: MAA201060514047 Ref C: 2024-04-16T09:20:25Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: '{"properties": {"public": false, "addonConfigs": {"applicationConfigurationService": - {"resourceId": ""}, "serviceRegistry": {}}, "httpsOnly": false, "temporaryDisk": - {"sizeInGB": 5, "mountPath": "/tmp"}, "persistentDisk": {"sizeInGB": 0, "mountPath": - "/persistent"}, "enableEndToEndTLS": false, "ingressSettings": {"readTimeoutInSeconds": - 300, "sendTimeoutInSeconds": 60, "sessionAffinity": "None", "sessionCookieMaxAge": - 0, "backendProtocol": "Default"}}, "location": "eastus"}' + body: '{"properties": {"generation": "Gen1", "settings": {}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service unbind + - spring application-configuration-service clear Connection: - keep-alive Content-Length: - - '478' + - '54' Content-Type: - application/json ParameterSetName: - - --app -g -s + - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:31.3330654Z"}}' + string: '{"properties":{"provisioningState":"Updating","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:27.2358529Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationSt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DAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Rw3ZXHkbVlgvsHQgl5DLOY1xRha28h5zyRKWMDiKneD_rKNLbgirz9GAektPPNjO_ItOrAk5XwIYwt81Oj4Q62JwFgWstrmHsraIuoMRBMBJQ7y9otvGIBXH9AI8QC4akyc93wxCGhR1W6zqzBS47SQGMOFy3mAx7qmxbR2Bl-I4Bt-OPcrdNI2HumvYNoMnj17-fHir0bU1YcPifYY8bZcopX-YJ97zaqfwWpjcnTknSgjj5o72vlaGktfxoqPOLEYFROiTtz5lViKNkG1d6m3TcPkLz0Aj1piewBkzknVACCgm8CPEdLRIcPyOiXn2JwMB7vFbdbaixEL40QBDaw&h=oRYdH6s93SkqQnDt3xObn9xbsPlLTxJRgrKnwU9VGqE + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/841ca7c6-9bb8-4526-8302-19b8d1b1c67e?api-version=2024-05-01-preview&t=638488560281577424&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwH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7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=A5qi0aKzIoB-0tnMREskIvpoUjt72cxjFZlIy3hQTcTch3o77Y7vQAcIp5qalPckZNgPmwLUHSeRtOBiCN954gdznDGxbRxHwm0hQUGjAb_5rq2MAa-GKjLYFpb2Ya0cjh0nRGLwhYs_kWCPTeaIZKYYXAmbDHKUVABJTTDPf4LjR34QHpZ_0ngt4BRm7YS4XBr2EEXZihwBbqI9NVv4S6u2m3n9EtUSqvWLkfHRnwtJC4Q8w8aDBdd_q4wivJZEyp95-L5Lu6nmnAsAXdALIlJfmGS3EopBER40TBouOIQCNbvA5M8MfM7SU_8RcmiEJ1UPgXwQ1VoxXpWW6SLtnQ&h=ydlFqaEDIcT_QbK__MnwAdSs3Wb_fflyb1HDlOUZK-c cache-control: - no-cache content-length: - - '1017' + - '805' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:31 GMT + - Tue, 16 Apr 2024 09:20:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a/Spring/clitest000003?api-version=2024-01-01-preview&t=638411634920674482&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIh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QM0nLKUq2X6_U8Oql7H7GkUMTPKZTLEiz9dKRs-ExiRIfKryKDVPD2lcGQLHx1crVxN03McXvQkhau3NshrvQeMdjUA4gCJNRp9e__8ZvOMXVdDV358kOSnsDyrBdRmRcegpWepKNyXmFJDav7iPET-JExYjfkVXZFboHXVLcBug5MlwlUV_p8QTxyP5dGOkOBizu5c-apI8uVP9-_PhHpRzDZmW_5kYMC5tQhzCr9rJoaomYuf7JlU2ArrslC3PKgTviGEnv4_kwd_0zU9j0Y5agYbZUEBE91hVGIUX09InzsylNmhEW3dqCCipY_Lw8EBaCrsLExyDuTA&h=PWR4lUEGj0tDfK_zUaivXhBM7M5Q0s55tF-hAzZvQ3U + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/841ca7c6-9bb8-4526-8302-19b8d1b1c67e/Spring/clitest000002?api-version=2024-05-01-preview&t=638488560281733343&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuv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fmY-iivqaYYoIDAuAYOEefUniSo19EJk92e9MkWdVIFWoVjW4Kfz-q3l6aHfkEPFnJK3OA&h=UzdPnVbut1QzW2Snr5xei75poteO4Yh3cT29rnJW52M pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: + x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 2A451F9FD0A94DBF98FB660A2AB7A430 Ref B: MAA201060514047 Ref C: 2024-04-16T09:20:26Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 202 - message: Accepted + code: 201 + message: Created - request: body: null headers: @@ -3050,18 +2895,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service unbind + - spring application-configuration-service clear Connection: - keep-alive ParameterSetName: - - --app -g -s + - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a?api-version=2024-01-01-preview&t=638411634920518619&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU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K4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Rw3ZXHkbVlgvsHQgl5DLOY1xRha28h5zyRKWMDiKneD_rKNLbgirz9GAektPPNjO_ItOrAk5XwIYwt81Oj4Q62JwFgWstrmHsraIuoMRBMBJQ7y9otvGIBXH9AI8QC4akyc93wxCGhR1W6zqzBS47SQGMOFy3mAx7qmxbR2Bl-I4Bt-OPcrdNI2HumvYNoMnj17-fHir0bU1YcPifYY8bZcopX-YJ97zaqfwWpjcnTknSgjj5o72vlaGktfxoqPOLEYFROiTtz5lViKNkG1d6m3TcPkLz0Aj1piewBkzknVACCgm8CPEdLRIcPyOiXn2JwMB7vFbdbaixEL40QBDaw&h=oRYdH6s93SkqQnDt3xObn9xbsPlLTxJRgrKnwU9VGqE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/841ca7c6-9bb8-4526-8302-19b8d1b1c67e?api-version=2024-05-01-preview&t=638488560281577424&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0K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Aa-GKjLYFpb2Ya0cjh0nRGLwhYs_kWCPTeaIZKYYXAmbDHKUVABJTTDPf4LjR34QHpZ_0ngt4BRm7YS4XBr2EEXZihwBbqI9NVv4S6u2m3n9EtUSqvWLkfHRnwtJC4Q8w8aDBdd_q4wivJZEyp95-L5Lu6nmnAsAXdALIlJfmGS3EopBER40TBouOIQCNbvA5M8MfM7SU_8RcmiEJ1UPgXwQ1VoxXpWW6SLtnQ&h=ydlFqaEDIcT_QbK__MnwAdSs3Wb_fflyb1HDlOUZK-c response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a","name":"1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a","status":"Running","startTime":"2024-01-18T08:31:31.8528386Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/841ca7c6-9bb8-4526-8302-19b8d1b1c67e","name":"841ca7c6-9bb8-4526-8302-19b8d1b1c67e","status":"Running","startTime":"2024-04-16T09:20:27.9876595Z"}' headers: cache-control: - no-cache @@ -3070,23 +2915,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:32 GMT + - Tue, 16 Apr 2024 09:20:29 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0311218817074EE5B1A9F0EE64906684 Ref B: MAA201060514047 Ref C: 2024-04-16T09:20:28Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3098,18 +2943,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service unbind + - spring application-configuration-service clear Connection: - keep-alive ParameterSetName: - - --app -g -s + - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a?api-version=2024-01-01-preview&t=638411634920518619&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6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0Aj1piewBkzknVACCgm8CPEdLRIcPyOiXn2JwMB7vFbdbaixEL40QBDaw&h=oRYdH6s93SkqQnDt3xObn9xbsPlLTxJRgrKnwU9VGqE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/841ca7c6-9bb8-4526-8302-19b8d1b1c67e?api-version=2024-05-01-preview&t=638488560281577424&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoF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9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=A5qi0aKzIoB-0tnMREskIvpoUjt72cxjFZlIy3hQTcTch3o77Y7vQAcIp5qalPckZNgPmwLUHSeRtOBiCN954gdznDGxbRxHwm0hQUGjAb_5rq2MAa-GKjLYFpb2Ya0cjh0nRGLwhYs_kWCPTeaIZKYYXAmbDHKUVABJTTDPf4LjR34QHpZ_0ngt4BRm7YS4XBr2EEXZihwBbqI9NVv4S6u2m3n9EtUSqvWLkfHRnwtJC4Q8w8aDBdd_q4wivJZEyp95-L5Lu6nmnAsAXdALIlJfmGS3EopBER40TBouOIQCNbvA5M8MfM7SU_8RcmiEJ1UPgXwQ1VoxXpWW6SLtnQ&h=ydlFqaEDIcT_QbK__MnwAdSs3Wb_fflyb1HDlOUZK-c response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a","name":"1cd6c30d-aac8-4f1d-a21c-31ae9e7ebf3a","status":"Succeeded","startTime":"2024-01-18T08:31:31.8528386Z","endTime":"2024-01-18T08:31:38.5270383Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/841ca7c6-9bb8-4526-8302-19b8d1b1c67e","name":"841ca7c6-9bb8-4526-8302-19b8d1b1c67e","status":"Succeeded","startTime":"2024-04-16T09:20:27.9876595Z","endTime":"2024-04-16T09:20:38.3206211Z"}' headers: cache-control: - no-cache @@ -3118,23 +2963,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:42 GMT + - Tue, 16 Apr 2024 09:20:40 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: AA2E179199114EB68EF141275AB83FB7 Ref B: MAA201060514047 Ref C: 2024-04-16T09:20:39Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3146,45 +2991,43 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service unbind + - spring application-configuration-service clear Connection: - keep-alive ParameterSetName: - - --app -g -s + - -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.asc-test.net","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:28:32.6147539Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:31.3330654Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:27.2358529Z"}}' headers: cache-control: - no-cache content-length: - - '1018' + - '806' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:43 GMT + - Tue, 16 Apr 2024 09:20:41 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + x-msedge-ref: + - 'Ref A: 035F0ED5EA1A4999AB9399D0BD002703 Ref B: MAA201060514047 Ref C: 2024-04-16T09:20:40Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3196,45 +3039,45 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear + - spring application-configuration-service update Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:45 GMT + - Tue, 16 Apr 2024 09:20:43 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 3F68C3C8EFE34724A0BE4ACE9F862797 Ref B: MAA201060516031 Ref C: 2024-04-16T09:20:43Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3246,97 +3089,102 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear + - spring application-configuration-service update Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"gitProperty":{"repositories":[]}},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:30:40.1233268Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:27.2358529Z"}}' headers: cache-control: - no-cache content-length: - - '849' + - '806' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:46 GMT + - Tue, 16 Apr 2024 09:20:45 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6739082E45884D30A00BCB9BB74EA2C9 Ref B: MAA201060513033 Ref C: 2024-04-16T09:20:44Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: '{"properties": {"generation": "Gen1", "settings": {}}}' + body: '{"properties": {"generation": "Gen2", "settings": {"refreshIntervalInSeconds": + 10}}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear + - spring application-configuration-service update Connection: - keep-alive Content-Length: - - '54' + - '84' Content-Type: - application/json ParameterSetName: - - -g -s + - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:47.9350391Z"}}' + string: '{"properties":{"provisioningState":"Updating","settings":{"refreshIntervalInSeconds":10},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-pbk5q","status":"Running"},{"name":"application-configuration-service-7c6755755b-st5cg","status":"Running"},{"name":"fluxcd-source-controller-879897c8-hgg9d","status":"Running"}],"generation":"Gen2"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:46.1082324Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0?api-version=2024-01-01-preview&t=638411635084975165&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZ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Ndv_7vKEszZhsNjg&h=Pg-Kn8jPCnfZ8IoJHXOmXnvMywCbK8dWS7nEQ1Yu-Ls + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQ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BcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=oc830eVEHXIugjm6zp051Ad-_gVfminV7cy1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM cache-control: - no-cache content-length: - - '815' + - '904' content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:47 GMT + - Tue, 16 Apr 2024 09:20:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/a05d74f4-6e8c-4d5b-bdfd-c7030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IhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=Z4J01OHRe53HZwjbneETbapEyin-Qh9JYn9FQkWR4bz_xAkpncw4zDk9bNcOjwRBv-XtBbPGTNqfUHPqTx3uGbI7IZq7Y2WfbXy7xWeVqqlN-lOw4lfxSXaf8y3g6P4p8xSlTdfPJWmttopr_ZL2RfPDszecOX4ebCHQpPulZUHySxrbiqiVqkJ1PsBHJXizFpGk7GjKQoW-7NK4oU-kuADA7NG3hIo_DoRXIRu3PXEtTpChNb0Bd8PIfWltu8xBGrjBzpgOHMZ9gm77c2kiKYnBFDf0PkYPpG-t3-fpWB1WVilrChMFU5JEBMa6HX9tpWJJ7Eew4pC0Ukfil7_2-A&h=Fu8a-sFHh_3G4FqTGO6jZb28PldYFvZ8SEg2ra0i598 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/f0976a75-7819-4538-9cd4-e1101a43f2ae/Spring/clitest000002?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMj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RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=GDBHylHv1QHSXCTHVswnWtJVvQ8NM-rYPQlImdVZeXw9rfcC57d9B_uoakszyMuj20LBklVbq9Mu0O6JZVMyKkmpsECG-KK60yg0HxNV9PU6UvgaKSGytZKUJU13siWbD7NyoTFpYRZLBT2zNN7X_01QqFUGWz_hffmcGb3Lc15E_Kx_lMZc9yU8w6k0J4J-3NUVS0Lz9lSa0qnH3uqWMEmJNw4H31Hrrnx8_syn984pkb4ZUhvZLrKExhOFKiVmedWRjl2E0eq43lu50agbJduwsjxKTHr_ju-l4zLDNTFJkZvFrGJzNXkGX551Y64vZak_z9QcuxAwq_w2o36WYg&h=hVsScAUgnXJxkRLYzBr0yBKLKHHks6qUy5mN5tw2WyQ pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 1D532E77AC8F47C5A801C313E888E291 Ref B: MAA201060513033 Ref C: 2024-04-16T09:20:45Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -3348,18 +3196,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear + - spring application-configuration-service update Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0?api-version=2024-01-01-preview&t=638411635084975165&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsL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MBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=vbyKUoVl3QgwimymgKYgqSWvceNDfXG3ayIZowUSIDh9LoQvdHnW5t4JApCWh0Kd7wEel94Z2fmcvfnbcDHxAYvxvTXuJcLKRVIRmFMx4ddHuRzkysYpbr_zxBBLtUTSjAJH1t6msYH-R2oXKG4uy9Aj555QnZhjUmO0NqLYV_7Ryz477-Ul4rf3I0RKrO-ydTbUHSLEK8obj5YdmUSzzWOmaaebqlOL_o061WHTq4FNn3i0sI41Bcba2neUoxWFEUgeze6CBx0XQkyIIyTWlk0jtU23BNV8unnyXGMuVo2RvNmv1KCNO4yyiwitzW_Iqi-JghNdv_7vKEszZhsNjg&h=Pg-Kn8jPCnfZ8IoJHXOmXnvMywCbK8dWS7nEQ1Yu-Ls + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA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DTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=oc830eVEHXIugjm6zp051Ad-_gVfminV7cy1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0","name":"a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0","status":"Running","startTime":"2024-01-18T08:31:48.3469662Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3368,23 +3216,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:47 GMT + - Tue, 16 Apr 2024 09:20:47 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B97545CDA91D4799964B9EE1259BC542 Ref B: MAA201060513033 Ref C: 2024-04-16T09:20:47Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3396,18 +3244,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear + - spring application-configuration-service update Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0?api-version=2024-01-01-preview&t=638411635084975165&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0Z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N6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=vbyKUoVl3QgwimymgKYgqSWvceNDfXG3ayIZowUSIDh9LoQvdHnW5t4JApCWh0Kd7wEel94Z2fmcvfnbcDHxAYvxvTXuJcLKRVIRmFMx4ddHuRzkysYpbr_zxBBLtUTSjAJH1t6msYH-R2oXKG4uy9Aj555QnZhjUmO0NqLYV_7Ryz477-Ul4rf3I0RKrO-ydTbUHSLEK8obj5YdmUSzzWOmaaebqlOL_o061WHTq4FNn3i0sI41Bcba2neUoxWFEUgeze6CBx0XQkyIIyTWlk0jtU23BNV8unnyXGMuVo2RvNmv1KCNO4yyiwitzW_Iqi-JghNdv_7vKEszZhsNjg&h=Pg-Kn8jPCnfZ8IoJHXOmXnvMywCbK8dWS7nEQ1Yu-Ls + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4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UeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0","name":"a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0","status":"Running","startTime":"2024-01-18T08:31:48.3469662Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3416,23 +3264,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:31:59 GMT + - Tue, 16 Apr 2024 09:20:58 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: EB7B0BDD59174C41A364F5A255404835 Ref B: MAA201060513033 Ref C: 2024-04-16T09:20:57Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3444,43 +3292,43 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear + - spring application-configuration-service update Connection: - keep-alive ParameterSetName: - - -g -s + - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0?api-version=2024-01-01-preview&t=638411635084975165&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsG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yu-Ls + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vc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Ky19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=oc830eVEHXIugjm6zp051Ad-_gVfminV7cy1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0","name":"a05d74f4-6e8c-4d5b-bdfd-c7030f4836a0","status":"Succeeded","startTime":"2024-01-18T08:31:48.3469662Z","endTime":"2024-01-18T08:32:00.8821701Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache content-length: - - '370' + - '327' content-type: - application/json date: - - Thu, 18 Jan 2024 08:32:09 GMT + - Tue, 16 Apr 2024 09:21:10 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2B98C80785E64229928D0F4B13E8A5AE Ref B: MAA201060513033 Ref C: 2024-04-16T09:21:09Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3492,219 +3340,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service clear - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:47.9350391Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '816' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:32:10 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update - Connection: - - keep-alive - ParameterSetName: - - -g -s --generation --refresh-interval - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '935' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:32:12 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update + - spring application-configuration-service update Connection: - keep-alive ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhk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a6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=oc830eVEHXIugjm6zp051Ad-_gVfminV7cy1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:31:47.9350391Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '816' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:32:12 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"generation": "Gen2", "settings": {"refreshIntervalInSeconds": - 10}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update - Connection: - - keep-alive - Content-Length: - - '84' - Content-Type: - - application/json - ParameterSetName: - - -g -s --generation --refresh-interval - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Updating","settings":{"refreshIntervalInSeconds":10},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-9xcx4","status":"Running"},{"name":"application-configuration-service-c569f4d5b-w5mc2","status":"Running"}],"generation":"Gen2"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:32:13.8403844Z"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIw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jAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk - cache-control: - - no-cache - content-length: - - '844' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:32:13 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/573b1bbb-4c06-4916-b1c7-5f7f013c1d52/Spring/clitest000002?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsF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VxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=c0nHGtlkgr4b2bWvaKMMA7ufxJ3Szw-7Ww9-CtTut2wFM6bRHoV26Mkd9p2LhvzgKVvf-Y67yBeltxHLTKyvj8n1OS2BVISPPFtamUGQaghheXFWCzUko212tBMYtvJ2x-aiFDWjTgyLoVXVZQdFvXTZBCVoDp7s5UM0K0RlfS5YURN1W3_tRdD1GM94DV-1l4maa1zH-dGisfgmQd3f5h8jeXMPc0Fp-23pvS9HgPIF9VqntDlBbkp_Jl65nZL_Oga7P4noUQQ0hVK_qrXw4l0Jhb3_OuwcjdOAtTIisTP__KbZL7I8pd-Br_72pL7pn9KcP486yN3-s3IgiPYw2w&h=FLW8xModLvxyo7j-powS8MOwHhto1mlWntaS2fF-zLY - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update - Connection: - - keep-alive - ParameterSetName: - - -g -s --generation --refresh-interval - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0J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l3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3713,23 +3360,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:32:14 GMT + - Tue, 16 Apr 2024 09:21:21 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F73309F854A54A519E7C629B6478C459 Ref B: MAA201060513033 Ref C: 2024-04-16T09:21:20Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3747,12 +3394,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW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-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMF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BEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3761,23 +3408,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:32:25 GMT + - Tue, 16 Apr 2024 09:21:32 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7B90FF0C0AC54A9181305CBE4A0ECE63 Ref B: MAA201060513033 Ref C: 2024-04-16T09:21:31Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3795,12 +3442,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2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MufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChld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CN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=oc830eVEHXIugjm6zp051Ad-_gVfminV7cy1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3809,23 +3456,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:32:36 GMT + - Tue, 16 Apr 2024 09:21:43 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D040E8CF883E49699B975194B6B3B8F5 Ref B: MAA201060513033 Ref C: 2024-04-16T09:21:43Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3843,12 +3490,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyL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oN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCgg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u8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3857,23 +3504,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:32:46 GMT + - Tue, 16 Apr 2024 09:21:54 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2F1B485B2C08403AB92144AA016897CF Ref B: MAA201060513033 Ref C: 2024-04-16T09:21:54Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3891,12 +3538,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8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VFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBA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MBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=oc830eVEHXIugjm6zp051Ad-_gVfminV7cy1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Running","startTime":"2024-04-16T09:20:46.6256687Z"}' headers: cache-control: - no-cache @@ -3905,23 +3552,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:32:56 GMT + - Tue, 16 Apr 2024 09:22:05 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D6ECCEF8C035416E89C8C05BA33B81B6 Ref B: MAA201060513033 Ref C: 2024-04-16T09:22:05Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3939,37 +3586,37 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZ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ZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae?api-version=2024-05-01-preview&t=638488560468269925&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIw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y1ci-AFkPnfC_KsWn205ptH6CPhS0JkBu8OtZcq___5TSRW5Lxgqb3Bn5pepwds09XRYBEQftl6plK0g7qx187pqudh8RanFcmexbs8MthemNRwwh6x-qwvvnutE1Par5oGsVblhjAnSG7mE2Y3HKq8hGXWXiC8DoAAxhGdlDhfhiMRiwIw5Wu5RUeucqwnRMqiHcIM5-TRvw9BdaXXqBEzWypWZ3RDj9FYmM-snmVvRs_TPDHX-PTiBGzQ6bAgYiks8W4rwagSCLmsTIDA1ToQEYaXFd6-oko5GZwI4jkABknl97FfQ&h=ROBEjdAYYcAY-jr1HUBNwsNMyTjsE-7PctTvUFhzOYM response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f0976a75-7819-4538-9cd4-e1101a43f2ae","name":"f0976a75-7819-4538-9cd4-e1101a43f2ae","status":"Succeeded","startTime":"2024-04-16T09:20:46.6256687Z","endTime":"2024-04-16T09:22:13.3591676Z"}' headers: cache-control: - no-cache content-length: - - '327' + - '370' content-type: - application/json date: - - Thu, 18 Jan 2024 08:33:07 GMT + - Tue, 16 Apr 2024 09:22:17 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: BD708ECE2BBB4A47B9479F938669A990 Ref B: MAA201060513033 Ref C: 2024-04-16T09:22:16Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -3987,37 +3634,37 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225Kn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LhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"refreshIntervalInSeconds":10},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c8cff7857-66bcz","status":"Running"},{"name":"application-configuration-service-7c8cff7857-ddkkm","status":"Running"},{"name":"fluxcd-source-controller-879897c8-hgg9d","status":"Running"}],"generation":"Gen2"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:16:53.7807925Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:46.1082324Z"}}' headers: cache-control: - no-cache content-length: - - '327' + - '905' content-type: - application/json date: - - Thu, 18 Jan 2024 08:33:18 GMT + - Tue, 16 Apr 2024 09:22:18 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 51A9B4ED449340D3A7764FBB01DFD575 Ref B: MAA201060513033 Ref C: 2024-04-16T09:22:17Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4025,95 +3672,49 @@ interactions: body: null headers: Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update - Connection: - - keep-alive - ParameterSetName: - - -g -s --generation --refresh-interval - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9k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3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - application/json - date: - - Thu, 18 Jan 2024 08:33:29 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service update + - spring app delete Connection: - keep-alive ParameterSetName: - - -g -s --generation --refresh-interval + - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-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hvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default"},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:17:46.2268196Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:20:00.5889302Z"}}' headers: cache-control: - no-cache content-length: - - '327' + - '1196' content-type: - application/json date: - - Thu, 18 Jan 2024 08:33:39 GMT + - Tue, 16 Apr 2024 09:22:21 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 90BCAD7E013F45FB9336376EBD5B3B62 Ref B: MAA201060514045 Ref C: 2024-04-16T09:22:20Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4121,98 +3722,56 @@ interactions: body: null headers: Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update - Connection: - - keep-alive - ParameterSetName: - - -g -s --generation --refresh-interval - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQH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jYTk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - application/json - date: - - Thu, 18 Jan 2024 08:33:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service update + - spring app delete Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - -g -s --generation --refresh-interval + - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGl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M_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c?api-version=2024-05-01-preview&t=638488561429766125&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwE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BAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RQ-chjPqgmLKVjevl8QEEivE8qb_i2vbJMQbdxSTvlfSlozOmsFMH41xvA7hdwLRfPjGhj6vBnwfrXERik6sVO2eWfz4tBRe0KZAdBVCSVR3SMcDy1JcejV_C0VGtUUMX0xmpSrTc36hqwEaF2gGXXFE030g6AK1-MaotobFIItkJ4bpMnJTAPX5ysAMk5HPwmM1zySn9u314U0IsyKJr4MhhCfYRQ4ytRBYL4JTAUQwKwWvcA6GIwYNM5koeCDxsF6Mn4XoGaD_rfg4IVmJjSraTe2Q7hTecnrjbrGkLciztRne0KX9A8QjHxWti9QQUNk72SwNIYDR2dyZy4ByXQ&h=DBgidpGFVh_Bb2pEKBPHmOk8QoEzKgMeJEGZ4Y4AbS8 cache-control: - no-cache content-length: - - '327' - content-type: - - application/json + - '0' date: - - Thu, 18 Jan 2024 08:34:00 GMT + - Tue, 16 Apr 2024 09:22:22 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/5d1c6417-94d7-489d-90ff-c62e0152da3c/Spring/clitest000003?api-version=2024-05-01-preview&t=638488561429921697&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJh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CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=J2PsJMrxCFoZL-fH6z_xlU59UJOY6k9t12dZ9An5CbG0Yb2wPxzD8NSURMo558K-QrCuH-RjnprtCK8BZPgQBtsoQu5ZFA4h-iaJ_D64-yUbiq4m-kCKiTtxJy9VMJ9xXWXEzaSxNdq5dHTakAvFU8ZI3Tvi3oqpWKL4c7fUGv9T2xY6hlvfbewgQrOcAGsCNG3TPBN0Haiu8OVCuR2y3-_DmSEkUHm5FyTDcOX0NSrO4WdauOXrETgGPnu-y9tFZE8IqDvNLV8QIiSia9NvFmdDA2cn7w6SZ7aKE6Dw1WbzGF5YjMxPMhps2b0QArCcKZISsOZsJhT1hMlOcprZmA&h=YA8DQn5qvBtVe8JyjmZuaULwJfZ6jlMPQu6E_U78jcs pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: C0A9D40383004887AE14298906D1FC59 Ref B: MAA201060514045 Ref C: 2024-04-16T09:22:21Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -4221,18 +3780,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service update + - spring app delete Connection: - keep-alive ParameterSetName: - - -g -s --generation --refresh-interval + - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3J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JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c?api-version=2024-05-01-preview&t=638488561429766125&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgk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FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RQ-chjPqgmLKVjevl8QEEivE8qb_i2vbJMQbdxSTvlfSlozOmsFMH41xvA7hdwLRfPjGhj6vBnwfrXERik6sVO2eWfz4tBRe0KZAdBVCSVR3SMcDy1JcejV_C0VGtUUMX0xmpSrTc36hqwEaF2gGXXFE030g6AK1-MaotobFIItkJ4bpMnJTAPX5ysAMk5HPwmM1zySn9u314U0IsyKJr4MhhCfYRQ4ytRBYL4JTAUQwKwWvcA6GIwYNM5koeCDxsF6Mn4XoGaD_rfg4IVmJjSraTe2Q7hTecnrjbrGkLciztRne0KX9A8QjHxWti9QQUNk72SwNIYDR2dyZy4ByXQ&h=DBgidpGFVh_Bb2pEKBPHmOk8QoEzKgMeJEGZ4Y4AbS8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c","name":"5d1c6417-94d7-489d-90ff-c62e0152da3c","status":"Running","startTime":"2024-04-16T09:22:22.8206806Z"}' headers: cache-control: - no-cache @@ -4241,23 +3800,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:34:11 GMT + - Tue, 16 Apr 2024 09:22:23 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F04D668632454C54AB4635F5D77ED968 Ref B: MAA201060514045 Ref C: 2024-04-16T09:22:23Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4269,18 +3828,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service update + - spring app delete Connection: - keep-alive ParameterSetName: - - -g -s --generation --refresh-interval + - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5h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mPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=uqiFFkq1kWKAmh6oI5RRtVxK5m5z3liety3p85jwOlN-ucg6nYhh2jGr9YLX06wKzeYD_Mz5IhyTXNmCiHFc-B1VckR-DxiUk9y_nIR_-Rv5CC10rvG3YNnBBlomTUQYPDHnBqk8y3hlZmM3RZsZ--PoEZCV92g9sfe-He-Mkp7IQI2l2DFOjxAKVgfFDS7g3q1P25sgJa47SiD1jrYZE0p61CYDamARldbHfw88Y2ZoYrBobdlXuEALq9cyuJEQAtC8BaMLhhKQPulZSeOroAxpUZxSllWJaPMRJtAlRQL3jQq886Tgm03uwzOs5gVFx0OGi1roflzWQuMj-IEIuQ&h=VMufocxKxHuFdxwxbsN3rp90xQF3xUCIK-y43r4jYTk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c?api-version=2024-05-01-preview&t=638488561429766125&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2s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L4JTAUQwKwWvcA6GIwYNM5koeCDxsF6Mn4XoGaD_rfg4IVmJjSraTe2Q7hTecnrjbrGkLciztRne0KX9A8QjHxWti9QQUNk72SwNIYDR2dyZy4ByXQ&h=DBgidpGFVh_Bb2pEKBPHmOk8QoEzKgMeJEGZ4Y4AbS8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Running","startTime":"2024-01-18T08:32:14.4562606Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c","name":"5d1c6417-94d7-489d-90ff-c62e0152da3c","status":"Running","startTime":"2024-04-16T09:22:22.8206806Z"}' headers: cache-control: - no-cache @@ -4289,23 +3848,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:34:21 GMT + - Tue, 16 Apr 2024 09:22:35 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 1FF98FB4494E423C900259618B7B114C Ref B: MAA201060514045 Ref C: 2024-04-16T09:22:34Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4317,18 +3876,18 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring application-configuration-service update + - spring app delete Connection: - keep-alive ParameterSetName: - - -g -s --generation --refresh-interval + - -n -g -s User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52?api-version=2024-01-01-preview&t=638411635346371548&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgw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000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c?api-version=2024-05-01-preview&t=638488561429766125&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEt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EFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RQ-chjPqgmLKVjevl8QEEivE8qb_i2vbJMQbdxSTvlfSlozOmsFMH41xvA7hdwLRfPjGhj6vBnwfrXERik6sVO2eWfz4tBRe0KZAdBVCSVR3SMcDy1JcejV_C0VGtUUMX0xmpSrTc36hqwEaF2gGXXFE030g6AK1-MaotobFIItkJ4bpMnJTAPX5ysAMk5HPwmM1zySn9u314U0IsyKJr4MhhCfYRQ4ytRBYL4JTAUQwKwWvcA6GIwYNM5koeCDxsF6Mn4XoGaD_rfg4IVmJjSraTe2Q7hTecnrjbrGkLciztRne0KX9A8QjHxWti9QQUNk72SwNIYDR2dyZy4ByXQ&h=DBgidpGFVh_Bb2pEKBPHmOk8QoEzKgMeJEGZ4Y4AbS8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/573b1bbb-4c06-4916-b1c7-5f7f013c1d52","name":"573b1bbb-4c06-4916-b1c7-5f7f013c1d52","status":"Succeeded","startTime":"2024-01-18T08:32:14.4562606Z","endTime":"2024-01-18T08:34:25.6239142Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/5d1c6417-94d7-489d-90ff-c62e0152da3c","name":"5d1c6417-94d7-489d-90ff-c62e0152da3c","status":"Succeeded","startTime":"2024-04-16T09:22:22.8206806Z","endTime":"2024-04-16T09:22:38.5033784Z"}' headers: cache-control: - no-cache @@ -4337,71 +3896,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:34:31 GMT + - Tue, 16 Apr 2024 09:22:46 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 4087B7E23EB149DABAEE3911E93331B4 Ref B: MAA201060514045 Ref C: 2024-04-16T09:22:45Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service update - Connection: - - keep-alive - ParameterSetName: - - -g -s --generation --refresh-interval - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"refreshIntervalInSeconds":10},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7f8bf66c5-5mrrd","status":"Running"},{"name":"application-configuration-service-7f8bf66c5-kxd8n","status":"Running"},{"name":"fluxcd-source-controller-56678c4679-bm9hl","status":"Running"}],"generation":"Gen2"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:27:27.5097476Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:32:13.8403844Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '917' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:34:32 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4419,39 +3930,39 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:34:34 GMT + - Tue, 16 Apr 2024 09:22:49 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 652E8BEA33AA4A58904A122AE053C9F5 Ref B: MAA201060516027 Ref C: 2024-04-16T09:22:48Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4471,37 +3982,41 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxM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dfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=tBl6wV2-M9r7RTOpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c?api-version=2024-05-01-preview&t=638488561716622438&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCq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pmU8JGVPm-PpynVzCZ1EDgFjrv6SJovSgaRTToLOXDv0ACD0eGvspV60XgvM1PkO43uj6IdaQjmpIoeU0Wc_qZiTHeVjTZ6e9PR3UtgYI1hW7nGfkKTlpNM8qkeb2Lss1vbBOuGyO3Xg8zukP5U2X2RHg4Bdh_Q9LMpdzNXXxYblsuadIFyZo8NpHNgI2GckKEGyBA&h=v-lamW0Aji2OCI7D4qa6kZVn-OkBegDRomj88YCz8Ew cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 08:34:36 GMT + - Tue, 16 Apr 2024 09:22:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1/Spring/clitest000002?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q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vu3PVQuR5-rip9fcY0V-Z0_wDvbu7loB_TAhduu79_DQ-Wi8tyn-2-Z0DqbzMo4odz9A&h=g0Fsw8QEeIrvkUjs1BPlE8NgvIR8WJx8oD-TJx0a2A0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/eff5b822-8346-4f30-acf7-9142d4ed0d4c/Spring/clitest000002?api-version=2024-05-01-preview&t=638488561716778719&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=O1oG_B1dNXwUIbFR0cuX7UCWOlx10Om0y-M2zpWFgUH71mgRvWqxVKQj7MbjN8bYoo-oWONYSZAvnVd2Aa1avxwQ6-3-Dv6fiGjH4ZeVrl8GHmIWqTSqug1l0tAm2zZ_Tl_gJwKOi8Qx8JtUhyB5rMkcj51H3Dj0oKZolg7ZyZpCBvLSnUWv6fRVswkge5xaw8j6xcqwo_qqNOBIt-9Pqd-xx0c-djR_uAfH1TC3e65XnT6dtJ0dNiSrJlHZPfaVAo3GtKQhwz4upjuTZKie4uup56n81kCFsCFQMkJRcgF99vwU4CSewsMS4LR7XDjVxwGllcD3JIsL6xqvN15MDA&h=xBIrJVA3A1pFU6Z-s-jwZxJM-lGmzCJGpAhyfaZIN_U pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-msedge-ref: + - 'Ref A: 330A40355A3944668E84486B0BD5ED08 Ref B: MAA201060513045 Ref C: 2024-04-16T09:22:50Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -4519,204 +4034,12 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb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_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Running","startTime":"2024-01-18T08:34:36.7038894Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:34:36 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service delete - Connection: - - keep-alive - ParameterSetName: - - -g -s --yes - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=tBl6wV2-M9r7RTOpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Running","startTime":"2024-01-18T08:34:36.7038894Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:34:47 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service delete - Connection: - - keep-alive - ParameterSetName: - - -g -s --yes - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGC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JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=tBl6wV2-M9r7RTOpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Running","startTime":"2024-01-18T08:34:36.7038894Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:34:57 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service delete - Connection: - - keep-alive - ParameterSetName: - - -g -s --yes - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADC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-M9r7RTOpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk - response: - body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Running","startTime":"2024-01-18T08:34:36.7038894Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Thu, 18 Jan 2024 08:35:08 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-configuration-service delete - Connection: - - keep-alive - ParameterSetName: - - -g -s --yes - User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsL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MBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=tBl6wV2-M9r7RTOpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c?api-version=2024-05-01-preview&t=638488561716622438&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DAN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Do2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=iUk1zAJu07WD7FDob2guafFwHF99-7scyYeRjvLZSLm4zsh4Jmwjryty2CatR5jsb9JwqWlnAWXVIQunlLEPgV7PgdXKLywr-gaQwWsnd7YwpbDzDDBZAp7psFpfO7y0RORBWEvcTQwLjlbfpmU8JGVPm-PpynVzCZ1EDgFjrv6SJovSgaRTToLOXDv0ACD0eGvspV60XgvM1PkO43uj6IdaQjmpIoeU0Wc_qZiTHeVjTZ6e9PR3UtgYI1hW7nGfkKTlpNM8qkeb2Lss1vbBOuGyO3Xg8zukP5U2X2RHg4Bdh_Q9LMpdzNXXxYblsuadIFyZo8NpHNgI2GckKEGyBA&h=v-lamW0Aji2OCI7D4qa6kZVn-OkBegDRomj88YCz8Ew response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Running","startTime":"2024-01-18T08:34:36.7038894Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c","name":"eff5b822-8346-4f30-acf7-9142d4ed0d4c","status":"Running","startTime":"2024-04-16T09:22:51.4272264Z"}' headers: cache-control: - no-cache @@ -4725,23 +4048,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:20 GMT + - Tue, 16 Apr 2024 09:22:53 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 79688BE77E3D42089B40EFADA7A91DF3 Ref B: MAA201060513045 Ref C: 2024-04-16T09:22:51Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4759,12 +4082,12 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggE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OpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c?api-version=2024-05-01-preview&t=638488561716622438&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuv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Xg8zukP5U2X2RHg4Bdh_Q9LMpdzNXXxYblsuadIFyZo8NpHNgI2GckKEGyBA&h=v-lamW0Aji2OCI7D4qa6kZVn-OkBegDRomj88YCz8Ew response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Running","startTime":"2024-01-18T08:34:36.7038894Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c","name":"eff5b822-8346-4f30-acf7-9142d4ed0d4c","status":"Running","startTime":"2024-04-16T09:22:51.4272264Z"}' headers: cache-control: - no-cache @@ -4773,23 +4096,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:30 GMT + - Tue, 16 Apr 2024 09:23:04 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 31F6EA8E82694AACBF9DFCD10D76B017 Ref B: MAA201060513045 Ref C: 2024-04-16T09:23:03Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4807,12 +4130,12 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1?api-version=2024-01-01-preview&t=638411636769119122&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQ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JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=tBl6wV2-M9r7RTOpoXhFrhp8pvma9Ch8SADGYxWuEG0ziNGteGTl-wkzZYQsObKbGB30yi7Z-bQOCRlSGzdczVLUtsWrTKLFxRcuSgNbtrcYiWQKHR6MPb0_KkdO5HAqGzw6DUb6UGq3WOT8OX3O6V2RjB9Ps5RAJrdgeeb0T2oXXZ3asoiosmmZyZf5OZDCNlkdNX7GGkjnIEo1W2OWcL-M4ItaKWhftDWZldy3SDhF94i5nC96mblAYvmkQvu_q5T_fkA1Sw-okNlThPDLFPRbqeWMs37sksWmrpTAAGxEulkvktmyb0xYlTI1wvHSlBTLYeyDPq87OQ3aNG0mww&h=C3hqk14p9FD14oJcON3ZakThSELw3jCfiTyCDq2dwIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c?api-version=2024-05-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VtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=iUk1zAJu07WD7FDob2guafFwHF99-7scyYeRjvLZSLm4zsh4Jmwjryty2CatR5jsb9JwqWlnAWXVIQunlLEPgV7PgdXKLywr-gaQwWsnd7YwpbDzDDBZAp7psFpfO7y0RORBWEvcTQwLjlbfpmU8JGVPm-PpynVzCZ1EDgFjrv6SJovSgaRTToLOXDv0ACD0eGvspV60XgvM1PkO43uj6IdaQjmpIoeU0Wc_qZiTHeVjTZ6e9PR3UtgYI1hW7nGfkKTlpNM8qkeb2Lss1vbBOuGyO3Xg8zukP5U2X2RHg4Bdh_Q9LMpdzNXXxYblsuadIFyZo8NpHNgI2GckKEGyBA&h=v-lamW0Aji2OCI7D4qa6kZVn-OkBegDRomj88YCz8Ew response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","name":"d4ba346e-133f-44e8-a7a0-1b9ed8b445b1","status":"Succeeded","startTime":"2024-01-18T08:34:36.7038894Z","endTime":"2024-01-18T08:35:39.6396953Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eff5b822-8346-4f30-acf7-9142d4ed0d4c","name":"eff5b822-8346-4f30-acf7-9142d4ed0d4c","status":"Succeeded","startTime":"2024-04-16T09:22:51.4272264Z","endTime":"2024-04-16T09:23:07.0541278Z"}' headers: cache-control: - no-cache @@ -4821,23 +4144,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:41 GMT + - Tue, 16 Apr 2024 09:23:15 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: AD7E05592CB049D78049BEA6B7C31D17 Ref B: MAA201060513045 Ref C: 2024-04-16T09:23:14Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4855,39 +4178,39 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d0796239d1e247d6979c90de62cc13ee","networkProfile":{"outboundIPs":{"publicIPs":["40.88.217.112","40.88.217.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-17T01:40:50.0073318Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T01:40:50.0073318Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:43 GMT + - Tue, 16 Apr 2024 09:23:18 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 7B24BF207AD34A08A7EC4B7B8BC76F09 Ref B: MAA201060516029 Ref C: 2024-04-16T09:23:17Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -4910,39 +4233,43 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","settings":{"refreshIntervalInSeconds":20},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:35:44.2296786Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:35:44.2296786Z"}}' + string: '{"properties":{"provisioningState":"Creating","settings":{"refreshIntervalInSeconds":20},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:23:19.0575922Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:23:19.0575922Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1?api-version=2024-01-01-preview&t=638411637455109774&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8Xd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VfY-8UTsTG6F3BJw&h=1T8A-J9VBrteZyoPrUSC_bn6CAOxeRthfa-EXGuJq74 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5?api-version=2024-05-01-preview&t=638488561997295376&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCA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A1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=YrlKRKKy0Za54uu9tBy5FA77TpJV0UK08y7TYccPDPtGJh0-glI9R-nbEkUvvYvz2Uu0hc0KQ3JNfol_dMDhMG94HMBakm2ZILALtSJMNqVbEasmncr5jK6rKmLozt_VjbccBEv7bkyQKlpbaIZRUzwiBrRVkU-RognmpPD-Sz3dJZoLRshE-Ch-O9EURhflqbmyI2WWFSwehrcGoN_LS6vtgYclycJRbPJp966odmWpNQinDzHbskBu1cBddS4tkFUk9YOPogkTD5Jdqgs-0cTMCFtOn_s-QCDoF_e6mhE3AI1TKLSCjtPydu3MrLa3YlaIDsGdjAe_Os4vsQQxBg&h=2cxlZbFnVFkXR5B4PGRRKj3fph820xrIsxDAVCNYvv8 cache-control: - no-cache content-length: - - '685' + - '673' content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:45 GMT + - Tue, 16 Apr 2024 09:23:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/653061e6-d68a-437a-8333-f69b6b054cf1/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ELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=X_gQXVo-DWwzA5Svo5uTqaSSmR9xfrxZ7AGeDKznJtTqFMOKTrET9mDIVQZ4edN7QqiTR1ppN4GYtS0zxZoNx9-IlJjl1vqAXYoVfiS9YGtkkElgES3QESAlTPfVH3c4s78OTgiSQTvISqZSKTeUWkUsZVGM0RkSHWztfc08oN5UaAXOI1zOxxyVTJ3Gys4fRbKNrMXuMsS5IKcLpCrI0C63rnNrnV8_aycCsDPicNcF8KRaA6u-ATzDjs1inXN4f3sONsmpGZ9TBwZi9oFksQZiqTolyyB_WI4nrzWAO5OhL5I0J2Zb0e6Shbg-3Hxd12wz382jazUWGwwpm6z-8w&h=Mo43k-uwLgAb2vQ4fiUFuecssx19Rl4Wth5yrFsMVcs + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5/Spring/clitest000002?api-version=2024-05-01-preview&t=638488561997450744&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzM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Ehofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=dLCkZkWdCZ9TExcDUsJ0-ddH4RkxBRhVkCg10GMFtxxc09u6LpyfET9cgDbyW2H40pTQamotNUPQay-Qhi7bMZPF7zXPj_JbnLaGn9wLdUvEUvRQdBbaafkeCHLv92jyow2rFJk0ZvSHQfJToVBc5c_n9D3V3p6ETu290Hn6sJ-US_4xieFBx7M43onA_usp395VXCTMonO-UptXpa74SoY1fqdbmKe2o_yuVX4Q_jhGkWVed2X6KCcL0fF3hS-xLPGlnQ4B3JcSbP5cYnmoDZ6nDfLw3L2YEcvNvxxBnMFn5PlMmLyeleeTKaTep_t9Hmlhd3fq21uqjC_xvnaVKQ&h=DAMuyp4Mah4AuBVzqWlt6XUAPwJhlX6WjLaCsqaH2bg pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1198' + x-msedge-ref: + - 'Ref A: 0DFC59115EA547E08924896D1A82553C Ref B: MAA201060514039 Ref C: 2024-04-16T09:23:18Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -4960,12 +4287,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1?api-version=2024-01-01-preview&t=638411637455109774&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNR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dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=lAprX63Tkn1dMCbmAG2XwTNdnaBMKsFkT9l4SHz2_94o9UuMpjTx2GIdmq2J0ix42nvSd7eJO487zpHHKNJhtT7FWAEigr33t4rnd49auEnt4lKhaO7Dxewk0s5J3tWsVMvNk7QEB2j2bhRwWjHbVwLnB71NgdTI7-eyIP027sw8YLBg5U2F7sHqW6w69WaHhv02axc1dO256RcnwROr826B9VCo7hbYaMbp-v3P-IzLUQRUgDrzr2_LmR2JFa3v-65N9nh07l9KFRVdYDe1UQU6V65KNCom6HLw-1qVb5PZhPRXQRnbobcrjAN7dZdKq3wU3iVfY-8UTsTG6F3BJw&h=1T8A-J9VBrteZyoPrUSC_bn6CAOxeRthfa-EXGuJq74 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5?api-version=2024-05-01-preview&t=638488561997295376&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgw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3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=YrlKRKKy0Za54uu9tBy5FA77TpJV0UK08y7TYccPDPtGJh0-glI9R-nbEkUvvYvz2Uu0hc0KQ3JNfol_dMDhMG94HMBakm2ZILALtSJMNqVbEasmncr5jK6rKmLozt_VjbccBEv7bkyQKlpbaIZRUzwiBrRVkU-RognmpPD-Sz3dJZoLRshE-Ch-O9EURhflqbmyI2WWFSwehrcGoN_LS6vtgYclycJRbPJp966odmWpNQinDzHbskBu1cBddS4tkFUk9YOPogkTD5Jdqgs-0cTMCFtOn_s-QCDoF_e6mhE3AI1TKLSCjtPydu3MrLa3YlaIDsGdjAe_Os4vsQQxBg&h=2cxlZbFnVFkXR5B4PGRRKj3fph820xrIsxDAVCNYvv8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1","name":"653061e6-d68a-437a-8333-f69b6b054cf1","status":"Running","startTime":"2024-01-18T08:35:45.3012732Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","name":"b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","status":"Running","startTime":"2024-04-16T09:23:19.5567445Z"}' headers: cache-control: - no-cache @@ -4974,23 +4301,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:45 GMT + - Tue, 16 Apr 2024 09:23:20 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DA605C2E52F4492382DA881C481267C3 Ref B: MAA201060514039 Ref C: 2024-04-16T09:23:19Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -5008,12 +4335,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1?api-version=2024-01-01-preview&t=638411637455109774&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioS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Dxewk0s5J3tWsVMvNk7QEB2j2bhRwWjHbVwLnB71NgdTI7-eyIP027sw8YLBg5U2F7sHqW6w69WaHhv02axc1dO256RcnwROr826B9VCo7hbYaMbp-v3P-IzLUQRUgDrzr2_LmR2JFa3v-65N9nh07l9KFRVdYDe1UQU6V65KNCom6HLw-1qVb5PZhPRXQRnbobcrjAN7dZdKq3wU3iVfY-8UTsTG6F3BJw&h=1T8A-J9VBrteZyoPrUSC_bn6CAOxeRthfa-EXGuJq74 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5?api-version=2024-05-01-preview&t=638488561997295376&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6x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body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1","name":"653061e6-d68a-437a-8333-f69b6b054cf1","status":"Running","startTime":"2024-01-18T08:35:45.3012732Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","name":"b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","status":"Running","startTime":"2024-04-16T09:23:19.5567445Z"}' headers: cache-control: - no-cache @@ -5022,23 +4349,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:35:56 GMT + - Tue, 16 Apr 2024 09:23:30 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F996DD54018C42679A92C4A144264391 Ref B: MAA201060514039 Ref C: 2024-04-16T09:23:31Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -5056,12 +4383,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1?api-version=2024-01-01-preview&t=638411637455109774&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5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Ewb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=lAprX63Tkn1dMCbmAG2XwTNdnaBMKsFkT9l4SHz2_94o9UuMpjTx2GIdmq2J0ix42nvSd7eJO487zpHHKNJhtT7FWAEigr33t4rnd49auEnt4lKhaO7Dxewk0s5J3tWsVMvNk7QEB2j2bhRwWjHbVwLnB71NgdTI7-eyIP027sw8YLBg5U2F7sHqW6w69WaHhv02axc1dO256RcnwROr826B9VCo7hbYaMbp-v3P-IzLUQRUgDrzr2_LmR2JFa3v-65N9nh07l9KFRVdYDe1UQU6V65KNCom6HLw-1qVb5PZhPRXQRnbobcrjAN7dZdKq3wU3iVfY-8UTsTG6F3BJw&h=1T8A-J9VBrteZyoPrUSC_bn6CAOxeRthfa-EXGuJq74 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5?api-version=2024-05-01-preview&t=638488561997295376&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLG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3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=YrlKRKKy0Za54uu9tBy5FA77TpJV0UK08y7TYccPDPtGJh0-glI9R-nbEkUvvYvz2Uu0hc0KQ3JNfol_dMDhMG94HMBakm2ZILALtSJMNqVbEasmncr5jK6rKmLozt_VjbccBEv7bkyQKlpbaIZRUzwiBrRVkU-RognmpPD-Sz3dJZoLRshE-Ch-O9EURhflqbmyI2WWFSwehrcGoN_LS6vtgYclycJRbPJp966odmWpNQinDzHbskBu1cBddS4tkFUk9YOPogkTD5Jdqgs-0cTMCFtOn_s-QCDoF_e6mhE3AI1TKLSCjtPydu3MrLa3YlaIDsGdjAe_Os4vsQQxBg&h=2cxlZbFnVFkXR5B4PGRRKj3fph820xrIsxDAVCNYvv8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1","name":"653061e6-d68a-437a-8333-f69b6b054cf1","status":"Running","startTime":"2024-01-18T08:35:45.3012732Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","name":"b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","status":"Running","startTime":"2024-04-16T09:23:19.5567445Z"}' headers: cache-control: - no-cache @@ -5070,23 +4397,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:36:07 GMT + - Tue, 16 Apr 2024 09:23:42 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: FFC7D0C35BB74A348338E831CE88ED57 Ref B: MAA201060514039 Ref C: 2024-04-16T09:23:41Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -5104,12 +4431,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1?api-version=2024-01-01-preview&t=638411637455109774&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX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t4rnd49auEnt4lKhaO7Dxewk0s5J3tWsVMvNk7QEB2j2bhRwWjHbVwLnB71NgdTI7-eyIP027sw8YLBg5U2F7sHqW6w69WaHhv02axc1dO256RcnwROr826B9VCo7hbYaMbp-v3P-IzLUQRUgDrzr2_LmR2JFa3v-65N9nh07l9KFRVdYDe1UQU6V65KNCom6HLw-1qVb5PZhPRXQRnbobcrjAN7dZdKq3wU3iVfY-8UTsTG6F3BJw&h=1T8A-J9VBrteZyoPrUSC_bn6CAOxeRthfa-EXGuJq74 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5?api-version=2024-05-01-preview&t=638488561997295376&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FV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xrIsxDAVCNYvv8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1","name":"653061e6-d68a-437a-8333-f69b6b054cf1","status":"Running","startTime":"2024-01-18T08:35:45.3012732Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","name":"b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","status":"Running","startTime":"2024-04-16T09:23:19.5567445Z"}' headers: cache-control: - no-cache @@ -5118,23 +4445,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:36:17 GMT + - Tue, 16 Apr 2024 09:23:53 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7A2280914C5E4E65BC51F701276536DA Ref B: MAA201060514039 Ref C: 2024-04-16T09:23:53Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -5152,12 +4479,12 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1?api-version=2024-01-01-preview&t=638411637455109774&c=MIIHHjCCBgagAwIBAgITfwI8YE7TFpH4swTJAgAEAjxgTjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMxMTAxMTI0ODMyWhcNMjQxMDI2MTI0ODMyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOfk7s1AnKyUqxJR1tGB1o-bd08yXoGVmNHQbpQb9IWlVS7htLxnfaUT083PrTqMEBOB9OS4hyPlFX-ApR1pomKdOD1y0gioSkZG_vgzN2wtFSBJWYWnrCl3xq-Tt9kIsLmZ7FZ-JBOTPKr8rSmKzm4L0NIsVf6UNGZOPdsZpFYEXOeyjshEO6PpPevESOM8rWMDozQTl1HzkC0gPrg5DGhYsJJe5HDWO8h7FZD5HFOCbb225KnGWZppoK08q2QpTgIP8P7CvjQnoGz2CnVSlOOMvuZXjhUTObsuZWO8XdgF04CkgZhq94b4Ej__vi4D1mZ2x9zRlrEMA1MEIfV5sN0CAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMv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VHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAGraIc9hsqUGKcUfGRNlRfK3ussZT-LVHk7wo_N16Hnjq6O3kEOh1mdMNH-uYhMOeqXAg8ua2Co_Ryny1cSbWYBExXVxH2mDnGrRA0cOMEZVd7HGLhG7AvGMFDaxPDge9P_W4kaoMoN3Q3UcKwfZ3H94NyavU0Pk8lqY294YOkd-IgerbhZiIsIR1xE4QglniwVZCNl85WS-QtiJ2urgjIQ6mIdfAQb1mUbHPMh8i3z_av1Wjp5eOUm3MIA7j9kOWVnCEWM_wzDNrLBl-o3cRuUEdVMzmghLEyrN6p0svczMmPBFkSXArQzjyJpTQfM7UHrhAv7N0cUingZ7xJY8z_M&s=lAprX63Tkn1dMCbmAG2XwTNdnaBMKsFkT9l4SHz2_94o9UuMpjTx2GIdmq2J0ix42nvSd7eJO487zpHHKNJhtT7FWAEigr33t4rnd49auEnt4lKhaO7Dxewk0s5J3tWsVMvNk7QEB2j2bhRwWjHbVwLnB71NgdTI7-eyIP027sw8YLBg5U2F7sHqW6w69WaHhv02axc1dO256RcnwROr826B9VCo7hbYaMbp-v3P-IzLUQRUgDrzr2_LmR2JFa3v-65N9nh07l9KFRVdYDe1UQU6V65KNCom6HLw-1qVb5PZhPRXQRnbobcrjAN7dZdKq3wU3iVfY-8UTsTG6F3BJw&h=1T8A-J9VBrteZyoPrUSC_bn6CAOxeRthfa-EXGuJq74 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5?api-version=2024-05-01-preview&t=638488561997295376&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR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_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=YrlKRKKy0Za54uu9tBy5FA77TpJV0UK08y7TYccPDPtGJh0-glI9R-nbEkUvvYvz2Uu0hc0KQ3JNfol_dMDhMG94HMBakm2ZILALtSJMNqVbEasmncr5jK6rKmLozt_VjbccBEv7bkyQKlpbaIZRUzwiBrRVkU-RognmpPD-Sz3dJZoLRshE-Ch-O9EURhflqbmyI2WWFSwehrcGoN_LS6vtgYclycJRbPJp966odmWpNQinDzHbskBu1cBddS4tkFUk9YOPogkTD5Jdqgs-0cTMCFtOn_s-QCDoF_e6mhE3AI1TKLSCjtPydu3MrLa3YlaIDsGdjAe_Os4vsQQxBg&h=2cxlZbFnVFkXR5B4PGRRKj3fph820xrIsxDAVCNYvv8 response: body: - string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/653061e6-d68a-437a-8333-f69b6b054cf1","name":"653061e6-d68a-437a-8333-f69b6b054cf1","status":"Succeeded","startTime":"2024-01-18T08:35:45.3012732Z","endTime":"2024-01-18T08:36:25.8938926Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","name":"b6cc8e10-3e85-4126-80f3-080e7fe7e2e5","status":"Succeeded","startTime":"2024-04-16T09:23:19.5567445Z","endTime":"2024-04-16T09:24:00.2296485Z"}' headers: cache-control: - no-cache @@ -5166,23 +4493,23 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 08:36:28 GMT + - Tue, 16 Apr 2024 09:24:04 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8BD06CB9928049619B6F63A0A010DDC5 Ref B: MAA201060514039 Ref C: 2024-04-16T09:24:04Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -5200,37 +4527,37 @@ interactions: ParameterSetName: - -g -s --generation --refresh-interval User-Agent: - - AZURECLI/2.54.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","settings":{"refreshIntervalInSeconds":20},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-c569f4d5b-5vrm9","status":"Running"},{"name":"application-configuration-service-c569f4d5b-ltqj8","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"v-shilichen@microsoft.com","createdByType":"User","createdAt":"2024-01-18T08:35:44.2296786Z","lastModifiedBy":"v-shilichen@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T08:35:44.2296786Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","settings":{"refreshIntervalInSeconds":20},"resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"application-configuration-service-7c6755755b-b2szm","status":"Running"},{"name":"application-configuration-service-7c6755755b-n442l","status":"Running"}],"generation":"Gen1"},"type":"Microsoft.AppPlatform/Spring/configurationServices","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/configurationServices/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T09:23:19.0575922Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T09:23:19.0575922Z"}}' headers: cache-control: - no-cache content-length: - - '845' + - '835' content-type: - application/json date: - - Thu, 18 Jan 2024 08:36:28 GMT + - Tue, 16 Apr 2024 09:24:06 GMT expires: - '-1' pragma: - no-cache request-context: - - appId=cid-v1:ccd65fc4-7cd4-497e-8dc8-9a76e9a43ae2 + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C0927941D7BA44B6BFA5A1126B97A9B2 Ref B: MAA201060514039 Ref C: 2024-04-16T09:24:05Z' x-rp-server-mvid: - - c99c9c6e-6950-4e6b-806c-3f2f9a37b9c6 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_asc_app_insights_update.yaml b/src/spring/azext_spring/tests/latest/recordings/test_asc_app_insights_update.yaml index 0ba8f494e30..ab36fd3638e 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_asc_app_insights_update.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_asc_app_insights_update.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:31:26.7455551Z"}}' @@ -71,13 +71,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/3e7478d7-bd96-412b-97b8-f467ad14b151?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/3e7478d7-bd96-412b-97b8-f467ad14b151?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -89,7 +89,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3e7478d7-bd96-412b-97b8-f467ad14b151/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3e7478d7-bd96-412b-97b8-f467ad14b151/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -123,7 +123,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:34:33.4149466Z"}}' @@ -175,7 +175,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -225,7 +225,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:34:33.4149466Z"}}' @@ -277,7 +277,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -327,7 +327,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:34:33.4149466Z"}}' @@ -379,7 +379,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -429,7 +429,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:34:33.4149466Z"}}' @@ -481,7 +481,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -604,13 +604,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/4eacec8f-eb56-45ad-a607-025fa76baa1c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/4eacec8f-eb56-45ad-a607-025fa76baa1c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -622,7 +622,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/4eacec8f-eb56-45ad-a607-025fa76baa1c/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/4eacec8f-eb56-45ad-a607-025fa76baa1c/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -656,7 +656,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:11.2820718Z"}}' @@ -708,7 +708,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -758,7 +758,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:11.2820718Z"}}' @@ -810,7 +810,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -860,7 +860,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:11.2820718Z"}}' @@ -912,7 +912,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -962,7 +962,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:11.2820718Z"}}' @@ -1014,7 +1014,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1064,7 +1064,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:11.2820718Z"}}' @@ -1120,13 +1120,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/9446e144-70cf-41ca-b6a7-d0b7aff40948?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/9446e144-70cf-41ca-b6a7-d0b7aff40948?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1138,7 +1138,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/9446e144-70cf-41ca-b6a7-d0b7aff40948/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/9446e144-70cf-41ca-b6a7-d0b7aff40948/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1172,7 +1172,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:32.6349347Z"}}' @@ -1224,7 +1224,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1274,7 +1274,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:32.6349347Z"}}' @@ -1326,7 +1326,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1376,7 +1376,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:32.6349347Z"}}' @@ -1428,7 +1428,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1478,7 +1478,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:32.6349347Z"}}' @@ -1530,7 +1530,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1653,13 +1653,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/63d753cf-4aeb-42fb-a635-db62796cae58?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/63d753cf-4aeb-42fb-a635-db62796cae58?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1671,7 +1671,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/63d753cf-4aeb-42fb-a635-db62796cae58/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/63d753cf-4aeb-42fb-a635-db62796cae58/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1705,7 +1705,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:51.3395913Z"}}' @@ -1757,7 +1757,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1807,7 +1807,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:51.3395913Z"}}' @@ -1859,7 +1859,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1909,7 +1909,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:51.3395913Z"}}' @@ -1961,7 +1961,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2011,7 +2011,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:51.3395913Z"}}' @@ -2063,7 +2063,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2113,7 +2113,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:35:51.3395913Z"}}' @@ -2169,13 +2169,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/e893ebcf-83da-4758-a3c6-fadb502cafb1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/e893ebcf-83da-4758-a3c6-fadb502cafb1?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2187,7 +2187,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/e893ebcf-83da-4758-a3c6-fadb502cafb1/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/e893ebcf-83da-4758-a3c6-fadb502cafb1/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2221,7 +2221,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:12.4962802Z"}}' @@ -2273,7 +2273,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2323,7 +2323,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:12.4962802Z"}}' @@ -2375,7 +2375,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2425,7 +2425,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:12.4962802Z"}}' @@ -2477,7 +2477,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2527,7 +2527,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:12.4962802Z"}}' @@ -2579,7 +2579,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2634,13 +2634,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"e157df4b-c2b4-4d03-b2bc-b85f6570ee8d"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/11f454d1-c35a-4ffd-bf2d-93c1f1f1f708?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/11f454d1-c35a-4ffd-bf2d-93c1f1f1f708?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2652,7 +2652,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/11f454d1-c35a-4ffd-bf2d-93c1f1f1f708/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/11f454d1-c35a-4ffd-bf2d-93c1f1f1f708/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2686,7 +2686,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:30.567439Z"}}' @@ -2738,7 +2738,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"e157df4b-c2b4-4d03-b2bc-b85f6570ee8d"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2788,7 +2788,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:30.567439Z"}}' @@ -2840,7 +2840,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"e157df4b-c2b4-4d03-b2bc-b85f6570ee8d"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2890,7 +2890,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:30.567439Z"}}' @@ -2942,7 +2942,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"e157df4b-c2b4-4d03-b2bc-b85f6570ee8d"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2992,7 +2992,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:30.567439Z"}}' @@ -3044,7 +3044,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"e157df4b-c2b4-4d03-b2bc-b85f6570ee8d"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3094,7 +3094,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:30.567439Z"}}' @@ -3150,13 +3150,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/ed7d3a8b-7e26-44d0-965f-278e166165c5?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/ed7d3a8b-7e26-44d0-965f-278e166165c5?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -3168,7 +3168,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/ed7d3a8b-7e26-44d0-965f-278e166165c5/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/ed7d3a8b-7e26-44d0-965f-278e166165c5/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -3202,7 +3202,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:49.4585506Z"}}' @@ -3254,7 +3254,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3304,7 +3304,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:49.4585506Z"}}' @@ -3356,7 +3356,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3406,7 +3406,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:49.4585506Z"}}' @@ -3458,7 +3458,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3508,7 +3508,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:36:49.4585506Z"}}' @@ -3560,7 +3560,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3616,13 +3616,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/a736bfd6-5d87-4a63-a2c8-715a03de2849?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/a736bfd6-5d87-4a63-a2c8-715a03de2849?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -3634,7 +3634,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/a736bfd6-5d87-4a63-a2c8-715a03de2849/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/a736bfd6-5d87-4a63-a2c8-715a03de2849/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -3668,7 +3668,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:06.4181491Z"}}' @@ -3720,7 +3720,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3770,7 +3770,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:06.4181491Z"}}' @@ -3822,7 +3822,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3872,7 +3872,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:06.4181491Z"}}' @@ -3924,7 +3924,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3974,7 +3974,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:06.4181491Z"}}' @@ -4026,7 +4026,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4076,7 +4076,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:06.4181491Z"}}' @@ -4128,7 +4128,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4184,13 +4184,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/e0908ebf-108d-4804-8000-6ab3f75e319c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/e0908ebf-108d-4804-8000-6ab3f75e319c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -4202,7 +4202,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/e0908ebf-108d-4804-8000-6ab3f75e319c/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/e0908ebf-108d-4804-8000-6ab3f75e319c/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -4236,7 +4236,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:27.5729199Z"}}' @@ -4288,7 +4288,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4338,7 +4338,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:27.5729199Z"}}' @@ -4390,7 +4390,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4440,7 +4440,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:27.5729199Z"}}' @@ -4492,7 +4492,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4542,7 +4542,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:27.5729199Z"}}' @@ -4594,7 +4594,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4644,7 +4644,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:27.5729199Z"}}' @@ -4696,7 +4696,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4752,13 +4752,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/3e40334e-2cf9-413b-8267-f8bb7707e862?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/3e40334e-2cf9-413b-8267-f8bb7707e862?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -4770,7 +4770,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3e40334e-2cf9-413b-8267-f8bb7707e862/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3e40334e-2cf9-413b-8267-f8bb7707e862/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -4804,7 +4804,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:46.9449185Z"}}' @@ -4856,7 +4856,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -4906,7 +4906,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:46.9449185Z"}}' @@ -4958,7 +4958,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5008,7 +5008,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:46.9449185Z"}}' @@ -5060,7 +5060,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5110,7 +5110,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:46.9449185Z"}}' @@ -5162,7 +5162,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5212,7 +5212,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:37:46.9449185Z"}}' @@ -5264,7 +5264,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5320,13 +5320,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/e65d84c9-90c4-4d6f-b6f7-18240f530f2c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/e65d84c9-90c4-4d6f-b6f7-18240f530f2c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -5338,7 +5338,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/e65d84c9-90c4-4d6f-b6f7-18240f530f2c/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/e65d84c9-90c4-4d6f-b6f7-18240f530f2c/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -5372,7 +5372,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:06.4918407Z"}}' @@ -5424,7 +5424,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5474,7 +5474,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:06.4918407Z"}}' @@ -5526,7 +5526,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5576,7 +5576,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:06.4918407Z"}}' @@ -5628,7 +5628,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5678,7 +5678,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:06.4918407Z"}}' @@ -5730,7 +5730,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5780,7 +5780,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:06.4918407Z"}}' @@ -5832,7 +5832,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -5888,13 +5888,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/416ea116-6d24-41b9-8330-c6b9177c883e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/416ea116-6d24-41b9-8330-c6b9177c883e?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -5906,7 +5906,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/416ea116-6d24-41b9-8330-c6b9177c883e/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/416ea116-6d24-41b9-8330-c6b9177c883e/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -5940,7 +5940,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:26.9814628Z"}}' @@ -5992,7 +5992,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6042,7 +6042,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:26.9814628Z"}}' @@ -6094,7 +6094,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6144,7 +6144,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:26.9814628Z"}}' @@ -6196,7 +6196,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6246,7 +6246,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:26.9814628Z"}}' @@ -6298,7 +6298,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6348,7 +6348,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:26.9814628Z"}}' @@ -6400,7 +6400,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6456,13 +6456,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":50.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/9ddbeaf5-00e5-4124-ad53-ea3a95863f5a?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/9ddbeaf5-00e5-4124-ad53-ea3a95863f5a?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -6474,7 +6474,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/9ddbeaf5-00e5-4124-ad53-ea3a95863f5a/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/9ddbeaf5-00e5-4124-ad53-ea3a95863f5a/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -6508,7 +6508,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:45.7241426Z"}}' @@ -6560,7 +6560,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":50.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6610,7 +6610,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:45.7241426Z"}}' @@ -6662,7 +6662,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":50.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6712,7 +6712,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:45.7241426Z"}}' @@ -6764,7 +6764,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":50.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6814,7 +6814,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:45.7241426Z"}}' @@ -6866,7 +6866,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":50.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -6916,7 +6916,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:38:45.7241426Z"}}' @@ -6968,7 +6968,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":50.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7024,13 +7024,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":99.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/60bf9bb1-443b-42e8-8f67-a49f4ee4b949?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/60bf9bb1-443b-42e8-8f67-a49f4ee4b949?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -7042,7 +7042,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/60bf9bb1-443b-42e8-8f67-a49f4ee4b949/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/60bf9bb1-443b-42e8-8f67-a49f4ee4b949/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -7076,7 +7076,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:06.0770506Z"}}' @@ -7128,7 +7128,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":99.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7178,7 +7178,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:06.0770506Z"}}' @@ -7230,7 +7230,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":99.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7280,7 +7280,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:06.0770506Z"}}' @@ -7332,7 +7332,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":99.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7382,7 +7382,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:06.0770506Z"}}' @@ -7434,7 +7434,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":99.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7484,7 +7484,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:06.0770506Z"}}' @@ -7536,7 +7536,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":99.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7592,13 +7592,13 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":100.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/9a0b06ab-d349-4d3e-937e-d2547f92a40e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/9a0b06ab-d349-4d3e-937e-d2547f92a40e?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -7610,7 +7610,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/9a0b06ab-d349-4d3e-937e-d2547f92a40e/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/9a0b06ab-d349-4d3e-937e-d2547f92a40e/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -7644,7 +7644,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:25.1186118Z"}}' @@ -7696,7 +7696,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":100.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7746,7 +7746,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:25.1186118Z"}}' @@ -7798,7 +7798,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":100.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7848,7 +7848,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:25.1186118Z"}}' @@ -7900,7 +7900,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":100.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -7950,7 +7950,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"1d959049b8334e429eb07ca9e107dedc","networkProfile":{"outboundIPs":{"publicIPs":["20.94.26.33","20.96.133.171"]}},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2022-07-02T10:21:39.0945487Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-02T10:39:25.1186118Z"}}' @@ -8002,7 +8002,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":100.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=e157df4b-c2b4-4d03-b2bc-b85f6570ee8d;IngestionEndpoint=https://eastus-3.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_asc_update.yaml b/src/spring/azext_spring/tests/latest/recordings/test_asc_update.yaml index 6e957f574c2..4cf107fd198 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_asc_update.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_asc_update.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T02:38:36.9604789Z"}}' @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -117,13 +117,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/2fa1119f-4645-4aed-a55d-07e9abf2c8d1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/2fa1119f-4645-4aed-a55d-07e9abf2c8d1?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -135,7 +135,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/2fa1119f-4645-4aed-a55d-07e9abf2c8d1/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/2fa1119f-4645-4aed-a55d-07e9abf2c8d1/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -167,7 +167,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:38:43.7711702Z"}}' @@ -217,7 +217,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -265,7 +265,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:38:43.7711702Z"}}' @@ -315,7 +315,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -363,7 +363,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:38:43.7711702Z"}}' @@ -413,7 +413,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -461,7 +461,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:38:43.7711702Z"}}' @@ -511,7 +511,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -632,13 +632,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/78d5b0c8-e992-4841-b2df-7e6147c546b5?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/78d5b0c8-e992-4841-b2df-7e6147c546b5?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -650,7 +650,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/78d5b0c8-e992-4841-b2df-7e6147c546b5/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/78d5b0c8-e992-4841-b2df-7e6147c546b5/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -682,7 +682,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:03.751309Z"}}' @@ -732,7 +732,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -780,7 +780,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:03.751309Z"}}' @@ -830,7 +830,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -878,7 +878,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:03.751309Z"}}' @@ -928,7 +928,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -976,7 +976,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:03.751309Z"}}' @@ -1026,7 +1026,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1078,13 +1078,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/737f14e7-fb8d-4fb9-bbcc-cde8c77e0b6c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/737f14e7-fb8d-4fb9-bbcc-cde8c77e0b6c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1096,7 +1096,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/737f14e7-fb8d-4fb9-bbcc-cde8c77e0b6c/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/737f14e7-fb8d-4fb9-bbcc-cde8c77e0b6c/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1128,7 +1128,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:20.0728226Z"}}' @@ -1178,7 +1178,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1226,7 +1226,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:20.0728226Z"}}' @@ -1276,7 +1276,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1324,7 +1324,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:20.0728226Z"}}' @@ -1374,7 +1374,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1422,7 +1422,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:20.0728226Z"}}' @@ -1472,7 +1472,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1593,13 +1593,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/de453699-27ed-49ba-a213-6e6e7213071b?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/de453699-27ed-49ba-a213-6e6e7213071b?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1611,7 +1611,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/de453699-27ed-49ba-a213-6e6e7213071b/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/de453699-27ed-49ba-a213-6e6e7213071b/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1643,7 +1643,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:38.1703483Z"}}' @@ -1693,7 +1693,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1741,7 +1741,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:38.1703483Z"}}' @@ -1791,7 +1791,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1839,7 +1839,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:38.1703483Z"}}' @@ -1889,7 +1889,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -1937,7 +1937,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:39:38.1703483Z"}}' @@ -1987,7 +1987,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2039,7 +2039,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"SubscriptionRequestsThrottled","message":"Number @@ -2088,13 +2088,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/ee974dda-ed60-4a42-9efd-44f7f6f813fb?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/ee974dda-ed60-4a42-9efd-44f7f6f813fb?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2106,7 +2106,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/ee974dda-ed60-4a42-9efd-44f7f6f813fb/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/ee974dda-ed60-4a42-9efd-44f7f6f813fb/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2138,7 +2138,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:16.0470942Z"}}' @@ -2188,7 +2188,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2236,7 +2236,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:16.0470942Z"}}' @@ -2286,7 +2286,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2334,7 +2334,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:16.0470942Z"}}' @@ -2384,7 +2384,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2432,7 +2432,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:16.0470942Z"}}' @@ -2482,7 +2482,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2535,13 +2535,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/efa616a3-f4c0-498f-a9f0-f0b6ae13e226?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/efa616a3-f4c0-498f-a9f0-f0b6ae13e226?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2553,7 +2553,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/efa616a3-f4c0-498f-a9f0-f0b6ae13e226/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/efa616a3-f4c0-498f-a9f0-f0b6ae13e226/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2585,7 +2585,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:34.4117278Z"}}' @@ -2635,7 +2635,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2683,7 +2683,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:34.4117278Z"}}' @@ -2733,7 +2733,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2781,7 +2781,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:34.4117278Z"}}' @@ -2831,7 +2831,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2879,7 +2879,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:34.4117278Z"}}' @@ -2929,7 +2929,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -2981,13 +2981,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/abbcf879-525c-4bc9-9262-3955a501e9d8?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/abbcf879-525c-4bc9-9262-3955a501e9d8?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2999,7 +2999,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/abbcf879-525c-4bc9-9262-3955a501e9d8/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/abbcf879-525c-4bc9-9262-3955a501e9d8/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -3031,7 +3031,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:50.2507467Z"}}' @@ -3081,7 +3081,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3129,7 +3129,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:50.2507467Z"}}' @@ -3179,7 +3179,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3227,7 +3227,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:50.2507467Z"}}' @@ -3277,7 +3277,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3325,7 +3325,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:40:50.2507467Z"}}' @@ -3375,7 +3375,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3428,13 +3428,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/d0fffb87-68dc-4832-a879-33ea3e9bd5f4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest10/operationId/d0fffb87-68dc-4832-a879-33ea3e9bd5f4?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -3446,7 +3446,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/d0fffb87-68dc-4832-a879-33ea3e9bd5f4/Spring/cli-unittest10?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/d0fffb87-68dc-4832-a879-33ea3e9bd5f4/Spring/cli-unittest10?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -3478,7 +3478,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:41:05.3965423Z"}}' @@ -3528,7 +3528,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3576,7 +3576,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:41:05.3965423Z"}}' @@ -3626,7 +3626,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' @@ -3674,7 +3674,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f7b0f257e39f4fb694b260c45570ae39","networkProfile":{"outboundIPs":{"publicIPs":["20.207.82.238","20.207.87.171"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest10.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10","name":"cli-unittest10","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T02:14:44.8424799Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:41:05.3965423Z"}}' @@ -3724,7 +3724,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest10/monitoringSettings/default","name":"default"}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_az_asc_create.yaml b/src/spring/azext_spring/tests/latest/recordings/test_az_asc_create.yaml index 2c4900d1597..618ae529b1a 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_az_asc_create.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_az_asc_create.yaml @@ -19,7 +19,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2euap/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2euap/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -74,13 +74,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":true,"version":3,"serviceId":"9494bfac41e64e708fb104eeca7fffe1","powerState":"Running","fqdn":"cli-unittest-az1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1","name":"cli-unittest-az1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:20:00.760483Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:20:00.760483Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -92,7 +92,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationResults/1d1099e7-96a8-4770-83de-952c2ae3766f/Spring/cli-unittest-az1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationResults/1d1099e7-96a8-4770-83de-952c2ae3766f/Spring/cli-unittest-az1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -124,7 +124,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -172,7 +172,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -220,7 +220,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -268,7 +268,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -316,7 +316,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -364,7 +364,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -412,7 +412,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -460,7 +460,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -508,7 +508,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -556,7 +556,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -604,7 +604,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -652,7 +652,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -700,7 +700,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -748,7 +748,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -796,7 +796,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -844,7 +844,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -892,7 +892,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -940,7 +940,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -988,7 +988,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Running","startTime":"2022-09-07T11:20:01.5257037Z"}' @@ -1036,7 +1036,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/1d1099e7-96a8-4770-83de-952c2ae3766f","name":"1d1099e7-96a8-4770-83de-952c2ae3766f","status":"Succeeded","startTime":"2022-09-07T11:20:01.5257037Z","endTime":"2022-09-07T11:23:50.6265751Z"}' @@ -1084,7 +1084,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":true,"version":3,"serviceId":"9494bfac41e64e708fb104eeca7fffe1","networkProfile":{"outboundIPs":{"publicIPs":["20.102.165.31","20.102.165.43"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-az1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus2euap","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1","name":"cli-unittest-az1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:20:00.760483Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:20:00.760483Z"}}' @@ -1136,13 +1136,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-az1?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/ace8b8de-9796-45cb-a2ee-ee0358a57102?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/cli-unittest-az1/operationId/ace8b8de-9796-45cb-a2ee-ee0358a57102?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1152,7 +1152,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationResults/ace8b8de-9796-45cb-a2ee-ee0358a57102/Spring/cli-unittest-az1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationResults/ace8b8de-9796-45cb-a2ee-ee0358a57102/Spring/cli-unittest-az1?api-version=2024-05-01-preview pragma: - no-cache request-context: diff --git a/src/spring/azext_spring/tests/latest/recordings/test_bind_cert_to_domain.yaml b/src/spring/azext_spring/tests/latest/recordings/test_bind_cert_to_domain.yaml index 80a0ce07149..1d89c22077f 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_bind_cert_to_domain.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_bind_cert_to_domain.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"fe42b1dfecc34bb8b0c8a0c4974c4f40","networkProfile":{"outboundIPs":{"publicIPs":["20.207.109.29","20.219.43.135"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T06:30:25.7818167Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T06:42:36.4133829Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:07.2072858Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:07.2072858Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2ab05aba-b0e2-435d-8522-4843e4ede780/Spring/test-custom-domain?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2ab05aba-b0e2-435d-8522-4843e4ede780/Spring/test-custom-domain?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780","name":"2ab05aba-b0e2-435d-8522-4843e4ede780","status":"Running","startTime":"2023-03-20T08:24:07.7009085Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/2ab05aba-b0e2-435d-8522-4843e4ede780","name":"2ab05aba-b0e2-435d-8522-4843e4ede780","status":"Succeeded","startTime":"2023-03-20T08:24:07.7009085Z","endTime":"2023-03-20T08:24:14.35032Z"}' @@ -262,7 +262,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:07.2072858Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:07.2072858Z"}}' @@ -319,13 +319,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -337,7 +337,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/794e08fe-8198-4842-88dc-931013389c08/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/794e08fe-8198-4842-88dc-931013389c08/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -369,7 +369,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08","name":"794e08fe-8198-4842-88dc-931013389c08","status":"Running","startTime":"2023-03-20T08:24:23.8483747Z"}' @@ -422,13 +422,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:07.2072858Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:24.5464154Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -440,7 +440,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/86ebf729-2508-49f5-8754-53fd50f319d7/Spring/test-custom-domain?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/86ebf729-2508-49f5-8754-53fd50f319d7/Spring/test-custom-domain?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -472,7 +472,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7","name":"86ebf729-2508-49f5-8754-53fd50f319d7","status":"Running","startTime":"2023-03-20T08:24:25.0491855Z"}' @@ -520,7 +520,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08","name":"794e08fe-8198-4842-88dc-931013389c08","status":"Running","startTime":"2023-03-20T08:24:23.8483747Z"}' @@ -568,7 +568,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-custom-domain/operationId/86ebf729-2508-49f5-8754-53fd50f319d7","name":"86ebf729-2508-49f5-8754-53fd50f319d7","status":"Succeeded","startTime":"2023-03-20T08:24:25.0491855Z","endTime":"2023-03-20T08:24:31.3373424Z"}' @@ -616,7 +616,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:07.2072858Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:24.5464154Z"}}' @@ -666,7 +666,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08","name":"794e08fe-8198-4842-88dc-931013389c08","status":"Running","startTime":"2023-03-20T08:24:23.8483747Z"}' @@ -714,7 +714,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/794e08fe-8198-4842-88dc-931013389c08","name":"794e08fe-8198-4842-88dc-931013389c08","status":"Succeeded","startTime":"2023-03-20T08:24:23.8483747Z","endTime":"2023-03-20T08:24:48.5767086Z"}' @@ -762,7 +762,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}' @@ -812,7 +812,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:07.2072858Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:24.5464154Z"}}' @@ -862,7 +862,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -917,13 +917,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net/","keyVaultCertName":"cli-unittest","excludePrivateKey":false,"provisioningState":"Creating","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:05.051986Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:05.051986Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -935,7 +935,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2f7647fe-0770-4aef-a357-2414b2d5c926/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2f7647fe-0770-4aef-a357-2414b2d5c926/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -967,7 +967,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926","name":"2f7647fe-0770-4aef-a357-2414b2d5c926","status":"Running","startTime":"2023-03-20T08:25:06.2293404Z"}' @@ -1015,7 +1015,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2f7647fe-0770-4aef-a357-2414b2d5c926","name":"2f7647fe-0770-4aef-a357-2414b2d5c926","status":"Succeeded","startTime":"2023-03-20T08:25:06.2293404Z","endTime":"2023-03-20T08:25:14.6608195Z"}' @@ -1063,7 +1063,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"9f2205d5d2ca43ea97c3516dec1e2e06","excludePrivateKey":false,"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","issuer":"*.asc-test.net","expirationDate":"2023-10-01T04:48:33.000+00:00","activateDate":"2022-10-01T04:38:33.000+00:00","subjectName":"*.asc-test.net","dnsNames":["cli.asc-test.net"],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:05.051986Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:05.051986Z"}}' @@ -1111,7 +1111,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"9f2205d5d2ca43ea97c3516dec1e2e06","excludePrivateKey":false,"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","issuer":"*.asc-test.net","expirationDate":"2023-10-01T04:48:33.000+00:00","activateDate":"2022-10-01T04:38:33.000+00:00","subjectName":"*.asc-test.net","dnsNames":["cli.asc-test.net"],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:05.051986Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:05.051986Z"}}' @@ -1159,7 +1159,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"thumbprint":"d4de20d05e66fc53fe1a50882c78db2852cae474","issuer":"Baltimore @@ -1211,7 +1211,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -1261,7 +1261,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"fe42b1dfecc34bb8b0c8a0c4974c4f40","networkProfile":{"outboundIPs":{"publicIPs":["20.207.109.29","20.219.43.135"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T06:30:25.7818167Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T06:42:36.4133829Z"}}' @@ -1315,13 +1315,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:31.023564Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1333,7 +1333,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1365,7 +1365,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9","name":"9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9","status":"Running","startTime":"2023-03-20T08:25:31.5533347Z"}' @@ -1413,7 +1413,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9","name":"9cd5cd5b-861b-4dff-ac52-7317f2c8e8d9","status":"Succeeded","startTime":"2023-03-20T08:25:31.5533347Z","endTime":"2023-03-20T08:25:37.8843954Z"}' @@ -1461,7 +1461,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"appName":"test-custom-domain","provisioningState":"Succeeded"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:31.023564Z"}}' @@ -1509,7 +1509,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -1559,7 +1559,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"appName":"test-custom-domain","provisioningState":"Succeeded"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:31.023564Z"}}' @@ -1607,7 +1607,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -1657,7 +1657,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"appName":"test-custom-domain","provisioningState":"Succeeded"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:31.023564Z"}}]}' @@ -1705,7 +1705,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -1755,7 +1755,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"9f2205d5d2ca43ea97c3516dec1e2e06","excludePrivateKey":false,"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","issuer":"*.asc-test.net","expirationDate":"2023-10-01T04:48:33.000+00:00","activateDate":"2022-10-01T04:38:33.000+00:00","subjectName":"*.asc-test.net","dnsNames":["cli.asc-test.net"],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:05.051986Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:05.051986Z"}}' @@ -1808,13 +1808,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","certName":"test-cert","provisioningState":"Updating"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:59.625522Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1826,7 +1826,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/9b91fad6-7c3e-44bb-92a5-34c772f7476f/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/9b91fad6-7c3e-44bb-92a5-34c772f7476f/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1858,7 +1858,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f","name":"9b91fad6-7c3e-44bb-92a5-34c772f7476f","status":"Running","startTime":"2023-03-20T08:26:00.1321672Z"}' @@ -1906,7 +1906,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/9b91fad6-7c3e-44bb-92a5-34c772f7476f","name":"9b91fad6-7c3e-44bb-92a5-34c772f7476f","status":"Succeeded","startTime":"2023-03-20T08:26:00.1321672Z","endTime":"2023-03-20T08:26:07.9587157Z"}' @@ -1954,7 +1954,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","appName":"test-custom-domain","certName":"test-cert","provisioningState":"Succeeded"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:59.625522Z"}}' @@ -2002,7 +2002,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -2052,7 +2052,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","appName":"test-custom-domain","certName":"test-cert","provisioningState":"Succeeded"},"type":"Microsoft.AppPlatform/Spring/apps/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net","name":"clitest.asc-test.net","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:31.023564Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:59.625522Z"}}' @@ -2102,13 +2102,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2118,7 +2118,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/b2293f0e-f352-446a-a37e-a359a92368df/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/b2293f0e-f352-446a-a37e-a359a92368df/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2150,7 +2150,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df","name":"b2293f0e-f352-446a-a37e-a359a92368df","status":"Running","startTime":"2023-03-20T08:26:19.1851634Z"}' @@ -2198,7 +2198,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/b2293f0e-f352-446a-a37e-a359a92368df","name":"b2293f0e-f352-446a-a37e-a359a92368df","status":"Succeeded","startTime":"2023-03-20T08:26:19.1851634Z","endTime":"2023-03-20T08:26:25.4803953Z"}' @@ -2246,7 +2246,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-custom-domain-default-18-774fff7d67-zjf2v","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-20T08:24:25Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/deployments/default","name":"default","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:24:23.006099Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:24:23.006099Z"}}]}' @@ -2296,7 +2296,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-custom-domain/domains/clitest.asc-test.net?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"CustomDomain ''clitest.asc-test.net'' @@ -2341,7 +2341,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"9f2205d5d2ca43ea97c3516dec1e2e06","excludePrivateKey":false,"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","issuer":"*.asc-test.net","expirationDate":"2023-10-01T04:48:33.000+00:00","activateDate":"2022-10-01T04:38:33.000+00:00","subjectName":"*.asc-test.net","dnsNames":["cli.asc-test.net"],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"shiqiu@microsoft.com","createdByType":"User","createdAt":"2023-03-20T08:25:05.051986Z","lastModifiedBy":"shiqiu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-20T08:25:05.051986Z"}}' @@ -2391,13 +2391,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2407,7 +2407,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2c123844-de87-4635-a8fa-630048d53965/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/2c123844-de87-4635-a8fa-630048d53965/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2439,7 +2439,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965","name":"2c123844-de87-4635-a8fa-630048d53965","status":"Running","startTime":"2023-03-20T08:26:37.1296635Z"}' @@ -2487,7 +2487,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/2c123844-de87-4635-a8fa-630048d53965","name":"2c123844-de87-4635-a8fa-630048d53965","status":"Succeeded","startTime":"2023-03-20T08:26:37.1296635Z","endTime":"2023-03-20T08:26:43.348362Z"}' @@ -2535,7 +2535,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"Certificate ''test-cert'' not diff --git a/src/spring/azext_spring/tests/latest/recordings/test_blue_green_deployment.yaml b/src/spring/azext_spring/tests/latest/recordings/test_blue_green_deployment.yaml index 2c10b86fb4d..06dd8e7e1c8 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_blue_green_deployment.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_blue_green_deployment.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -25,9 +25,9 @@ interactions: content-length: - '241' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:05 GMT + - Mon, 15 Apr 2024 12:47:17 GMT expires: - '-1' pragma: @@ -36,12 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: EABA98DA7DB24747A5D9CDE349C70359 Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:16Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 404 message: Not Found @@ -59,21 +63,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8efbf1b6af7c4c5d81e076f2582752e8","networkProfile":{"outboundIPs":{"publicIPs":["172.166.81.238","172.166.84.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:35:07.9196745Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:35:07.9196745Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '830' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:06 GMT + - Mon, 15 Apr 2024 12:47:18 GMT expires: - '-1' pragma: @@ -82,16 +86,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 400C8677F6244F348D90093C8463C37A Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -115,39 +119,43 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:06.9844409Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:18.7203814Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/268f7f8e-ab4d-4178-97e0-0aedd0a51646?api-version=2024-01-01-preview&t=638411458274376033&c=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kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=ehpMkm6RiseXWd_2__yxVTvjYquiCPHVpmvw1UadOTVp42BMybT_VFQKos5EVIWxei4T8yfekoy_W1kBwR1bO438TwpsFgTHpO-O3PohHEbJYdwbIRUALLHeF5E_KQnL8gmXTquDLnobV-l8gVb6Oqt-w7581e1GsW9JOvOdFNNayiG5TARp9VRjiZt_n5e67a70FulhpdZre9G2HeNG8FYLLYViZ_ob2RZ0iNmSz8oUMNSgRLjQm0Nn2g4B8dcij1GPId0hbm5ypDztrjXhH-mQLWQK-yQnz_uw4clh9y9T4zhyC9RlcHqguS7xgKCbnu8fDKvnYhGlIENByU5G9w&h=SsD__GKs2-4nyJpuMLl9pIVtkQiugsPuWKbucoT6dY0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/54dbd9c3-fa78-41b1-a859-b74cf38eebd0?api-version=2024-05-01-preview&t=638487820397047241&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbn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uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=sbIuBsEV3DakDJ8iz91LNLAR2_Pg3qUpIIBlxsCjpGUCeBq2regJfR-JmLmh_HyYCRYjw453YHXfTXqhc4oe6kVb6n2wd1v-wHzulGlnU-CmHhSA4F_lIc8sUPrbBGivdXQoEQf1YYzc850Xr3RNHqlVdKcoJMaO7cWVtBjEOli3OtOxfWZ0ZlnQEnUYiuPbNrtDBTK2X4owwQ5SXimWwSq_KfAFPhOwjrDehcRXa472855rZxUpZfXGClF9UNc1VMuXGGkGQeyxMK2yhnQgmA9NZtory7IAuBGP6d2sk-1JL2lPWyhZEgoQszkMW2JAwRk3HUB9bw7QUynAYlHUpg&h=C0KvgfhmdrdwjeJxtmub1_dYN-A4AQ0-GebEU9hO5jc cache-control: - no-cache content-length: - - '923' + - '935' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:07 GMT + - Mon, 15 Apr 2024 12:47:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/268f7f8e-ab4d-4178-97e0-0aedd0a51646/Spring/clitest000003?api-version=2024-01-01-preview&t=638411458274532172&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oT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8PSINKbZHaSfO1Lnb0YZxrhLSRw0n7Tj6mHH6S_xZyMzKgYyshXk7PPsWHrlEVA-NO_G8qxcv7ovTU9MNYI_QFmh2Wb_EtLXwbAsNEhs1XAk8tEKDwfrlqrc0cAPY6ZcUn3ApYXcZ9kUGRN-Uo5GJrMx3xRicepkrH3qSGtlnUufGU8xpQen-gScjbF5UyqcvtkrPViC8VWjIBpFdbVKZIFZhaLkxh4hfimS0V31WEboBwwfXdCrOFfzRrkWXeMDqA&h=D7U_NcgYaRV5LNGCm0P-GwNcKU8MAVzquVAcIhpYpjM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/54dbd9c3-fa78-41b1-a859-b74cf38eebd0/Spring/clitest000003?api-version=2024-05-01-preview&t=638487820397203780&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJL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eEb9lHZZj2CZShf4YYMwtE2Gpp3msJhT_f0k8Ch2Lk pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 96697E5B30CA45E3B0E6E5BA76A9FF96 Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:18Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -165,21 +173,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/268f7f8e-ab4d-4178-97e0-0aedd0a51646?api-version=2024-01-01-preview&t=638411458274376033&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3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438TwpsFgTHpO-O3PohHEbJYdwbIRUALLHeF5E_KQnL8gmXTquDLnobV-l8gVb6Oqt-w7581e1GsW9JOvOdFNNayiG5TARp9VRjiZt_n5e67a70FulhpdZre9G2HeNG8FYLLYViZ_ob2RZ0iNmSz8oUMNSgRLjQm0Nn2g4B8dcij1GPId0hbm5ypDztrjXhH-mQLWQK-yQnz_uw4clh9y9T4zhyC9RlcHqguS7xgKCbnu8fDKvnYhGlIENByU5G9w&h=SsD__GKs2-4nyJpuMLl9pIVtkQiugsPuWKbucoT6dY0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/54dbd9c3-fa78-41b1-a859-b74cf38eebd0?api-version=2024-05-01-preview&t=638487820397047241&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixH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drdwjeJxtmub1_dYN-A4AQ0-GebEU9hO5jc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/268f7f8e-ab4d-4178-97e0-0aedd0a51646","name":"268f7f8e-ab4d-4178-97e0-0aedd0a51646","status":"Succeeded","startTime":"2024-01-18T03:37:07.3234446Z","endTime":"2024-01-18T03:37:07.6544052Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/54dbd9c3-fa78-41b1-a859-b74cf38eebd0","name":"54dbd9c3-fa78-41b1-a859-b74cf38eebd0","status":"Succeeded","startTime":"2024-04-15T12:47:19.6171947Z","endTime":"2024-04-15T12:47:20.5990628Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '376' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:07 GMT + - Mon, 15 Apr 2024 12:47:20 GMT expires: - '-1' pragma: @@ -188,14 +196,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DD4DBD47A8104FE08790E003A9E6B6AF Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:19Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -213,21 +221,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:06.9844409Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:18.7203814Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1039' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:08 GMT + - Mon, 15 Apr 2024 12:47:21 GMT expires: - '-1' pragma: @@ -236,16 +244,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: F50B3A10067A4BEBB21B5FAB79B71469 Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:20Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -270,39 +278,43 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:13.0314446Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.1307245Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f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rsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=ZttjSoB0xokb1DGbxT2vI8GNTiQoxuV05ec5XmdI2jUiV4PcF1xPlON2ef8QQSU3uKBoEwEkQ1OqXR1C2v6PLoSIU-65pww83qekn_NX6SQ7zWxOy9fyVAhrDZUBmIHkzDoiIKxC0TJOiURZYVDrzBSut5RzuTYWke3k25Llga4wzFmyzeq5R9hlHUsPpKvrNvmGvrPOVzj-Ck8C2KWYSls7p7TbXZ-xswH_FK1_zmpur_U_e6K6CNLqMxTuj_69wL-HLghk0gjS6Son18pi4UqjFSNe-FzUkVeTRfdwVnlgXSKf-yrFA1Zke4Uk2uPHyrwx-sspa5yUpyNB0zv7UQ&h=T8tD-Nywzm3qgL6AoiY_WBOTWvpvFveGEHBrmBtmEOg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962?api-version=2024-05-01-preview&t=638487820463182982&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4w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aYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=jOPQz1DeZRV-GsY1eAorrzYEvIUscimJsoQX_vaeM4hQLkzs54kBC7YDJvUT1ZVvKgjtHFuubf15L4xKvWgdj2Dcmxe1TGlqkGW2WcOe4IJFWR9UWwlfdynKOVU2v7PzKVfrg3zfXJmF49HHd2A8jZKZqKTwPg8iGz5hL3-kNB0Crr-NhJCDpwvwOEnzglFJoo02NroMoCVjV4JRhVbFdN2lX4469HyoUksnvbGSghji_YjXd-_jhE2xeHq-ayxunLZHWEz5upKqwR4-ZDkbLOuklRD_Kh-xCB3l1hir48mTY1eZRMKQ9kZfW39YvUd2-LDrGEgi6tSEHYofYe1nNw&h=X_xMP6phDfPJvrMqBkydEpqKMSUpjVZgUXdZ8wwneWI cache-control: - no-cache content-length: - - '857' + - '843' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:13 GMT + - Mon, 15 Apr 2024 12:47:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/f0ebe7e6-45bf-4839-8936-f8407ec9a35f/Spring/default?api-version=2024-01-01-preview&t=638411458336720111&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7W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dZ1Z4l4jIWuPoE8y7wZataMyCcFN5NFNmiQDFaUOLWi_UOZ2YpFkw73-ukQU6PcufZCpBhFyhqsxxS3JuE6WBO3sX4tOYw0l3RejGvbuMKfxSJDYJmh6-5ADfZdirnlZIkV9PWSAjHkrhn_JxPTbRSkeFzyRtuT9I4b3_91LRxTj_pyY9ILepkyeFapgrTFZIT62QrhQK6PNwd37yKGx7ChOJtOPX5UKppjz-Pka1Ji35pFv-wu081-Kz-nNzT6Kf_pOTNCPIhkxV0f7Cj0WvrMiAs_wmrw&h=PtO6d_sM386E5j-_zN9brV3CeEJN2z7JSphzL_LLpI4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/b7854661-d952-427c-803b-f56f01440962/Spring/default?api-version=2024-05-01-preview&t=638487820463182982&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwz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ZJMYqfpp3YCVQ&h=9L6XDNgvNhkZmm6g5MZSdRkLHT3SS6Hf3LTIt2y0udM pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: F4B3CA859A7343A7B752D501C4A137C9 Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:24Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -320,21 +332,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f?api-version=2024-01-01-preview&t=638411458336563856&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6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EwEkQ1OqXR1C2v6PLoSIU-65pww83qekn_NX6SQ7zWxOy9fyVAhrDZUBmIHkzDoiIKxC0TJOiURZYVDrzBSut5RzuTYWke3k25Llga4wzFmyzeq5R9hlHUsPpKvrNvmGvrPOVzj-Ck8C2KWYSls7p7TbXZ-xswH_FK1_zmpur_U_e6K6CNLqMxTuj_69wL-HLghk0gjS6Son18pi4UqjFSNe-FzUkVeTRfdwVnlgXSKf-yrFA1Zke4Uk2uPHyrwx-sspa5yUpyNB0zv7UQ&h=T8tD-Nywzm3qgL6AoiY_WBOTWvpvFveGEHBrmBtmEOg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962?api-version=2024-05-01-preview&t=638487820463182982&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJ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w&h=X_xMP6phDfPJvrMqBkydEpqKMSUpjVZgUXdZ8wwneWI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f","name":"f0ebe7e6-45bf-4839-8936-f8407ec9a35f","status":"Running","startTime":"2024-01-18T03:37:13.5169627Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962","name":"b7854661-d952-427c-803b-f56f01440962","status":"Running","startTime":"2024-04-15T12:47:26.1307533Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:13 GMT + - Mon, 15 Apr 2024 12:47:27 GMT expires: - '-1' pragma: @@ -343,14 +355,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9AD090BD5C094CCCA4CDD4F03C756070 Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:26Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -368,21 +380,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f?api-version=2024-01-01-preview&t=638411458336563856&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ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PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=ZttjSoB0xokb1DGbxT2vI8GNTiQoxuV05ec5XmdI2jUiV4PcF1xPlON2ef8QQSU3uKBoEwEkQ1OqXR1C2v6PLoSIU-65pww83qekn_NX6SQ7zWxOy9fyVAhrDZUBmIHkzDoiIKxC0TJOiURZYVDrzBSut5RzuTYWke3k25Llga4wzFmyzeq5R9hlHUsPpKvrNvmGvrPOVzj-Ck8C2KWYSls7p7TbXZ-xswH_FK1_zmpur_U_e6K6CNLqMxTuj_69wL-HLghk0gjS6Son18pi4UqjFSNe-FzUkVeTRfdwVnlgXSKf-yrFA1Zke4Uk2uPHyrwx-sspa5yUpyNB0zv7UQ&h=T8tD-Nywzm3qgL6AoiY_WBOTWvpvFveGEHBrmBtmEOg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962?api-version=2024-05-01-preview&t=638487820463182982&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU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2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=jOPQz1DeZRV-GsY1eAorrzYEvIUscimJsoQX_vaeM4hQLkzs54kBC7YDJvUT1ZVvKgjtHFuubf15L4xKvWgdj2Dcmxe1TGlqkGW2WcOe4IJFWR9UWwlfdynKOVU2v7PzKVfrg3zfXJmF49HHd2A8jZKZqKTwPg8iGz5hL3-kNB0Crr-NhJCDpwvwOEnzglFJoo02NroMoCVjV4JRhVbFdN2lX4469HyoUksnvbGSghji_YjXd-_jhE2xeHq-ayxunLZHWEz5upKqwR4-ZDkbLOuklRD_Kh-xCB3l1hir48mTY1eZRMKQ9kZfW39YvUd2-LDrGEgi6tSEHYofYe1nNw&h=X_xMP6phDfPJvrMqBkydEpqKMSUpjVZgUXdZ8wwneWI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f","name":"f0ebe7e6-45bf-4839-8936-f8407ec9a35f","status":"Running","startTime":"2024-01-18T03:37:13.5169627Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962","name":"b7854661-d952-427c-803b-f56f01440962","status":"Running","startTime":"2024-04-15T12:47:26.1307533Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:23 GMT + - Mon, 15 Apr 2024 12:47:38 GMT expires: - '-1' pragma: @@ -391,14 +403,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C43DF60B11A04C5E8BC0A49F0C51C44C Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:37Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -416,21 +428,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f?api-version=2024-01-01-preview&t=638411458336563856&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8A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YWke3k25Llga4wzFmyzeq5R9hlHUsPpKvrNvmGvrPOVzj-Ck8C2KWYSls7p7TbXZ-xswH_FK1_zmpur_U_e6K6CNLqMxTuj_69wL-HLghk0gjS6Son18pi4UqjFSNe-FzUkVeTRfdwVnlgXSKf-yrFA1Zke4Uk2uPHyrwx-sspa5yUpyNB0zv7UQ&h=T8tD-Nywzm3qgL6AoiY_WBOTWvpvFveGEHBrmBtmEOg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962?api-version=2024-05-01-preview&t=638487820463182982&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGC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4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/f0ebe7e6-45bf-4839-8936-f8407ec9a35f","name":"f0ebe7e6-45bf-4839-8936-f8407ec9a35f","status":"Succeeded","startTime":"2024-01-18T03:37:13.5169627Z","endTime":"2024-01-18T03:37:34.7839993Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962","name":"b7854661-d952-427c-803b-f56f01440962","status":"Running","startTime":"2024-04-15T12:47:26.1307533Z"}' headers: cache-control: - no-cache content-length: - - '365' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:34 GMT + - Mon, 15 Apr 2024 12:47:48 GMT expires: - '-1' pragma: @@ -439,14 +451,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 94E428E828AC4C57AD4C876DED42607C Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:48Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -464,21 +476,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962?api-version=2024-05-01-preview&t=638487820463182982&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20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PwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=jOPQz1DeZRV-GsY1eAorrzYEvIUscimJsoQX_vaeM4hQLkzs54kBC7YDJvUT1ZVvKgjtHFuubf15L4xKvWgdj2Dcmxe1TGlqkGW2WcOe4IJFWR9UWwlfdynKOVU2v7PzKVfrg3zfXJmF49HHd2A8jZKZqKTwPg8iGz5hL3-kNB0Crr-NhJCDpwvwOEnzglFJoo02NroMoCVjV4JRhVbFdN2lX4469HyoUksnvbGSghji_YjXd-_jhE2xeHq-ayxunLZHWEz5upKqwR4-ZDkbLOuklRD_Kh-xCB3l1hir48mTY1eZRMKQ9kZfW39YvUd2-LDrGEgi6tSEHYofYe1nNw&h=X_xMP6phDfPJvrMqBkydEpqKMSUpjVZgUXdZ8wwneWI response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:13.0314446Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/b7854661-d952-427c-803b-f56f01440962","name":"b7854661-d952-427c-803b-f56f01440962","status":"Succeeded","startTime":"2024-04-15T12:47:26.1307533Z","endTime":"2024-04-15T12:47:50.4806569Z"}' headers: cache-control: - no-cache content-length: - - '1365' + - '370' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:37 GMT + - Mon, 15 Apr 2024 12:47:59 GMT expires: - '-1' pragma: @@ -487,16 +499,64 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 047A519ED099411AB3E0D2016F8BA513 Ref B: MAA201060514019 Ref C: 2024-04-15T12:47:59Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app create + Connection: + - keep-alive + ParameterSetName: + - -n -g -s + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.1307245Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1351' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:02 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 414D030D5C304D2D959B2620BF1B88DE Ref B: MAA201060514019 Ref C: 2024-04-15T12:48:00Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -514,21 +574,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:06.9844409Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:18.7203814Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1039' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:38 GMT + - Mon, 15 Apr 2024 12:48:07 GMT expires: - '-1' pragma: @@ -537,16 +597,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: F77CDC00B37C4C3B851558AE7EE9D2EB Ref B: MAA201060514019 Ref C: 2024-04-15T12:48:06Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -564,21 +624,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:13.0314446Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.1307245Z"}}]}' headers: cache-control: - no-cache content-length: - - '1377' + - '1363' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:41 GMT + - Mon, 15 Apr 2024 12:48:10 GMT expires: - '-1' pragma: @@ -587,16 +647,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: CB179C3609D44967944BCDC12131DFA1 Ref B: MAA201060514019 Ref C: 2024-04-15T12:48:08Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -614,21 +674,21 @@ interactions: ParameterSetName: - -n --app -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:13.0314446Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.1307245Z"}}' headers: cache-control: - no-cache content-length: - - '1365' + - '1351' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:45 GMT + - Mon, 15 Apr 2024 12:48:14 GMT expires: - '-1' pragma: @@ -637,16 +697,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 74C3274E49EE407C8FB325F051E9F824 Ref B: MAA201060514053 Ref C: 2024-04-15T12:48:12Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -664,21 +724,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8efbf1b6af7c4c5d81e076f2582752e8","networkProfile":{"outboundIPs":{"publicIPs":["172.166.81.238","172.166.84.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:35:07.9196745Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:35:07.9196745Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '830' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:46 GMT + - Mon, 15 Apr 2024 12:48:16 GMT expires: - '-1' pragma: @@ -687,16 +747,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: D4BA8B89FE30428DAFF489B98505BB62 Ref B: MAA201060516025 Ref C: 2024-04-15T12:48:15Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -714,21 +774,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:13.0314446Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.1307245Z"}}]}' headers: cache-control: - no-cache content-length: - - '1377' + - '1363' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:50 GMT + - Mon, 15 Apr 2024 12:48:19 GMT expires: - '-1' pragma: @@ -737,16 +797,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: EF030E271284432BA86EA5B5396488DA Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -771,39 +831,43 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":false,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:51.0386057Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":false,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:20.2851484Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/b0ecd959-434d-4f33-a32a-53c5e412b9e3?api-version=2024-01-01-preview&t=638411458716323576&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtS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LaUqEGLp9xF6WkzBdaA4AYViHsiONJ5LUkh_yQENI0H8_qiVWSgFGFBicO2AQH5t9A0MoMqQA&h=eyQ19KeGKMKmC0pOMUpNK_UMLCr_j7fRQY4VTarm7Ow + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79?api-version=2024-05-01-preview&t=638487821015351734&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=I4rQnU_ThaQjG5RAIfv9IK1EuE83AmTTTRCk1ibkq7nIMEMrr9rDTISWknSe33-2ADBw5oAW_NyGyShqYwWvdk9QX-PLOWZqrZycbh3hFhbCOvxRfkDV8s8VaVp5Sedlz8gSyfIQylExrxZSOwKJ3BsWAJ4fzhHUebKyimAf3Q6sbnmF4IJqUgfr7x9o5qAg4-uMPjIV6hr2BkMDkKZWRyVJPsVmQru-qrdWnBhVmNn3Wx8Jep3lXeng8wSrkYWrB-bvsvCqFLJE0RNcXj8_W7GHSCF9wgKqmOnvAgHFtrhL6rISrJURm_5fQ5pkIIccyinxRgD60-F0Z6F204ZAgA&h=XSV5OgnqEF6SApOkWeQ26dC5BPTNXmKg_tb_o2_UWxw cache-control: - no-cache content-length: - - '854' + - '840' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:51 GMT + - Mon, 15 Apr 2024 12:48:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/b0ecd959-434d-4f33-a32a-53c5e412b9e3/Spring/green?api-version=2024-01-01-preview&t=638411458716323576&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5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ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=b_x77_uZ7Xi_ATmGiPghzGpDGBl_4Eez4OARt-rNosS6a88PUixc59ksckEAgYSXq_vfF-LBSG4e0LXsUZROfW4wSehuR2D7WZvnBGZWaW06ug9qujsU3179aqZR1_f3R5zncQkM3KwCpQQgkecIJYbwfW4eIhN97hhCHw7RLvSjiaBxhyoSRj9H1kwzDhK0rOSmY5CNcsF9xB9ayZvCrnov4nw2-6SwXBilsN0eUMZDyl7tisyEV5fhbKVHfYFcKP1hWFTv0KE0Pgh-_MsvHD1hNNtyI5IEo1LGnHvFFFOKXvFr6Dwajerejh4P0SWeZivqwDRzwX9ZsUA8zyBhNQ&h=u_f7GaNQe7HqhQJ3MKMbR24jZCaikyq4q0YBhmRdOQk + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/f48d50cf-9bb9-48e6-92c1-9baa6a402b79/Spring/green?api-version=2024-05-01-preview&t=638487821015351734&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGR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QrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=pR8Ytqx_te51uWhVKMNH0_4ZqeTHBZ0DIA0D3nt82rd8a3pBxc_Ql7wHrUFgzt4pd-t8QHPmMr-ewKKuNVhwEw_gzilx9RBgKL8swZWPWcXApetZaC4t2TKrKPq0UpwvJzP5AoUlabrs-O_VBWR-kCSlBcsnFe8M8i9n0y-U3k1NkuCGkN49vG75EVA7L6OHc9It8L2ZZjVovat-fMupta3Yys5c8kiWXCL_DH69AlYSsZCuTjHcoXraS2bA5_mCWVsPBTV22eot_ueEtKRPgMxaiMkkbBtDL5A0NAj2YuHGrBvskbx0LGdNsXKsLSYIOlJjhzuoZpURGFqv0HsvVw&h=82XknuSTSnxKm79Hhs3Qb3njiR56it2pKQRwzR51gYU pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 22736414DE49414A92E522F5892997FE Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:19Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -821,21 +885,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/b0ecd959-434d-4f33-a32a-53c5e412b9e3?api-version=2024-01-01-preview&t=638411458716323576&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0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dBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=UtgaI175u7iHFGO01HjN2Eby0MB7GkioyBeN3U3E5mypUDCxtDqE1jimyceyFzP7CmJkrtJYwXnODF9wc5glS5eoaZYTBXonJC4JeHnHc0W7e6Bn7UgJtlcgOUnqk-ekl0eX8SqF2isTw81gfhtYm2PGowBaQOyrs2PPJks6EGFyUN3LmkErpHs_mnYPqA6c8QiiEnXF08ODsSIMJsBJT0Cu0Xz7LAh6tgJxD-10HkMtlV4vyFcGi2SRjKTSmQJ25lx3-CcNu3YR7LaUqEGLp9xF6WkzBdaA4AYViHsiONJ5LUkh_yQENI0H8_qiVWSgFGFBicO2AQH5t9A0MoMqQA&h=eyQ19KeGKMKmC0pOMUpNK_UMLCr_j7fRQY4VTarm7Ow + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79?api-version=2024-05-01-preview&t=638487821015351734&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=I4rQnU_ThaQjG5RAIfv9IK1EuE83AmTTTRCk1ibkq7nIMEMrr9rDTISWknSe33-2ADBw5oAW_NyGyShqYwWvdk9QX-PLOWZqrZycbh3hFhbCOvxRfkDV8s8VaVp5Sedlz8gSyfIQylExrxZSOwKJ3BsWAJ4fzhHUebKyimAf3Q6sbnmF4IJqUgfr7x9o5qAg4-uMPjIV6hr2BkMDkKZWRyVJPsVmQru-qrdWnBhVmNn3Wx8Jep3lXeng8wSrkYWrB-bvsvCqFLJE0RNcXj8_W7GHSCF9wgKqmOnvAgHFtrhL6rISrJURm_5fQ5pkIIccyinxRgD60-F0Z6F204ZAgA&h=XSV5OgnqEF6SApOkWeQ26dC5BPTNXmKg_tb_o2_UWxw response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/b0ecd959-434d-4f33-a32a-53c5e412b9e3","name":"b0ecd959-434d-4f33-a32a-53c5e412b9e3","status":"Running","startTime":"2024-01-18T03:37:51.4839623Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79","name":"f48d50cf-9bb9-48e6-92c1-9baa6a402b79","status":"Running","startTime":"2024-04-15T12:48:21.3574436Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '325' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:37:51 GMT + - Mon, 15 Apr 2024 12:48:21 GMT expires: - '-1' pragma: @@ -844,14 +908,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6767333AC3FD4BB29E3B0DC305287986 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:21Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -869,21 +933,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/b0ecd959-434d-4f33-a32a-53c5e412b9e3?api-version=2024-01-01-preview&t=638411458716323576&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-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BaQOyrs2PPJks6EGFyUN3LmkErpHs_mnYPqA6c8QiiEnXF08ODsSIMJsBJT0Cu0Xz7LAh6tgJxD-10HkMtlV4vyFcGi2SRjKTSmQJ25lx3-CcNu3YR7LaUqEGLp9xF6WkzBdaA4AYViHsiONJ5LUkh_yQENI0H8_qiVWSgFGFBicO2AQH5t9A0MoMqQA&h=eyQ19KeGKMKmC0pOMUpNK_UMLCr_j7fRQY4VTarm7Ow + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79?api-version=2024-05-01-preview&t=638487821015351734&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAA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d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/b0ecd959-434d-4f33-a32a-53c5e412b9e3","name":"b0ecd959-434d-4f33-a32a-53c5e412b9e3","status":"Running","startTime":"2024-01-18T03:37:51.4839623Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79","name":"f48d50cf-9bb9-48e6-92c1-9baa6a402b79","status":"Running","startTime":"2024-04-15T12:48:21.3574436Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '325' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:01 GMT + - Mon, 15 Apr 2024 12:48:32 GMT expires: - '-1' pragma: @@ -892,14 +956,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C52FB33C1B9A4840AAA335901910260A Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:32Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -917,21 +981,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/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wIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=UtgaI175u7iHFGO01HjN2Eby0MB7GkioyBeN3U3E5mypUDCxtDqE1jimyceyFzP7CmJkrtJYwXnODF9wc5glS5eoaZYTBXonJC4JeHnHc0W7e6Bn7UgJtlcgOUnqk-ekl0eX8SqF2isTw81gfhtYm2PGowBaQOyrs2PPJks6EGFyUN3LmkErpHs_mnYPqA6c8QiiEnXF08ODsSIMJsBJT0Cu0Xz7LAh6tgJxD-10HkMtlV4vyFcGi2SRjKTSmQJ25lx3-CcNu3YR7LaUqEGLp9xF6WkzBdaA4AYViHsiONJ5LUkh_yQENI0H8_qiVWSgFGFBicO2AQH5t9A0MoMqQA&h=eyQ19KeGKMKmC0pOMUpNK_UMLCr_j7fRQY4VTarm7Ow + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79?api-version=2024-05-01-preview&t=638487821015351734&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwM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_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=I4rQnU_ThaQjG5RAIfv9IK1EuE83AmTTTRCk1ibkq7nIMEMrr9rDTISWknSe33-2ADBw5oAW_NyGyShqYwWvdk9QX-PLOWZqrZycbh3hFhbCOvxRfkDV8s8VaVp5Sedlz8gSyfIQylExrxZSOwKJ3BsWAJ4fzhHUebKyimAf3Q6sbnmF4IJqUgfr7x9o5qAg4-uMPjIV6hr2BkMDkKZWRyVJPsVmQru-qrdWnBhVmNn3Wx8Jep3lXeng8wSrkYWrB-bvsvCqFLJE0RNcXj8_W7GHSCF9wgKqmOnvAgHFtrhL6rISrJURm_5fQ5pkIIccyinxRgD60-F0Z6F204ZAgA&h=XSV5OgnqEF6SApOkWeQ26dC5BPTNXmKg_tb_o2_UWxw response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/green/operationId/b0ecd959-434d-4f33-a32a-53c5e412b9e3","name":"b0ecd959-434d-4f33-a32a-53c5e412b9e3","status":"Succeeded","startTime":"2024-01-18T03:37:51.4839623Z","endTime":"2024-01-18T03:38:07.2761479Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/green/operationId/f48d50cf-9bb9-48e6-92c1-9baa6a402b79","name":"f48d50cf-9bb9-48e6-92c1-9baa6a402b79","status":"Succeeded","startTime":"2024-04-15T12:48:21.3574436Z","endTime":"2024-04-15T12:48:38.5372813Z"}' headers: cache-control: - no-cache content-length: - - '363' + - '368' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:12 GMT + - Mon, 15 Apr 2024 12:48:43 GMT expires: - '-1' pragma: @@ -940,14 +1004,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A02893BBF0854BDCA3D4A5B0934DF980 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:43Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -965,21 +1029,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:51.0386057Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:20.2851484Z"}}' headers: cache-control: - no-cache content-length: - - '1360' + - '1346' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:14 GMT + - Mon, 15 Apr 2024 12:48:46 GMT expires: - '-1' pragma: @@ -988,16 +1052,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: EC21C54843934AC2AED45DA7C4838287 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:44Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1015,21 +1079,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:51.0386057Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:20.2851484Z"}}' headers: cache-control: - no-cache content-length: - - '1360' + - '1346' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:17 GMT + - Mon, 15 Apr 2024 12:48:49 GMT expires: - '-1' pragma: @@ -1038,16 +1102,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 4F87B6B64DB6485981CF28E37298BB2D Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:47Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1065,21 +1129,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8efbf1b6af7c4c5d81e076f2582752e8","networkProfile":{"outboundIPs":{"publicIPs":["172.166.81.238","172.166.84.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:35:07.9196745Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:35:07.9196745Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '830' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:18 GMT + - Mon, 15 Apr 2024 12:48:49 GMT expires: - '-1' pragma: @@ -1088,16 +1152,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: DEB831C4CEEA450195E0080439A47AA1 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:49Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1117,21 +1181,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: - string: '{"primaryKey":"KQ97r6EAcXifno7a99ViL2LSBeTeVbgZt49wkWa1b50ZAEIPzZvQL0jCDqxc3LIl","secondaryKey":"6stfzrfzXSwMnPkos0z8rMCz3t7bJImFZd8dHBdKHB6yOsU1W53V9aOl4FWR2Rto","primaryTestEndpoint":"https://primary:KQ97r6EAcXifno7a99ViL2LSBeTeVbgZt49wkWa1b50ZAEIPzZvQL0jCDqxc3LIl@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:6stfzrfzXSwMnPkos0z8rMCz3t7bJImFZd8dHBdKHB6yOsU1W53V9aOl4FWR2Rto@clitest000002.test.azuremicroservices.io","enabled":true}' + string: '{"primaryKey":"g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif","secondaryKey":"e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN","primaryTestEndpoint":"https://primary:g8Txb3WjhsLbmSTNRt00QSi7oJMugRsSvwrllEl6k9S9anvSrOG3624SObNEspif@clitest000002.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:e7KVYhTdOPRs7yhnDN0p9oA96TFjn8WtwAHJBRMzkJNP6sBji1m1ovwBKs0X1jIN@clitest000002.test.azuremicroservices.io","enabled":true}' headers: cache-control: - no-cache content-length: - '474' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:18 GMT + - Mon, 15 Apr 2024 12:48:51 GMT expires: - '-1' pragma: @@ -1140,16 +1204,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' + x-msedge-ref: + - 'Ref A: B9553A26127E45C8A192D4A038F8E029 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:50Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1167,21 +1231,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"8efbf1b6af7c4c5d81e076f2582752e8","networkProfile":{"outboundIPs":{"publicIPs":["172.166.81.238","172.166.84.115"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:35:07.9196745Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:35:07.9196745Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '830' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:19 GMT + - Mon, 15 Apr 2024 12:48:51 GMT expires: - '-1' pragma: @@ -1190,16 +1254,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 8CD1207BCC42427C9236B352A7704EE6 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:51Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1215,45 +1279,44 @@ interactions: User-Agent: - python-requests/2.31.0 method: GET - uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-green-15-7f7dd746d9-6d9rx?tailLines=500&limitBytes=1048576&sinceSeconds=300 + uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-green-15-677f4f64cb-8pknn?tailLines=500&limitBytes=1048576&sinceSeconds=300 response: body: string: "BUILD_IN_EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=https://clitest000002.svc.azuremicroservices.io/eureka/eureka\nBUILD_IN_SPRING_CLOUD_CONFIG_URI=https://clitest000002.svc.azuremicroservices.io/config\nBUILD_IN_SPRING_CLOUD_CONFIG_FAILFAST=true\n\n \ . ____ _ __ _ _\n /\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\\n( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\\n \\\\/ ___)| |_)| | | | | || (_| | ) ) ) )\n ' |____| .__|_| |_|_| |_\\__, | / / / /\n - =========|_|==============|___/=/_/_/_/\n :: Spring Boot :: (v2.7.14)\n\n2024-01-18 - 03:38:00.512 INFO 1 --- [ main] hello.Application : - Starting Application v1.0.0 using Java 11.0.20 on clitest000003-green-15-7f7dd746d9-6d9rx - with PID 1 (/app.jar started by cnb in /)\n2024-01-18 03:38:00.514 INFO 1 - --- [ main] hello.Application : No active - profile set, falling back to 1 default profile: \"default\"\n2024-01-18 03:38:02.881 - \ INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : - BeanFactory id=5a10a6b4-2276-3148-a89a-3a88ddacef4c\n2024-01-18 03:38:03.676 - \ INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : - Tomcat initialized with port(s): 1025 (http)\n2024-01-18 03:38:03.687 INFO - 1 --- [ main] o.apache.catalina.core.StandardService : Starting - service [Tomcat]\n2024-01-18 03:38:03.688 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine - \ : Starting Servlet engine: [Apache Tomcat/9.0.78]\n2024-01-18 03:38:03.890 - \ INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : - Initializing Spring embedded WebApplicationContext\n2024-01-18 03:38:03.890 - \ INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : - Root WebApplicationContext: initialization completed in 3214 ms\n2024-01-18 - 03:38:05.379 INFO 1 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping - \ : Adding welcome page: class path resource [static/index.html]\n2024-01-18 - 03:38:05.977 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver - \ : Exposing 2 endpoint(s) beneath base path '/actuator'\n2024-01-18 03:38:06.104 - \ INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : - Tomcat started on port(s): 1025 (http) with context path ''\n2024-01-18 03:38:06.127 - \ INFO 1 --- [ main] hello.Application : - Started Application in 7.024 seconds (JVM running for 8.224)\n" + =========|_|==============|___/=/_/_/_/\n :: Spring Boot :: (v3.2.0)\n\n2024-04-15T12:48:25.902Z + \ INFO 1 --- [clitest000003] [ main] hello.Application : + Starting Application v1.0.0 using Java 17.0.10 with PID 1 (/app.jar started + by cnb in /)\n2024-04-15T12:48:25.905Z INFO 1 --- [clitest000003] [ main] + hello.Application : No active profile set, falling + back to 1 default profile: \"default\"\n2024-04-15T12:48:28.978Z INFO 1 --- + [clitest000003] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer + \ : Tomcat initialized with port 1025 (http)\n2024-04-15T12:48:28.988Z INFO + 1 --- [clitest000003] [ main] o.apache.catalina.core.StandardService + \ : Starting service [Tomcat]\n2024-04-15T12:48:28.988Z INFO 1 --- [clitest000003] + [ main] o.apache.catalina.core.StandardEngine : Starting Servlet + engine: [Apache Tomcat/10.1.16]\n2024-04-15T12:48:29.296Z INFO 1 --- [clitest000003] + [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing + Spring embedded WebApplicationContext\n2024-04-15T12:48:29.298Z INFO 1 --- + [clitest000003] [ main] w.s.c.ServletWebServerApplicationContext + : Root WebApplicationContext: initialization completed in 3283 ms\n2024-04-15T12:48:30.301Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.a.w.s.WelcomePageHandlerMapping + \ : Adding welcome page: class path resource [static/index.html]\n2024-04-15T12:48:31.275Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.a.e.web.EndpointLinksResolver + \ : Exposing 2 endpoint(s) beneath base path '/actuator'\n2024-04-15T12:48:31.403Z + \ INFO 1 --- [clitest000003] [ main] o.s.b.w.embedded.tomcat.TomcatWebServer + \ : Tomcat started on port 1025 (http) with context path ''\n2024-04-15T12:48:31.475Z + \ INFO 1 --- [clitest000003] [ main] hello.Application : + Started Application in 6.868 seconds (process running for 7.991)\n" headers: connection: - keep-alive content-type: - text/plain date: - - Thu, 18 Jan 2024 03:38:22 GMT + - Mon, 15 Apr 2024 12:48:53 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: @@ -1275,21 +1338,21 @@ interactions: ParameterSetName: - --app -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:51.0386057Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:20.2851484Z"}}' headers: cache-control: - no-cache content-length: - - '1360' + - '1346' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:24 GMT + - Mon, 15 Apr 2024 12:48:56 GMT expires: - '-1' pragma: @@ -1298,16 +1361,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11996' + - '11999' + x-msedge-ref: + - 'Ref A: 8558D2E0CAC749E6B15C8DD0915F490C Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:53Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1325,21 +1388,21 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:13.0314446Z"}},{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:51.0386057Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:25.1307245Z"}},{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:20.2851484Z"}}]}' headers: cache-control: - no-cache content-length: - - '2738' + - '2710' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:29 GMT + - Mon, 15 Apr 2024 12:49:00 GMT expires: - '-1' pragma: @@ -1348,16 +1411,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 43C2AE81783C42C0B8B8EA211106AD8F Ref B: MAA201060513039 Ref C: 2024-04-15T12:48:58Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1375,21 +1438,21 @@ interactions: ParameterSetName: - -d -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:37:51.0386057Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:20.2851484Z"}}' headers: cache-control: - no-cache content-length: - - '1360' + - '1346' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:32 GMT + - Mon, 15 Apr 2024 12:49:04 GMT expires: - '-1' pragma: @@ -1398,16 +1461,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 86194AF42F64499D9F79F43C03365525 Ref B: MAA201060516047 Ref C: 2024-04-15T12:49:02Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1429,39 +1492,43 @@ interactions: ParameterSetName: - -d -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/setActiveDeployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/setActiveDeployments?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/803dcb31-2467-46d6-9de3-e85a66c80296?api-version=2024-01-01-preview&t=638411459149448765&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0Ew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urvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Lg6brvGhIxOxY0i7DlsN6FrJGKPwoJ-fCp7feIactqDPGyjG0rKJVNBh8CWm2AKo0PYgkTw5kyYE8HerEwjeDtk7LDKTh00lwNj8Tuhupe8y_1kxcgbzK1E2mZ-k5Uv2vK3MBVCpFejNjaX0PmKZLkz2dRAeQ4CAmNkeGLiScHNT_g3q3jASuF3QrPUpmEa5Qf6s9vHHZf289XCDhfMqeGP_JYT-5wJGJGmreyTKXyOgUxz4KRUPL8Vi08Nv40_CVbpfUxVxZcKoOS-9iwJd3QhtazchbYxT1Ei6egVZ6hueklqCyRQMc3bJR_P8OwdX2qtaGLpDcvTkqNMj4xluCw&h=6pseOOi3WjLIFr-4N9KbqPX3kA34lTK6Z0c79TaVhaE + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/429c3f78-32f2-418e-b318-1292e22c7b58?api-version=2024-05-01-preview&t=638487821464493897&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQB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paQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Mm9HMqVGrlwL3GC7XavRbgV9qjgdNYbDpP7oSJp80_JZ1_jAIJcRMvBzT50_W_yaFxglK4L-fGnxYXshHaFh1DBo-akjic8qU4StG15CkZiP4D5uTi3RuwxVp0pu0EsNG0i51IZ29B7Y47XQOBCOnwsheqhAE6JUrk1Pw7WByGI5DGWWiS1VvjaCy9DymmiAknuiGuAWsK-KE1AJi1R77Mc8UBcbtHa9KDZDCTqWWKGxpjNdDxpQmfd8OzHTecpzd9mksbXenv-vo6H8k_xPsw3rVmg9gHQuLYT6zWNj8itA6B3e93zFQ46Zj_L9Qs3GPSCUqIxkgw41JRLOdjngZw&h=aRx1n9ehxWg5nXab-dVipV4-Q9FlTzg-r8UIf6qAtxs cache-control: - no-cache content-length: - - '1026' + - '1038' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:34 GMT + - Mon, 15 Apr 2024 12:49:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/803dcb31-2467-46d6-9de3-e85a66c80296/Spring/clitest000003?api-version=2024-01-01-preview&t=638411459149448765&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aW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wvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FPTIFUlsOCJN47NCEDF4BOS3aWe535lJEHbyMmJX57XwgNduC40lIrcq8ssSX64DXubiFiz4Dt0bnKsV78zhvILQydlKUSb99JaLIIrjeSn8jQudcUNEypc3cLb6fgqO17JZPZcoW1H-JQWzWm1mhKvdanfQAFqRACEbtNcR3LxLSqRYIeeiPkU_y7QRa156vFQbZafGdbejepSM5biv1PuOTz1_VKmDrPjkc1-1d7P3BE_w2L2BI23VLwU_ADItiINS-6MtrmbINYfZf6xQTW9JuaUJVFOAjTSi_9ESovBEv_fDR5DMptWC8zUpH21HF325Sg_gjWcHpfMhH4k4FA&h=YuTc4yQYQOjVs740_PkoB3g8ktXR7C_dZwkrcUxg4JU + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/429c3f78-32f2-418e-b318-1292e22c7b58/Spring/clitest000003?api-version=2024-05-01-preview&t=638487821464493897&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSX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hyRcbsxFpqxZRyXn1gOYnZ2QkP-BiedBHTa7x2hk8Mk_K0d4sQihUWbMIQCBqoA--HenEUI3G_z9GofgT1BtbOfobLOlpcjMw&h=rJy5eo7d7fC4Qfh9isb9UzMKmuBvlZxEskJhYa5hBgI pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 8475207EFA8C4965B98AC9AC95F480C1 Ref B: MAA201060516039 Ref C: 2024-04-15T12:49:05Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -1479,21 +1546,21 @@ interactions: ParameterSetName: - -d -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/803dcb31-2467-46d6-9de3-e85a66c80296?api-version=2024-01-01-preview&t=638411459149448765&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6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hObFhghf3Dtvlo&s=Lg6brvGhIxOxY0i7DlsN6FrJGKPwoJ-fCp7feIactqDPGyjG0rKJVNBh8CWm2AKo0PYgkTw5kyYE8HerEwjeDtk7LDKTh00lwNj8Tuhupe8y_1kxcgbzK1E2mZ-k5Uv2vK3MBVCpFejNjaX0PmKZLkz2dRAeQ4CAmNkeGLiScHNT_g3q3jASuF3QrPUpmEa5Qf6s9vHHZf289XCDhfMqeGP_JYT-5wJGJGmreyTKXyOgUxz4KRUPL8Vi08Nv40_CVbpfUxVxZcKoOS-9iwJd3QhtazchbYxT1Ei6egVZ6hueklqCyRQMc3bJR_P8OwdX2qtaGLpDcvTkqNMj4xluCw&h=6pseOOi3WjLIFr-4N9KbqPX3kA34lTK6Z0c79TaVhaE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/429c3f78-32f2-418e-b318-1292e22c7b58?api-version=2024-05-01-preview&t=638487821464493897&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVz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pQmfd8OzHTecpzd9mksbXenv-vo6H8k_xPsw3rVmg9gHQuLYT6zWNj8itA6B3e93zFQ46Zj_L9Qs3GPSCUqIxkgw41JRLOdjngZw&h=aRx1n9ehxWg5nXab-dVipV4-Q9FlTzg-r8UIf6qAtxs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/803dcb31-2467-46d6-9de3-e85a66c80296","name":"803dcb31-2467-46d6-9de3-e85a66c80296","status":"Running","startTime":"2024-01-18T03:38:34.7847676Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/429c3f78-32f2-418e-b318-1292e22c7b58","name":"429c3f78-32f2-418e-b318-1292e22c7b58","status":"Running","startTime":"2024-04-15T12:49:06.2834211Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '333' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:34 GMT + - Mon, 15 Apr 2024 12:49:06 GMT expires: - '-1' pragma: @@ -1502,14 +1569,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7E6DC765D76B48B0AC72AD762BA42755 Ref B: MAA201060516039 Ref C: 2024-04-15T12:49:06Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1527,21 +1594,21 @@ interactions: ParameterSetName: - -d -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/803dcb31-2467-46d6-9de3-e85a66c80296?api-version=2024-01-01-preview&t=638411459149448765&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQow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bWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Lg6brvGhIxOxY0i7DlsN6FrJGKPwoJ-fCp7feIactqDPGyjG0rKJVNBh8CWm2AKo0PYgkTw5kyYE8HerEwjeDtk7LDKTh00lwNj8Tuhupe8y_1kxcgbzK1E2mZ-k5Uv2vK3MBVCpFejNjaX0PmKZLkz2dRAeQ4CAmNkeGLiScHNT_g3q3jASuF3QrPUpmEa5Qf6s9vHHZf289XCDhfMqeGP_JYT-5wJGJGmreyTKXyOgUxz4KRUPL8Vi08Nv40_CVbpfUxVxZcKoOS-9iwJd3QhtazchbYxT1Ei6egVZ6hueklqCyRQMc3bJR_P8OwdX2qtaGLpDcvTkqNMj4xluCw&h=6pseOOi3WjLIFr-4N9KbqPX3kA34lTK6Z0c79TaVhaE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/429c3f78-32f2-418e-b318-1292e22c7b58?api-version=2024-05-01-preview&t=638487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6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Mm9HMqVGrlwL3GC7XavRbgV9qjgdNYbDpP7oSJp80_JZ1_jAIJcRMvBzT50_W_yaFxglK4L-fGnxYXshHaFh1DBo-akjic8qU4StG15CkZiP4D5uTi3RuwxVp0pu0EsNG0i51IZ29B7Y47XQOBCOnwsheqhAE6JUrk1Pw7WByGI5DGWWiS1VvjaCy9DymmiAknuiGuAWsK-KE1AJi1R77Mc8UBcbtHa9KDZDCTqWWKGxpjNdDxpQmfd8OzHTecpzd9mksbXenv-vo6H8k_xPsw3rVmg9gHQuLYT6zWNj8itA6B3e93zFQ46Zj_L9Qs3GPSCUqIxkgw41JRLOdjngZw&h=aRx1n9ehxWg5nXab-dVipV4-Q9FlTzg-r8UIf6qAtxs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/803dcb31-2467-46d6-9de3-e85a66c80296","name":"803dcb31-2467-46d6-9de3-e85a66c80296","status":"Succeeded","startTime":"2024-01-18T03:38:34.7847676Z","endTime":"2024-01-18T03:38:40.4850563Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/429c3f78-32f2-418e-b318-1292e22c7b58","name":"429c3f78-32f2-418e-b318-1292e22c7b58","status":"Succeeded","startTime":"2024-04-15T12:49:06.2834211Z","endTime":"2024-04-15T12:49:12.8201828Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '376' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:45 GMT + - Mon, 15 Apr 2024 12:49:16 GMT expires: - '-1' pragma: @@ -1550,14 +1617,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 15B09E04563D451B8A9719D819433945 Ref B: MAA201060516039 Ref C: 2024-04-15T12:49:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1575,21 +1642,21 @@ interactions: ParameterSetName: - -d -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/803dcb31-2467-46d6-9de3-e85a66c80296/Spring/clitest000003?api-version=2024-01-01-preview&t=638411459149448765&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5t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-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FPTIFUlsOCJN47NCEDF4BOS3aWe535lJEHbyMmJX57XwgNduC40lIrcq8ssSX64DXubiFiz4Dt0bnKsV78zhvILQydlKUSb99JaLIIrjeSn8jQudcUNEypc3cLb6fgqO17JZPZcoW1H-JQWzWm1mhKvdanfQAFqRACEbtNcR3LxLSqRYIeeiPkU_y7QRa156vFQbZafGdbejepSM5biv1PuOTz1_VKmDrPjkc1-1d7P3BE_w2L2BI23VLwU_ADItiINS-6MtrmbINYfZf6xQTW9JuaUJVFOAjTSi_9ESovBEv_fDR5DMptWC8zUpH21HF325Sg_gjWcHpfMhH4k4FA&h=YuTc4yQYQOjVs740_PkoB3g8ktXR7C_dZwkrcUxg4JU + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/429c3f78-32f2-418e-b318-1292e22c7b58/Spring/clitest000003?api-version=2024-05-01-preview&t=638487821464493897&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknL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qxZRyXn1gOYnZ2QkP-BiedBHTa7x2hk8Mk_K0d4sQihUWbMIQCBqoA--HenEUI3G_z9GofgT1BtbOfobLOlpcjMw&h=rJy5eo7d7fC4Qfh9isb9UzMKmuBvlZxEskJhYa5hBgI response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","activeDeploymentName":"green","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"createdTime":"2024-01-18T03:37:07.603Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","activeDeploymentName":"green","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"createdTime":"2024-04-15T12:47:20.462Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}' headers: cache-control: - no-cache content-length: - - '1099' + - '1111' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:45 GMT + - Mon, 15 Apr 2024 12:49:17 GMT expires: - '-1' pragma: @@ -1598,14 +1665,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 861FA3A61C054FCDB55E23E0010E190B Ref B: MAA201060516039 Ref C: 2024-04-15T12:49:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1623,21 +1690,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1039' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:48 GMT + - Mon, 15 Apr 2024 12:49:20 GMT expires: - '-1' pragma: @@ -1646,16 +1713,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: C7FF5F671CC9401AB5A27119DAB2DF5A Ref B: MAA201060515017 Ref C: 2024-04-15T12:49:19Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1673,21 +1740,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}},{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}},{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}]}' headers: cache-control: - no-cache content-length: - - '2738' + - '2710' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:50 GMT + - Mon, 15 Apr 2024 12:49:30 GMT expires: - '-1' pragma: @@ -1696,16 +1763,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: C781875BA88549A49EB6EC6A34339086 Ref B: MAA201060515017 Ref C: 2024-04-15T12:49:20Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1723,21 +1790,21 @@ interactions: ParameterSetName: - -n --app -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}' headers: cache-control: - no-cache content-length: - - '1366' + - '1352' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:54 GMT + - Mon, 15 Apr 2024 12:49:34 GMT expires: - '-1' pragma: @@ -1746,16 +1813,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 7E7328ACE6354B4D8DCA43FCB93D5116 Ref B: MAA201060516039 Ref C: 2024-04-15T12:49:32Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1773,21 +1840,21 @@ interactions: ParameterSetName: - -n --app -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}' headers: cache-control: - no-cache content-length: - - '1359' + - '1345' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:38:58 GMT + - Mon, 15 Apr 2024 12:49:39 GMT expires: - '-1' pragma: @@ -1796,16 +1863,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 6B266150F81B476DA9D637829E5E708B Ref B: MAA201060516025 Ref C: 2024-04-15T12:49:37Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1823,21 +1890,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}},{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}},{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}]}' headers: cache-control: - no-cache content-length: - - '2738' + - '2710' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:02 GMT + - Mon, 15 Apr 2024 12:49:43 GMT expires: - '-1' pragma: @@ -1846,16 +1913,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: BAF6D48ED3C74631AD1C1A18517EF4F6 Ref B: MAA201060515021 Ref C: 2024-04-15T12:49:41Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1877,39 +1944,43 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/setActiveDeployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/setActiveDeployments?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:39:04.287573Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:44.70198Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/318768f4-b806-40e7-9f81-66753cffb57b?api-version=2024-01-01-preview&t=638411459451156556&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcm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AfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=l-9hvUI2UjusZjED97pOL4kFgrhpWVW1ahV6yXHbDUUSWeGH8mUPuODa_o1-wXPoTRHKwTqXuvoq4-vU9kgdKtbJIOitMzJNWJXQ2fBhUBc4LNiz-bvSNdZaGIW3oJ4jXh7pjngRFKX5DNq92fwkullnszH62qn9CKylaU74pKl3JIfbYqhxVPmbCu84S8OwtVFgkyhPiqIzw8LN8HJX7R_1Yd8PN_Sw67jr7EVf_8GLcJ5rkgh8cV8YGbkWwU689lLvFTkSViQfGieaiOJ2dW1tJc9-6zgE3jaKCQMMbq58osTwt39PADMtZN9QPXnUHAebtV1BCeDLrlyzU0PqWg&h=P0cj_iORpFRFPNm0VRY00gQb-OhVzGvs052V6FMJAu0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e568a36b-a186-4cae-90c4-dec327684101?api-version=2024-05-01-preview&t=638487821854831828&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRM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KFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Bc6Tk6LRH7FmGmhAFek24hK8PyFxYMJChgaaKWvDitCUSjgGHgUcohLqX_sykBW3ef4t26LME7oPqsozw4a7BHOr_fiDHkIziag79VkjWzhdyLFHkVJzue9a3kjdlX8IY6zKWt7C3pbxlEcsn9o3uuBaTf1rGQkmimd00d3T-PsJnwqtzXl87tHewNT-lwWD_lNSCpoc1EJSWOPoQ0hB7TwpabEdEtJnn7cjrFav0ybYrE75ISr2UP0w_f6JcFNG_kbgFRL1I6XpzYI54UBonqoujemOjDrJWswSkaCm2f4Ld1qEDXjFSLU0o0Hrt9K8I-tnXTuGqJStjhJczZf_WA&h=9aAlDpZJ26BsGOuMsy9LmbC3Yij-5P9GkquRw4ir-GQ cache-control: - no-cache content-length: - - '1025' + - '1036' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:04 GMT + - Mon, 15 Apr 2024 12:49:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/318768f4-b806-40e7-9f81-66753cffb57b/Spring/clitest000003?api-version=2024-01-01-preview&t=638411459451312788&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pb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HRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=NATclw-cI1uNQwp-CS2fPHEcDJ-hOYiWDlG3wZ1Lewd2PRY8qNQDvxowURaek6eytV49B7jreOlbghmfY8bRQqM6TDDawK7QRMXVg7nBuzpuJ34DYj7BtzJqzFw_jL9uH80A84uI4g4xvXsT11EB5wIrv1SS8OwXKiTYUvShEFg5v6VtjHrhW3yC8v9ZJUnLPucHAV0cxH3fj8EY7_1Cak_jS6Zyui2gMd1n1nP-s8oalKmr7gZI9Rm9I_pGBng42s8hputrWzY1PLNq9Q5BFPk5P5b5FXVZpzuK-eo0mG-ry_S0tqgK1kK-uEhaJoTpt5z56z54PIpljoDJX0bSDA&h=CorOTNEFzz3IoXrgmhvLIDvUL4jxD5OEuKcvCKSHABw + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/e568a36b-a186-4cae-90c4-dec327684101/Spring/clitest000003?api-version=2024-05-01-preview&t=638487821854988077&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9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d0JRUyimpcXGvtlOrUNphCaQAAtdu_gnoSHeMDgfsHwa6fWV9Z9Tpix7ZQeYP1lgTQrXZj_yWcPJ3Wpf8tCgRHpUq69Q-VwIgDAgG7_H7PcjTv7eSnrq1_Ykc6rCA&h=8_xidSsafOrmoTDSpl41OmmFv-gRCSaGiLyub7wxDq0 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 7CD802363DF34D059BE1C596DDF86600 Ref B: MAA201060516045 Ref C: 2024-04-15T12:49:44Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -1927,21 +1998,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/318768f4-b806-40e7-9f81-66753cffb57b?api-version=2024-01-01-preview&t=638411459451156556&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0a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XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=l-9hvUI2UjusZjED97pOL4kFgrhpWVW1ahV6yXHbDUUSWeGH8mUPuODa_o1-wXPoTRHKwTqXuvoq4-vU9kgdKtbJIOitMzJNWJXQ2fBhUBc4LNiz-bvSNdZaGIW3oJ4jXh7pjngRFKX5DNq92fwkullnszH62qn9CKylaU74pKl3JIfbYqhxVPmbCu84S8OwtVFgkyhPiqIzw8LN8HJX7R_1Yd8PN_Sw67jr7EVf_8GLcJ5rkgh8cV8YGbkWwU689lLvFTkSViQfGieaiOJ2dW1tJc9-6zgE3jaKCQMMbq58osTwt39PADMtZN9QPXnUHAebtV1BCeDLrlyzU0PqWg&h=P0cj_iORpFRFPNm0VRY00gQb-OhVzGvs052V6FMJAu0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e568a36b-a186-4cae-90c4-dec327684101?api-version=2024-05-01-preview&t=638487821854831828&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2s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Fav0ybYrE75ISr2UP0w_f6JcFNG_kbgFRL1I6XpzYI54UBonqoujemOjDrJWswSkaCm2f4Ld1qEDXjFSLU0o0Hrt9K8I-tnXTuGqJStjhJczZf_WA&h=9aAlDpZJ26BsGOuMsy9LmbC3Yij-5P9GkquRw4ir-GQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/318768f4-b806-40e7-9f81-66753cffb57b","name":"318768f4-b806-40e7-9f81-66753cffb57b","status":"Running","startTime":"2024-01-18T03:39:04.9760442Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e568a36b-a186-4cae-90c4-dec327684101","name":"e568a36b-a186-4cae-90c4-dec327684101","status":"Running","startTime":"2024-04-15T12:49:45.3253522Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '333' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:04 GMT + - Mon, 15 Apr 2024 12:49:45 GMT expires: - '-1' pragma: @@ -1950,14 +2021,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8DD18054010E41E4AF66D05B7B75D9B3 Ref B: MAA201060516045 Ref C: 2024-04-15T12:49:45Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1975,21 +2046,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/318768f4-b806-40e7-9f81-66753cffb57b?api-version=2024-01-01-preview&t=638411459451156556&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQ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NC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=l-9hvUI2UjusZjED97pOL4kFgrhpWVW1ahV6yXHbDUUSWeGH8mUPuODa_o1-wXPoTRHKwTqXuvoq4-vU9kgdKtbJIOitMzJNWJXQ2fBhUBc4LNiz-bvSNdZaGIW3oJ4jXh7pjngRFKX5DNq92fwkullnszH62qn9CKylaU74pKl3JIfbYqhxVPmbCu84S8OwtVFgkyhPiqIzw8LN8HJX7R_1Yd8PN_Sw67jr7EVf_8GLcJ5rkgh8cV8YGbkWwU689lLvFTkSViQfGieaiOJ2dW1tJc9-6zgE3jaKCQMMbq58osTwt39PADMtZN9QPXnUHAebtV1BCeDLrlyzU0PqWg&h=P0cj_iORpFRFPNm0VRY00gQb-OhVzGvs052V6FMJAu0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e568a36b-a186-4cae-90c4-dec327684101?api-version=2024-05-01-preview&t=638487821854831828&c=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n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Bc6Tk6LRH7FmGmhAFek24hK8PyFxYMJChgaaKWvDitCUSjgGHgUcohLqX_sykBW3ef4t26LME7oPqsozw4a7BHOr_fiDHkIziag79VkjWzhdyLFHkVJzue9a3kjdlX8IY6zKWt7C3pbxlEcsn9o3uuBaTf1rGQkmimd00d3T-PsJnwqtzXl87tHewNT-lwWD_lNSCpoc1EJSWOPoQ0hB7TwpabEdEtJnn7cjrFav0ybYrE75ISr2UP0w_f6JcFNG_kbgFRL1I6XpzYI54UBonqoujemOjDrJWswSkaCm2f4Ld1qEDXjFSLU0o0Hrt9K8I-tnXTuGqJStjhJczZf_WA&h=9aAlDpZJ26BsGOuMsy9LmbC3Yij-5P9GkquRw4ir-GQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/318768f4-b806-40e7-9f81-66753cffb57b","name":"318768f4-b806-40e7-9f81-66753cffb57b","status":"Succeeded","startTime":"2024-01-18T03:39:04.9760442Z","endTime":"2024-01-18T03:39:10.7239607Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/e568a36b-a186-4cae-90c4-dec327684101","name":"e568a36b-a186-4cae-90c4-dec327684101","status":"Succeeded","startTime":"2024-04-15T12:49:45.3253522Z","endTime":"2024-04-15T12:49:54.1203975Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '376' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:15 GMT + - Mon, 15 Apr 2024 12:49:56 GMT expires: - '-1' pragma: @@ -1998,14 +2069,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 73F6E0FF2CA24056808945028F574EDF Ref B: MAA201060516045 Ref C: 2024-04-15T12:49:56Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -2023,21 +2094,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/318768f4-b806-40e7-9f81-66753cffb57b/Spring/clitest000003?api-version=2024-01-01-preview&t=638411459451312788&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJ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hghf3Dtvlo&s=NATclw-cI1uNQwp-CS2fPHEcDJ-hOYiWDlG3wZ1Lewd2PRY8qNQDvxowURaek6eytV49B7jreOlbghmfY8bRQqM6TDDawK7QRMXVg7nBuzpuJ34DYj7BtzJqzFw_jL9uH80A84uI4g4xvXsT11EB5wIrv1SS8OwXKiTYUvShEFg5v6VtjHrhW3yC8v9ZJUnLPucHAV0cxH3fj8EY7_1Cak_jS6Zyui2gMd1n1nP-s8oalKmr7gZI9Rm9I_pGBng42s8hputrWzY1PLNq9Q5BFPk5P5b5FXVZpzuK-eo0mG-ry_S0tqgK1kK-uEhaJoTpt5z56z54PIpljoDJX0bSDA&h=CorOTNEFzz3IoXrgmhvLIDvUL4jxD5OEuKcvCKSHABw + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/e568a36b-a186-4cae-90c4-dec327684101/Spring/clitest000003?api-version=2024-05-01-preview&t=638487821854988077&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9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sHwa6fWV9Z9Tpix7ZQeYP1lgTQrXZj_yWcPJ3Wpf8tCgRHpUq69Q-VwIgDAgG7_H7PcjTv7eSnrq1_Ykc6rCA&h=8_xidSsafOrmoTDSpl41OmmFv-gRCSaGiLyub7wxDq0 response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"createdTime":"2024-01-18T03:37:07.603Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:06.9844409Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:39:04.287573Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"createdTime":"2024-04-15T12:47:20.462Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:18.7203814Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:44.70198Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '1078' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:15 GMT + - Mon, 15 Apr 2024 12:49:56 GMT expires: - '-1' pragma: @@ -2046,14 +2117,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0F3B6E71C6474C66A594179A7D306FB2 Ref B: MAA201060516045 Ref C: 2024-04-15T12:49:57Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -2071,21 +2142,21 @@ interactions: ParameterSetName: - -n --app -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-5656fb457d-5cw42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:17Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:13.0314446Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:38:34.1004968Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-default-15-69c7c45489-962nk","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:28Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:25.1307245Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:05.8556273Z"}}' headers: cache-control: - no-cache content-length: - - '1366' + - '1352' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:19 GMT + - Mon, 15 Apr 2024 12:50:01 GMT expires: - '-1' pragma: @@ -2094,16 +2165,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: B622801728EA44EC901889B16131DC3C Ref B: MAA201060513047 Ref C: 2024-04-15T12:49:58Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -2121,21 +2192,21 @@ interactions: ParameterSetName: - -n --app -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-7f7dd746d9-6d9rx","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:37:53Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:37:51.0386057Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:39:04.287573Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":false,"instances":[{"name":"clitest000003-green-15-677f4f64cb-8pknn","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:22Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/green","name":"green","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:48:20.2851484Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:49:44.70198Z"}}' headers: cache-control: - no-cache content-length: - - '1359' + - '1344' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:39:24 GMT + - Mon, 15 Apr 2024 12:50:05 GMT expires: - '-1' pragma: @@ -2144,16 +2215,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 8438E43E2CA14DA9AA29C664A032E013 Ref B: MAA201060515033 Ref C: 2024-04-15T12:50:02Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_build.yaml b/src/spring/azext_spring/tests/latest/recordings/test_build.yaml index 171dfbef7ec..6fe03cb5d41 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_build.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_build.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a844dc2252cb47e590f1588013d2f796","networkProfile":{"outboundIPs":{"publicIPs":["20.204.228.60","20.207.80.135"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-e.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e","name":"cli-unittest-e","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:07:18.3749756Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:07:18.3749756Z"}}' @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/buildServices","properties":{"containerRegistry":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/containerRegistries/default","kPackVersion":"0.7.2","provisioningState":"Succeeded","resourceRequests":{"cpu":"2","memory":"4Gi"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:20:51.4281503Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:20:51.4281503Z"}}' @@ -113,7 +113,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builds","properties":{"builder":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builders/default","agentPool":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/agentPools/default","relativePath":"resources/2023032905-759f53c6-f07b-4ba3-b73e-5b3368bb6775","provisioningState":"Succeeded","resourceRequests":{"cpu":"1","memory":"2Gi"},"env":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test","name":"test","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:49:31.8000981Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:49:31.8000981Z"}}' @@ -161,7 +161,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a844dc2252cb47e590f1588013d2f796","networkProfile":{"outboundIPs":{"publicIPs":["20.204.228.60","20.207.80.135"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-e.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e","name":"cli-unittest-e","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:07:18.3749756Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:07:18.3749756Z"}}' @@ -211,7 +211,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/buildServices","properties":{"containerRegistry":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/containerRegistries/default","kPackVersion":"0.7.2","provisioningState":"Succeeded","resourceRequests":{"cpu":"2","memory":"4Gi"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:20:51.4281503Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:20:51.4281503Z"}}' @@ -259,7 +259,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test/results/1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test/results/1?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/buildServices/builds/results","properties":{"name":"1","provisioningState":"Succeeded","buildPodName":"default.test-build-1-build-pod","buildStages":[{"name":"prepare","status":"Succeeded","exitCode":"0","reason":"Completed"},{"name":"analyze","status":"Succeeded","exitCode":"0","reason":"Completed"},{"name":"detect","status":"Succeeded","exitCode":"0","reason":"Completed"},{"name":"restore","status":"Succeeded","exitCode":"0","reason":"Completed"},{"name":"build","status":"Succeeded","exitCode":"0","reason":"Completed"},{"name":"export","status":"Succeeded","exitCode":"0","reason":"Completed"},{"name":"completion","status":"Succeeded","exitCode":"0","reason":"Completed"}],"image":"clitest1.azurecr.io/test:result-1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test/results/1","name":"1","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:49:31.8000981Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:49:31.8000981Z"}}' @@ -307,7 +307,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a844dc2252cb47e590f1588013d2f796","networkProfile":{"outboundIPs":{"publicIPs":["20.204.228.60","20.207.80.135"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-e.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e","name":"cli-unittest-e","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:07:18.3749756Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:07:18.3749756Z"}}' @@ -357,7 +357,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/buildServices","properties":{"containerRegistry":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/containerRegistries/default","kPackVersion":"0.7.2","provisioningState":"Succeeded","resourceRequests":{"cpu":"2","memory":"4Gi"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T05:20:51.4281503Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T05:20:51.4281503Z"}}' @@ -407,13 +407,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default/builds/test?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -423,7 +423,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b/Spring/cli-unittest-e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b/Spring/cli-unittest-e?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -455,7 +455,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b","name":"7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b","status":"Succeeded","startTime":"2023-03-29T06:20:27.8842744Z","endTime":"2023-03-29T06:20:34.3671005Z"}' @@ -503,7 +503,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/7e9cc4e7-aca8-4f5a-a91c-948ed8e6a56b/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_build_service.yaml b/src/spring/azext_spring/tests/latest/recordings/test_build_service.yaml index 53bd3a1c477..98e32061cb5 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_build_service.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_build_service.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a6d810529f2f46239ce6daa29312f482","networkProfile":{"outboundIPs":{"publicIPs":["20.207.94.116","20.207.94.123"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-e.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e","name":"cli-unittest-e","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T06:45:05.9852557Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T06:45:05.9852557Z"}}' @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/buildServices","properties":{"containerRegistry":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/containerRegistries/my-acr","kPackVersion":"0.9.2","provisioningState":"Succeeded","resourceRequests":{"cpu":"2","memory":"4Gi"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/buildServices/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T06:50:25.1772554Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T08:21:12.4700955Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_buildpack_binding.yaml b/src/spring/azext_spring/tests/latest/recordings/test_buildpack_binding.yaml index 7473c96530c..179d6694ec3 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_buildpack_binding.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_buildpack_binding.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:21 GMT + - Mon, 15 Apr 2024 07:02:33 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: B33D77EEDF4343CA8FDD312C6B8AA42E Ref B: MAA201060514051 Ref C: 2024-04-15T07:02:33Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -63,9 +63,9 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"KPack buildpacksBinding does @@ -78,7 +78,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:23 GMT + - Mon, 15 Apr 2024 07:02:35 GMT expires: - '-1' pragma: @@ -87,10 +87,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 91D71FC9EB4040B985B9C0B27F410E16 Ref B: MAA201060513021 Ref C: 2024-04-15T07:02:34Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -113,15 +117,15 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.091874Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.091874Z"}}' + string: '{"properties":{"provisioningState":"Creating","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:02:36.6993535Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:02:36.6993535Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc4ab51a-4c38-4133-8afc-7c876db4607a?api-version=2024-05-01-preview&t=638487613578712015&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=CXCslgd2UwVU22CS-oMjy_wB8xN6DdvGMFSLRxFzWgMTr2M_UTUd0ZUazoNvNGmW_teBLWbhOHGxXDMWF5MTO0ZBiQk_IjRD4tsBr8wb6X3xq4PlCKr5p6BUM5ioi86tU4D4J87EjfDxERFp0mMr6fDCs_Q0jUnEeyE48GTUEENwMLei_BX4-MgCN7cHFri3nZs0ac0bqfV004YtTzu3KMxU-z5gd3zzce8l8gDAplw7cuRXIPLdiwH9uINJk_bVaqUiiBrCFBczGx6T9rQVxHkrhU0y4ZO37Y5IqZ0oInbOhWdTsYBCwemvJQEzS90sOByfXzcAiXKroBIIIZ6reg&h=t0OXIHoERrHORapBvNNSUmKFtH-H64zdNaw8w71PfN8 cache-control: - no-cache content-length: @@ -129,23 +133,27 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:25 GMT + - Mon, 15 Apr 2024 07:02:37 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bc4ab51a-4c38-4133-8afc-7c876db4607a/Spring/clitest000002?api-version=2024-05-01-preview&t=638487613578712015&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4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MjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=H1JqSVvjgfBHG196b_NBtsZ8TTU6zaT-eo38iH_Nk1q1qd3ZJcWMNNAHwFHp717exgAl353W9UDSVPRFeja1NeUzHB797ciPCPXoCkwsK5TFT6ANWeca8kBlaBjNASiG6FesWm7tbD7oTOazwu4AD3Ynzz-AmRpr8oWr-VNatCMyJlxTzihLGxG4XM4Rs8sgKJnK_sj5Keey4ZEvUH4qEtxiV2gC8Wbxu44N5N8OQc6OUW4f9b7Bh78KVzZR_nicUT3FE2qTIBh5bj4ivJcyq2GgcN8bQKqF6ufXC8clNS9i1UYhsza5DGs6UEO8DULbxShHv_hinF5biMqpYsB9mA&h=b-qOCKskDA3nVSInmmpIHDNw9UDESqrRtNmDs5kbOMU pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 92DC5E5F646F45F78B8EA5F35FFDB164 Ref B: MAA201060515049 Ref C: 2024-04-15T07:02:36Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -163,117 +171,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","name":"c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","status":"Running","startTime":"2023-04-03T07:13:24.9262501Z"}' - headers: - cache-control: - - no-cache - content-length: - - '328' - content-type: - - application/json - date: - - Mon, 03 Apr 2023 07:13:25 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring build-service builder buildpack-binding create - Connection: - - keep-alive - ParameterSetName: - - --name --type --properties --secrets -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","name":"c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","status":"Running","startTime":"2023-04-03T07:13:24.9262501Z"}' - headers: - cache-control: - - no-cache - content-length: - - '328' - content-type: - - application/json - date: - - Mon, 03 Apr 2023 07:13:35 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring build-service builder buildpack-binding create - Connection: - - keep-alive - ParameterSetName: - - --name --type --properties --secrets -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc4ab51a-4c38-4133-8afc-7c876db4607a?api-version=2024-05-01-preview&t=638487613578712015&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjA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ADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=CXCslgd2UwVU22CS-oMjy_wB8xN6DdvGMFSLRxFzWgMTr2M_UTUd0ZUazoNvNGmW_teBLWbhOHGxXDMWF5MTO0ZBiQk_IjRD4tsBr8wb6X3xq4PlCKr5p6BUM5ioi86tU4D4J87EjfDxERFp0mMr6fDCs_Q0jUnEeyE48GTUEENwMLei_BX4-MgCN7cHFri3nZs0ac0bqfV004YtTzu3KMxU-z5gd3zzce8l8gDAplw7cuRXIPLdiwH9uINJk_bVaqUiiBrCFBczGx6T9rQVxHkrhU0y4ZO37Y5IqZ0oInbOhWdTsYBCwemvJQEzS90sOByfXzcAiXKroBIIIZ6reg&h=t0OXIHoERrHORapBvNNSUmKFtH-H64zdNaw8w71PfN8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","name":"c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","status":"Running","startTime":"2023-04-03T07:13:24.9262501Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc4ab51a-4c38-4133-8afc-7c876db4607a","name":"bc4ab51a-4c38-4133-8afc-7c876db4607a","status":"Running","startTime":"2024-04-15T07:02:37.5600687Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '327' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:46 GMT + - Mon, 15 Apr 2024 07:02:39 GMT expires: - '-1' pragma: @@ -282,14 +194,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 42F026CD2B984B95810249B5B1D26FF8 Ref B: MAA201060515049 Ref C: 2024-04-15T07:02:38Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -307,21 +219,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc4ab51a-4c38-4133-8afc-7c876db4607a?api-version=2024-05-01-preview&t=638487613578712015&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGR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QrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=CXCslgd2UwVU22CS-oMjy_wB8xN6DdvGMFSLRxFzWgMTr2M_UTUd0ZUazoNvNGmW_teBLWbhOHGxXDMWF5MTO0ZBiQk_IjRD4tsBr8wb6X3xq4PlCKr5p6BUM5ioi86tU4D4J87EjfDxERFp0mMr6fDCs_Q0jUnEeyE48GTUEENwMLei_BX4-MgCN7cHFri3nZs0ac0bqfV004YtTzu3KMxU-z5gd3zzce8l8gDAplw7cuRXIPLdiwH9uINJk_bVaqUiiBrCFBczGx6T9rQVxHkrhU0y4ZO37Y5IqZ0oInbOhWdTsYBCwemvJQEzS90sOByfXzcAiXKroBIIIZ6reg&h=t0OXIHoERrHORapBvNNSUmKFtH-H64zdNaw8w71PfN8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","name":"c7f786ae-ad5c-403c-bcf3-8f33e65ab86b","status":"Succeeded","startTime":"2023-04-03T07:13:24.9262501Z","endTime":"2023-04-03T07:13:53.6822425Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc4ab51a-4c38-4133-8afc-7c876db4607a","name":"bc4ab51a-4c38-4133-8afc-7c876db4607a","status":"Succeeded","startTime":"2024-04-15T07:02:37.5600687Z","endTime":"2024-04-15T07:02:40.3733027Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:56 GMT + - Mon, 15 Apr 2024 07:02:50 GMT expires: - '-1' pragma: @@ -330,14 +242,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 856580935BB949ECA098FAE0ED95172E Ref B: MAA201060515049 Ref C: 2024-04-15T07:02:49Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -355,12 +267,12 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.091874Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.091874Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:02:36.6993535Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:02:36.6993535Z"}}' headers: cache-control: - no-cache @@ -369,7 +281,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:57 GMT + - Mon, 15 Apr 2024 07:02:51 GMT expires: - '-1' pragma: @@ -378,14 +290,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 39AB7CD05FF14D4FA5CDB2DDF15456DC Ref B: MAA201060515049 Ref C: 2024-04-15T07:02:50Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -403,21 +315,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:13:59 GMT + - Mon, 15 Apr 2024 07:02:53 GMT expires: - '-1' pragma: @@ -426,16 +338,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: A1095EA83D2E4C2FA3EF5B4587AC14FE Ref B: MAA201060514017 Ref C: 2024-04-15T07:02:53Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -453,12 +365,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.091874Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.091874Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:02:36.6993535Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:02:36.6993535Z"}}' headers: cache-control: - no-cache @@ -467,7 +379,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:00 GMT + - Mon, 15 Apr 2024 07:02:55 GMT expires: - '-1' pragma: @@ -476,14 +388,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C808318E364E47378F457C37DB2F2AAE Ref B: MAA201060515019 Ref C: 2024-04-15T07:02:54Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -501,12 +413,12 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.091874Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.091874Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:02:36.6993535Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:02:36.6993535Z"}}' headers: cache-control: - no-cache @@ -515,7 +427,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:03 GMT + - Mon, 15 Apr 2024 07:02:58 GMT expires: - '-1' pragma: @@ -524,14 +436,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 548B75DB2BD84C3980E0C3208E0CCABB Ref B: MAA201060513037 Ref C: 2024-04-15T07:02:56Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -549,21 +461,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:03 GMT + - Mon, 15 Apr 2024 07:02:59 GMT expires: - '-1' pragma: @@ -572,16 +484,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11998' + x-msedge-ref: + - 'Ref A: 45087DA650E0457E8A9EA9DFEB2004F5 Ref B: MAA201060514045 Ref C: 2024-04-15T07:02:59Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -599,9 +511,9 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"KPack buildpacksBinding does @@ -614,7 +526,7 @@ interactions: content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:05 GMT + - Mon, 15 Apr 2024 07:03:01 GMT expires: - '-1' pragma: @@ -623,10 +535,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 59139013B808464EA343C5CB6D871438 Ref B: MAA201060514031 Ref C: 2024-04-15T07:03:00Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -649,39 +565,43 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","bindingType":"NewRelic","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0","name":"binding-0","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:14:06.0798136Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:14:06.0798136Z"}}' + string: '{"properties":{"provisioningState":"Creating","bindingType":"NewRelic","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0","name":"binding-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:03:02.3262036Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:03:02.3262036Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/80b3a86b-4043-41d5-a314-240e5f94bda5?api-version=2024-05-01-preview&t=638487613836855741&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNx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odHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=LmqdfAOmtuNgOJQl18eL_zDc0e6bFAtN_K0Vm7O5fPvcejGWvUGlQMXv-_9WBLiW1r6bkQ_wFpmQW4SxOu5b98uytIzcIlwxf_dx3uBE5kLOiNg-90t4yfcnofMzkCdKRlJ1OpWQb8arciqc379lVen6FZXfoOR-XJpQWc7F59NhxsV-fZlZBA3t4UPjnUzXxD7JUGWaAoGMpXE2R0qIYMXk7-1SwoQ4whP3QVn-XH9IgHeHBfDhVNaISgnEH-s2KyFf5PcECjedNb3sdiRUQPMvKIPPjLeF3E-nzLZModD2rsm-Ex4SKbKcT4dyrPYN271wphdB3wNDoJXQvilxEg&h=rIKcT10xYFJYOHKK4L9k7e7ouk671WdfsWKuR1hJe-Y cache-control: - no-cache content-length: - - '693' + - '691' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:07 GMT + - Mon, 15 Apr 2024 07:03:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/89e73d58-cd82-40d9-8b73-74301effd3fd/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/80b3a86b-4043-41d5-a314-240e5f94bda5/Spring/clitest000002?api-version=2024-05-01-preview&t=638487613836855741&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2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UlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=OIjBS2RsxtCDgiPxIEpKQH6daggpkIwdHeLYP_ryFiE1TMcxR5roP5-_TsZjOTdlnx1LpOTM3kBVANpbl_4nT7S_UIqjNjfzf5B6rI3r61MKnzfTq_Yx0ToEsbdpRBJYFIvDqs13-bSFjFG01n2PGIuxDEY24AbTu-O55cYEPpiYLN4JXLNGxu9GyhEmINllwVaPXEvU_1fbhKl40RIyy2JIRrPlkLKQ_dYnX2P__bXhTA2HNH2teDkD1pcRhP8KQdiDaFHCWyR9_3LrhOkAwmvkga8XTRh7qglcyagxvsR9nkiXxXZk-DNMeohtNC0RB2EZKOOn-rgF3aHw4kWjZA&h=rdoNfQNi8BrhEGba85QHnNF4zklfQLQ4ai_5ImU4q8c pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: B5285B2FD94A4295973D606C75032645 Ref B: MAA201060514037 Ref C: 2024-04-15T07:03:02Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -699,117 +619,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd","name":"89e73d58-cd82-40d9-8b73-74301effd3fd","status":"Running","startTime":"2023-04-03T07:14:06.3940178Z"}' - headers: - cache-control: - - no-cache - content-length: - - '328' - content-type: - - application/json - date: - - Mon, 03 Apr 2023 07:14:07 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring build-service builder buildpack-binding create - Connection: - - keep-alive - ParameterSetName: - - --name --type --properties --secrets -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd","name":"89e73d58-cd82-40d9-8b73-74301effd3fd","status":"Running","startTime":"2023-04-03T07:14:06.3940178Z"}' - headers: - cache-control: - - no-cache - content-length: - - '328' - content-type: - - application/json - date: - - Mon, 03 Apr 2023 07:14:17 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring build-service builder buildpack-binding create - Connection: - - keep-alive - ParameterSetName: - - --name --type --properties --secrets -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/80b3a86b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_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=LmqdfAOmtuNgOJQl18eL_zDc0e6bFAtN_K0Vm7O5fPvcejGWvUGlQMXv-_9WBLiW1r6bkQ_wFpmQW4SxOu5b98uytIzcIlwxf_dx3uBE5kLOiNg-90t4yfcnofMzkCdKRlJ1OpWQb8arciqc379lVen6FZXfoOR-XJpQWc7F59NhxsV-fZlZBA3t4UPjnUzXxD7JUGWaAoGMpXE2R0qIYMXk7-1SwoQ4whP3QVn-XH9IgHeHBfDhVNaISgnEH-s2KyFf5PcECjedNb3sdiRUQPMvKIPPjLeF3E-nzLZModD2rsm-Ex4SKbKcT4dyrPYN271wphdB3wNDoJXQvilxEg&h=rIKcT10xYFJYOHKK4L9k7e7ouk671WdfsWKuR1hJe-Y response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd","name":"89e73d58-cd82-40d9-8b73-74301effd3fd","status":"Running","startTime":"2023-04-03T07:14:06.3940178Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/80b3a86b-4043-41d5-a314-240e5f94bda5","name":"80b3a86b-4043-41d5-a314-240e5f94bda5","status":"Running","startTime":"2024-04-15T07:03:03.4772152Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '327' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:27 GMT + - Mon, 15 Apr 2024 07:03:03 GMT expires: - '-1' pragma: @@ -818,14 +642,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 08D3B6206AC74D56B6BD5ECA08E5EF59 Ref B: MAA201060514037 Ref C: 2024-04-15T07:03:03Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -843,21 +667,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/80b3a86b-4043-41d5-a314-240e5f94bda5?api-version=2024-05-01-preview&t=638487613836855741&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0Eg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LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=LmqdfAOmtuNgOJQl18eL_zDc0e6bFAtN_K0Vm7O5fPvcejGWvUGlQMXv-_9WBLiW1r6bkQ_wFpmQW4SxOu5b98uytIzcIlwxf_dx3uBE5kLOiNg-90t4yfcnofMzkCdKRlJ1OpWQb8arciqc379lVen6FZXfoOR-XJpQWc7F59NhxsV-fZlZBA3t4UPjnUzXxD7JUGWaAoGMpXE2R0qIYMXk7-1SwoQ4whP3QVn-XH9IgHeHBfDhVNaISgnEH-s2KyFf5PcECjedNb3sdiRUQPMvKIPPjLeF3E-nzLZModD2rsm-Ex4SKbKcT4dyrPYN271wphdB3wNDoJXQvilxEg&h=rIKcT10xYFJYOHKK4L9k7e7ouk671WdfsWKuR1hJe-Y response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/89e73d58-cd82-40d9-8b73-74301effd3fd","name":"89e73d58-cd82-40d9-8b73-74301effd3fd","status":"Succeeded","startTime":"2023-04-03T07:14:06.3940178Z","endTime":"2023-04-03T07:14:33.6624044Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/80b3a86b-4043-41d5-a314-240e5f94bda5","name":"80b3a86b-4043-41d5-a314-240e5f94bda5","status":"Succeeded","startTime":"2024-04-15T07:03:03.4772152Z","endTime":"2024-04-15T07:03:06.0628765Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:38 GMT + - Mon, 15 Apr 2024 07:03:15 GMT expires: - '-1' pragma: @@ -866,14 +690,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F58C351C68864A9BAD1A30D4493E6495 Ref B: MAA201060514037 Ref C: 2024-04-15T07:03:14Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -891,21 +715,21 @@ interactions: ParameterSetName: - --name --type --properties --secrets -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","bindingType":"NewRelic","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0","name":"binding-0","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:14:06.0798136Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:14:06.0798136Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","bindingType":"NewRelic","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0","name":"binding-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:03:02.3262036Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:03:02.3262036Z"}}' headers: cache-control: - no-cache content-length: - - '694' + - '692' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:38 GMT + - Mon, 15 Apr 2024 07:03:16 GMT expires: - '-1' pragma: @@ -914,14 +738,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E7731CEA3970496AB7FEF8817EA9887A Ref B: MAA201060514037 Ref C: 2024-04-15T07:03:15Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -939,21 +763,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:41 GMT + - Mon, 15 Apr 2024 07:03:18 GMT expires: - '-1' pragma: @@ -962,16 +786,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 1469D23AA28640BA85A5BDEA2F9B1A57 Ref B: MAA201060514011 Ref C: 2024-04-15T07:03:18Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -989,21 +813,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","bindingType":"NewRelic","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0","name":"binding-0","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:14:06.0798136Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:14:06.0798136Z"}},{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:13:24.091874Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:13:24.091874Z"}}]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","bindingType":"NewRelic","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding-0","name":"binding-0","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:03:02.3262036Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:03:02.3262036Z"}},{"properties":{"provisioningState":"Succeeded","bindingType":"ApplicationInsights","launchProperties":{"properties":{"a":"b","b":"c"},"secrets":{"x":"*","y":"*"}}},"type":"Microsoft.AppPlatform/Spring/buildServices/builders/buildpackBindings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/buildServices/default/builders/default/buildpackBindings/binding","name":"binding","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:02:36.6993535Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:02:36.6993535Z"}}]}' headers: cache-control: - no-cache content-length: - - '1406' + - '1404' content-type: - application/json date: - - Mon, 03 Apr 2023 07:14:40 GMT + - Mon, 15 Apr 2024 07:03:21 GMT expires: - '-1' pragma: @@ -1012,14 +836,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: ED041A7E78CB4D0CAF7A4762037B096C Ref B: MAA201060514033 Ref C: 2024-04-15T07:03:20Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_client_auth.yaml b/src/spring/azext_spring/tests/latest/recordings/test_client_auth.yaml index 1d69fcdd2c7..3b1655ef41e 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_client_auth.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_client_auth.yaml @@ -21,7 +21,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -76,13 +76,13 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net/","keyVaultCertName":"cli-unittest","excludePrivateKey":true,"provisioningState":"Creating","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T10:10:11.9251455Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:10:11.9251455Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/cli-unittest/operationId/712f6b93-9620-4978-8c14-e1b96da40ccc?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/cli-unittest/operationId/712f6b93-9620-4978-8c14-e1b96da40ccc?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -94,7 +94,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/712f6b93-9620-4978-8c14-e1b96da40ccc/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/712f6b93-9620-4978-8c14-e1b96da40ccc/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -126,7 +126,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d773daacb0b44a8aa65671160fe99c53","networkProfile":{"outboundIPs":{"publicIPs":["20.242.240.135","20.242.242.241"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"haojianzhong@microsoft.com","createdByType":"User","createdAt":"2022-12-21T12:04:23.2024183Z","lastModifiedBy":"haojianzhong@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-12-21T12:04:23.2024183Z"}}' @@ -254,13 +254,13 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.4"},"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=eebffb0f-1488-4622-93b5-df9da041b930;IngestionEndpoint=https://eastus-2.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/"},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/cli-unittest/operationId/47b7e35c-d5ca-4578-8685-d1755c5303ce?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/cli-unittest/operationId/47b7e35c-d5ca-4578-8685-d1755c5303ce?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -272,7 +272,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/47b7e35c-d5ca-4578-8685-d1755c5303ce/Spring/cli-unittest?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/47b7e35c-d5ca-4578-8685-d1755c5303ce/Spring/cli-unittest?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -304,7 +304,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d773daacb0b44a8aa65671160fe99c53","networkProfile":{"outboundIPs":{"publicIPs":["20.242.240.135","20.242.242.241"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"haojianzhong@microsoft.com","createdByType":"User","createdAt":"2022-12-21T12:04:23.2024183Z","lastModifiedBy":"haojianzhong@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-12-21T12:18:15.0269319Z"}}' @@ -359,13 +359,13 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":true,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth","name":"test-client-auth","systemData":{"createdBy":"haojianzhong@microsoft.com","createdByType":"User","createdAt":"2022-12-21T12:18:25.5690042Z","lastModifiedBy":"haojianzhong@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-12-21T12:18:25.5690042Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/3dc326d5-2114-4ae4-ace5-b556fa069444?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/3dc326d5-2114-4ae4-ace5-b556fa069444?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -377,7 +377,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/3dc326d5-2114-4ae4-ace5-b556fa069444/Spring/test-client-auth?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/3dc326d5-2114-4ae4-ace5-b556fa069444/Spring/test-client-auth?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -410,7 +410,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest/operationId/3c4c6582-a498-42f1-8dd3-0e15cf03fa1c","name":"3c4c6582-a498-42f1-8dd3-0e15cf03fa1c","status":"Succeeded","startTime":"2023-03-29T10:10:13.2651233Z","endTime":"2023-03-29T10:10:20.5687026Z"}' @@ -465,13 +465,13 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"haojianzhong@microsoft.com","createdByType":"User","createdAt":"2022-12-21T12:18:41.8910045Z","lastModifiedBy":"haojianzhong@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-12-21T12:18:41.8910045Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9b3a9eda-b855-49a2-bce1-e0acd3704625?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/9b3a9eda-b855-49a2-bce1-e0acd3704625?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -483,7 +483,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/9b3a9eda-b855-49a2-bce1-e0acd3704625/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/9b3a9eda-b855-49a2-bce1-e0acd3704625/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -515,7 +515,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-client-auth-default-16-74bc7c9f97-zfdtv","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-12-21T12:18:47Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"haojianzhong@microsoft.com","createdByType":"User","createdAt":"2022-12-21T12:18:41.8910045Z","lastModifiedBy":"haojianzhong@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-12-21T12:18:41.8910045Z"}}' @@ -565,7 +565,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-client-auth-default-16-74bc7c9f97-zfdtv","status":"Running","discoveryStatus":"UNKNOWN","startTime":"2022-12-21T12:18:47Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"haojianzhong@microsoft.com","createdByType":"User","createdAt":"2022-12-21T12:18:41.8910045Z","lastModifiedBy":"haojianzhong@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-12-21T12:18:41.8910045Z"}}]}' @@ -617,7 +617,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"9f2205d5d2ca43ea97c3516dec1e2e06","excludePrivateKey":true,"thumbprint":"8ee74495d2fe82c19ee118fa52bf7ab88c170972","issuer":"*.asc-test.net","expirationDate":"2023-10-01T04:48:33.000+00:00","activateDate":"2022-10-01T04:38:33.000+00:00","subjectName":"*.asc-test.net","dnsNames":["cli.asc-test.net"],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert","name":"test-cert","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T10:10:11.9251455Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:10:11.9251455Z"}}' @@ -665,7 +665,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-client-auth-default-16-697ff948fb-27992","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-29T10:00:13Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T10:00:09.0231655Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:00:09.0231655Z"}}]}' @@ -720,13 +720,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"clientAuth":{"certificates":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert"]},"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth","name":"test-client-auth","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T09:59:55.3199846Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:10:49.3263919Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -738,7 +738,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7a233536-7528-4ea1-9e29-44e35df4232a/Spring/test-client-auth?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7a233536-7528-4ea1-9e29-44e35df4232a/Spring/test-client-auth?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -771,7 +771,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a","name":"7a233536-7528-4ea1-9e29-44e35df4232a","status":"Running","startTime":"2022-12-21T12:21:06.5012228Z"}' @@ -797,7 +797,7 @@ interactions: User-Agent: - AZURECLI/2.42.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-client-auth-default-16-697ff948fb-27992","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-29T10:00:13Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T10:00:09.0231655Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:00:09.0231655Z"}}' @@ -847,7 +847,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/test-client-auth/operationId/7a233536-7528-4ea1-9e29-44e35df4232a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-client-auth/operationId/f2e4e5fc-007b-4c4e-ae0d-8420bd02feaa","name":"f2e4e5fc-007b-4c4e-ae0d-8420bd02feaa","status":"Succeeded","startTime":"2023-03-29T10:10:50.6230416Z","endTime":"2023-03-29T10:11:03.1616325Z"}' @@ -895,7 +895,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"clientAuth":{"certificates":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert"]},"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth","name":"test-client-auth","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T09:59:55.3199846Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:10:49.3263919Z"}}' @@ -945,7 +945,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"clientAuth":{"certificates":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/certificates/test-cert"]},"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth","name":"test-client-auth","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T09:59:55.3199846Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:10:49.3263919Z"}}' @@ -995,7 +995,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"2Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-client-auth-default-16-697ff948fb-27992","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-03-29T10:00:13Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-29T10:00:09.0231655Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-29T10:00:09.0231655Z"}}]}' @@ -1050,7 +1050,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-client-auth/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_container_registry.yaml b/src/spring/azext_spring/tests/latest/recordings/test_container_registry.yaml index 4673b000b95..2d8e6100be7 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_container_registry.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_container_registry.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a6d810529f2f46239ce6daa29312f482","networkProfile":{"outboundIPs":{"publicIPs":["20.207.94.116","20.207.94.123"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-e.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e","name":"cli-unittest-e","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T06:45:05.9852557Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T06:45:05.9852557Z"}}' @@ -65,7 +65,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/containerRegistries/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/containerRegistries/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","credentials":{"type":"BasicAuth","server":"clitest1.azurecr.io","username":"clitest1"}},"type":"Microsoft.AppPlatform/Spring/containerRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/containerRegistries/default","name":"default","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T06:49:50.7388055Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T06:49:50.7388055Z"}}' @@ -113,7 +113,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"a6d810529f2f46239ce6daa29312f482","networkProfile":{"outboundIPs":{"publicIPs":["20.207.94.116","20.207.94.123"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-e.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e","name":"cli-unittest-e","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T06:45:05.9852557Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T06:45:05.9852557Z"}}' @@ -165,13 +165,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/containerRegistries/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-e/containerRegistries/default?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/fdeec930-0aa9-4369-9c79-0c29b998ffa4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/fdeec930-0aa9-4369-9c79-0c29b998ffa4?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -181,7 +181,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fdeec930-0aa9-4369-9c79-0c29b998ffa4/Spring/cli-unittest-e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fdeec930-0aa9-4369-9c79-0c29b998ffa4/Spring/cli-unittest-e?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -213,7 +213,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/fdeec930-0aa9-4369-9c79-0c29b998ffa4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/fdeec930-0aa9-4369-9c79-0c29b998ffa4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/cli-unittest-e/operationId/fdeec930-0aa9-4369-9c79-0c29b998ffa4","name":"fdeec930-0aa9-4369-9c79-0c29b998ffa4","status":"Succeeded","startTime":"2023-05-18T07:47:30.5058354Z","endTime":"2023-05-18T07:47:36.9685296Z"}' @@ -261,7 +261,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fdeec930-0aa9-4369-9c79-0c29b998ffa4/Spring/cli-unittest-e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fdeec930-0aa9-4369-9c79-0c29b998ffa4/Spring/cli-unittest-e?api-version=2024-05-01-preview response: body: string: '' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_create_asc_heavy_cases.yaml b/src/spring/azext_spring/tests/latest/recordings/test_create_asc_heavy_cases.yaml index 22e1c74afa4..9f9aa9ee284 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_create_asc_heavy_cases.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_create_asc_heavy_cases.yaml @@ -19,7 +19,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -74,13 +74,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"0445b07b41604cacb6d445a03ec27e2b","powerState":"Running","fqdn":"cli-unittest-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1","name":"cli-unittest-1","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:52:13.0146849Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:52:13.0146849Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -92,7 +92,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/c6759ff5-eafa-410f-9e42-e2d6ec06cfec/Spring/cli-unittest-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/c6759ff5-eafa-410f-9e42-e2d6ec06cfec/Spring/cli-unittest-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -124,7 +124,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -172,7 +172,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -220,7 +220,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -268,7 +268,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -316,7 +316,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -364,7 +364,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -412,7 +412,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -460,7 +460,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -508,7 +508,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -556,7 +556,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -604,7 +604,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -652,7 +652,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -700,7 +700,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -748,7 +748,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -796,7 +796,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -844,7 +844,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -892,7 +892,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -940,7 +940,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -988,7 +988,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1036,7 +1036,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1084,7 +1084,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1132,7 +1132,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1180,7 +1180,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1228,7 +1228,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1276,7 +1276,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1324,7 +1324,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1372,7 +1372,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1420,7 +1420,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1468,7 +1468,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1516,7 +1516,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1564,7 +1564,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Running","startTime":"2023-05-18T09:52:13.6849493Z"}' @@ -1612,7 +1612,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/c6759ff5-eafa-410f-9e42-e2d6ec06cfec","name":"c6759ff5-eafa-410f-9e42-e2d6ec06cfec","status":"Succeeded","startTime":"2023-05-18T09:52:13.6849493Z","endTime":"2023-05-18T09:58:03.3322826Z"}' @@ -1660,7 +1660,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"0445b07b41604cacb6d445a03ec27e2b","networkProfile":{"outboundIPs":{"publicIPs":["20.85.100.58"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1","name":"cli-unittest-1","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:52:13.0146849Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:52:13.0146849Z"}}' @@ -1783,13 +1783,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/94497f17-c8dd-46ec-8f28-74bc4f596ee5?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/94497f17-c8dd-46ec-8f28-74bc4f596ee5?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1801,7 +1801,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/94497f17-c8dd-46ec-8f28-74bc4f596ee5/Spring/cli-unittest-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/94497f17-c8dd-46ec-8f28-74bc4f596ee5/Spring/cli-unittest-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1833,7 +1833,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"0445b07b41604cacb6d445a03ec27e2b","networkProfile":{"outboundIPs":{"publicIPs":["20.85.100.58"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1","name":"cli-unittest-1","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:52:13.0146849Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:58:14.8527891Z"}}' @@ -1883,7 +1883,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"0445b07b41604cacb6d445a03ec27e2b","networkProfile":{"outboundIPs":{"publicIPs":["20.85.100.58"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1","name":"cli-unittest-1","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:52:13.0146849Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:58:14.8527891Z"}}' @@ -1933,7 +1933,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default","name":"default"}' @@ -1981,7 +1981,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"0445b07b41604cacb6d445a03ec27e2b","networkProfile":{"outboundIPs":{"publicIPs":["20.85.100.58"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1","name":"cli-unittest-1","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:52:13.0146849Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:58:14.8527891Z"}}' @@ -2031,7 +2031,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1/monitoringSettings/default","name":"default"}' @@ -2081,13 +2081,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-1?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/35402248-4b1c-442b-a28b-5a2696379d89?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-1/operationId/35402248-4b1c-442b-a28b-5a2696379d89?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2097,7 +2097,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/35402248-4b1c-442b-a28b-5a2696379d89/Spring/cli-unittest-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/35402248-4b1c-442b-a28b-5a2696379d89/Spring/cli-unittest-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2133,7 +2133,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -2188,13 +2188,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"d2185614950b48fd866627dbeccd7133","powerState":"Running","fqdn":"cli-unittest-2.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2","name":"cli-unittest-2","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:58:34.8920504Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:58:34.8920504Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2206,7 +2206,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/5cb744b6-db30-4830-9dda-a600fd8be6eb/Spring/cli-unittest-2?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/5cb744b6-db30-4830-9dda-a600fd8be6eb/Spring/cli-unittest-2?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2238,7 +2238,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2286,7 +2286,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2334,7 +2334,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2382,7 +2382,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2430,7 +2430,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2478,7 +2478,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2526,7 +2526,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2574,7 +2574,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2622,7 +2622,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2670,7 +2670,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2718,7 +2718,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2766,7 +2766,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2814,7 +2814,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2862,7 +2862,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2910,7 +2910,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -2958,7 +2958,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3006,7 +3006,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3054,7 +3054,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3102,7 +3102,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3150,7 +3150,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3198,7 +3198,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3246,7 +3246,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3294,7 +3294,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3342,7 +3342,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3390,7 +3390,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3438,7 +3438,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3486,7 +3486,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3534,7 +3534,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3582,7 +3582,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3630,7 +3630,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3678,7 +3678,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Running","startTime":"2023-05-18T09:58:35.3540953Z"}' @@ -3726,7 +3726,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/5cb744b6-db30-4830-9dda-a600fd8be6eb","name":"5cb744b6-db30-4830-9dda-a600fd8be6eb","status":"Succeeded","startTime":"2023-05-18T09:58:35.3540953Z","endTime":"2023-05-18T10:04:26.5276357Z"}' @@ -3774,7 +3774,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d2185614950b48fd866627dbeccd7133","networkProfile":{"outboundIPs":{"publicIPs":["20.22.27.254"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-2.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2","name":"cli-unittest-2","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:58:34.8920504Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:58:34.8920504Z"}}' @@ -3898,13 +3898,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/bfcd6ebd-1d6e-4eb7-9d8f-9c2e6f36469e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/bfcd6ebd-1d6e-4eb7-9d8f-9c2e6f36469e?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -3916,7 +3916,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/bfcd6ebd-1d6e-4eb7-9d8f-9c2e6f36469e/Spring/cli-unittest-2?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/bfcd6ebd-1d6e-4eb7-9d8f-9c2e6f36469e/Spring/cli-unittest-2?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -3948,7 +3948,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d2185614950b48fd866627dbeccd7133","networkProfile":{"outboundIPs":{"publicIPs":["20.22.27.254"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-2.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2","name":"cli-unittest-2","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:58:34.8920504Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:04:39.1805708Z"}}' @@ -3998,7 +3998,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d2185614950b48fd866627dbeccd7133","networkProfile":{"outboundIPs":{"publicIPs":["20.22.27.254"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-2.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2","name":"cli-unittest-2","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:58:34.8920504Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:04:39.1805708Z"}}' @@ -4048,7 +4048,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default","name":"default"}' @@ -4096,7 +4096,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d2185614950b48fd866627dbeccd7133","networkProfile":{"outboundIPs":{"publicIPs":["20.22.27.254"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-2.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2","name":"cli-unittest-2","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:58:34.8920504Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:04:39.1805708Z"}}' @@ -4146,7 +4146,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=3752dcae-c088-46c7-bb64-4195d58c0687;IngestionEndpoint=https://centralindia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://centralindia.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":0.1,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2/monitoringSettings/default","name":"default"}' @@ -4196,13 +4196,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-2?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/3e47f51b-a140-4960-a8eb-f8b5398e551c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-2/operationId/3e47f51b-a140-4960-a8eb-f8b5398e551c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -4212,7 +4212,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3e47f51b-a140-4960-a8eb-f8b5398e551c/Spring/cli-unittest-2?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3e47f51b-a140-4960-a8eb-f8b5398e551c/Spring/cli-unittest-2?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -4248,7 +4248,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -4303,13 +4303,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"561f3cb346ad47bbad9d0e1655f07fb6","powerState":"Running","fqdn":"cli-unittest-3.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3","name":"cli-unittest-3","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:04:58.3347964Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:04:58.3347964Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -4321,7 +4321,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/cd86dd77-a57b-45f9-98ca-3f2594e60da4/Spring/cli-unittest-3?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/cd86dd77-a57b-45f9-98ca-3f2594e60da4/Spring/cli-unittest-3?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -4353,7 +4353,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4401,7 +4401,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4449,7 +4449,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4497,7 +4497,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4545,7 +4545,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4593,7 +4593,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4641,7 +4641,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4689,7 +4689,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4737,7 +4737,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4785,7 +4785,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4833,7 +4833,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4881,7 +4881,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4929,7 +4929,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -4977,7 +4977,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5025,7 +5025,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5073,7 +5073,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5121,7 +5121,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5169,7 +5169,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5217,7 +5217,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5265,7 +5265,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5313,7 +5313,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5361,7 +5361,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5409,7 +5409,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5457,7 +5457,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5505,7 +5505,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5553,7 +5553,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5601,7 +5601,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5649,7 +5649,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Running","startTime":"2023-05-18T10:04:58.8760055Z"}' @@ -5697,7 +5697,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/cd86dd77-a57b-45f9-98ca-3f2594e60da4","name":"cd86dd77-a57b-45f9-98ca-3f2594e60da4","status":"Succeeded","startTime":"2023-05-18T10:04:58.8760055Z","endTime":"2023-05-18T10:10:19.6634784Z"}' @@ -5745,7 +5745,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"561f3cb346ad47bbad9d0e1655f07fb6","networkProfile":{"outboundIPs":{"publicIPs":["20.10.234.199"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-3.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3","name":"cli-unittest-3","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:04:58.3347964Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:04:58.3347964Z"}}' @@ -5800,13 +5800,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/6d3ebd65-57fc-4738-b063-a02476ad2601?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/6d3ebd65-57fc-4738-b063-a02476ad2601?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -5818,7 +5818,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/6d3ebd65-57fc-4738-b063-a02476ad2601/Spring/cli-unittest-3?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/6d3ebd65-57fc-4738-b063-a02476ad2601/Spring/cli-unittest-3?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -5850,7 +5850,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"561f3cb346ad47bbad9d0e1655f07fb6","networkProfile":{"outboundIPs":{"publicIPs":["20.10.234.199"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-3.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3","name":"cli-unittest-3","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:04:58.3347964Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:10:30.4327927Z"}}' @@ -5900,7 +5900,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"561f3cb346ad47bbad9d0e1655f07fb6","networkProfile":{"outboundIPs":{"publicIPs":["20.10.234.199"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-3.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3","name":"cli-unittest-3","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:04:58.3347964Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:10:30.4327927Z"}}' @@ -5950,7 +5950,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default","name":"default"}' @@ -5998,7 +5998,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"561f3cb346ad47bbad9d0e1655f07fb6","networkProfile":{"outboundIPs":{"publicIPs":["20.10.234.199"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-3.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3","name":"cli-unittest-3","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:04:58.3347964Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:10:30.4327927Z"}}' @@ -6048,7 +6048,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"00000000-0000-0000-0000-000000000000","appInsightsSamplingRate":1.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3/monitoringSettings/default","name":"default"}' @@ -6098,13 +6098,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-3?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/a92bdcc7-50d6-41f6-ad97-b679004b174c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-3/operationId/a92bdcc7-50d6-41f6-ad97-b679004b174c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -6114,7 +6114,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/a92bdcc7-50d6-41f6-ad97-b679004b174c/Spring/cli-unittest-3?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/a92bdcc7-50d6-41f6-ad97-b679004b174c/Spring/cli-unittest-3?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -6150,7 +6150,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -6205,13 +6205,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"55fb6f93aa7f4be0ad232e7415675103","powerState":"Running","fqdn":"cli-unittest-4.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4","name":"cli-unittest-4","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:10:50.4723998Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:10:50.4723998Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -6223,7 +6223,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/0c05d593-6e80-4918-b7dd-7353ccd5d791/Spring/cli-unittest-4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/0c05d593-6e80-4918-b7dd-7353ccd5d791/Spring/cli-unittest-4?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -6255,7 +6255,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6303,7 +6303,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6351,7 +6351,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6399,7 +6399,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6447,7 +6447,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6495,7 +6495,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6543,7 +6543,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6591,7 +6591,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6639,7 +6639,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6687,7 +6687,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6735,7 +6735,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6783,7 +6783,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6831,7 +6831,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6879,7 +6879,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6927,7 +6927,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -6975,7 +6975,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7023,7 +7023,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7071,7 +7071,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7119,7 +7119,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7167,7 +7167,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7215,7 +7215,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7263,7 +7263,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7311,7 +7311,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7359,7 +7359,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7407,7 +7407,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7455,7 +7455,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7503,7 +7503,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7551,7 +7551,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7599,7 +7599,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7647,7 +7647,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7695,7 +7695,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7743,7 +7743,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7791,7 +7791,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Running","startTime":"2023-05-18T10:10:50.8565702Z"}' @@ -7839,7 +7839,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/0c05d593-6e80-4918-b7dd-7353ccd5d791","name":"0c05d593-6e80-4918-b7dd-7353ccd5d791","status":"Succeeded","startTime":"2023-05-18T10:10:50.8565702Z","endTime":"2023-05-18T10:17:04.3783961Z"}' @@ -7887,7 +7887,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"55fb6f93aa7f4be0ad232e7415675103","networkProfile":{"outboundIPs":{"publicIPs":["20.22.165.121"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-4.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4","name":"cli-unittest-4","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:10:50.4723998Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:10:50.4723998Z"}}' @@ -7943,13 +7943,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/c33c6c54-d7e8-4093-822e-c194545b05bf?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/c33c6c54-d7e8-4093-822e-c194545b05bf?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -7961,7 +7961,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/c33c6c54-d7e8-4093-822e-c194545b05bf/Spring/cli-unittest-4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/c33c6c54-d7e8-4093-822e-c194545b05bf/Spring/cli-unittest-4?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -7993,7 +7993,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"55fb6f93aa7f4be0ad232e7415675103","networkProfile":{"outboundIPs":{"publicIPs":["20.22.165.121"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-4.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4","name":"cli-unittest-4","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:10:50.4723998Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:17:14.9236352Z"}}' @@ -8043,7 +8043,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"55fb6f93aa7f4be0ad232e7415675103","networkProfile":{"outboundIPs":{"publicIPs":["20.22.165.121"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-4.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4","name":"cli-unittest-4","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:10:50.4723998Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:17:14.9236352Z"}}' @@ -8093,7 +8093,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default","name":"default"}' @@ -8141,7 +8141,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"55fb6f93aa7f4be0ad232e7415675103","networkProfile":{"outboundIPs":{"publicIPs":["20.22.165.121"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-4.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4","name":"cli-unittest-4","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T10:10:50.4723998Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T10:17:14.9236352Z"}}' @@ -8191,7 +8191,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://xxxxxxxxxxxxxxxxxxxxxxxx/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4/monitoringSettings/default","name":"default"}' @@ -8241,13 +8241,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-4?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/541fa334-4fbe-4cfa-83e2-8001c7bc771f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-4/operationId/541fa334-4fbe-4cfa-83e2-8001c7bc771f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -8257,7 +8257,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/541fa334-4fbe-4cfa-83e2-8001c7bc771f/Spring/cli-unittest-4?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/541fa334-4fbe-4cfa-83e2-8001c7bc771f/Spring/cli-unittest-4?api-version=2024-05-01-preview pragma: - no-cache request-context: diff --git a/src/spring/azext_spring/tests/latest/recordings/test_create_asc_with_ai_basic_case.yaml b/src/spring/azext_spring/tests/latest/recordings/test_create_asc_with_ai_basic_case.yaml index 5b097c1048a..16e0444071c 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_create_asc_with_ai_basic_case.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_create_asc_with_ai_basic_case.yaml @@ -19,7 +19,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -74,13 +74,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"d8a86c804e8e4091bf857400321ab5eb","powerState":"Running","fqdn":"cli-unittest-11.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11","name":"cli-unittest-11","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:43:43.5909392Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:43:43.5909392Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -92,7 +92,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/b0b58a92-78ca-4430-8561-44ea71ee214d/Spring/cli-unittest-11?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/b0b58a92-78ca-4430-8561-44ea71ee214d/Spring/cli-unittest-11?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -124,7 +124,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -172,7 +172,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -220,7 +220,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -268,7 +268,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -316,7 +316,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -364,7 +364,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -412,7 +412,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -460,7 +460,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -508,7 +508,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -556,7 +556,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -604,7 +604,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -652,7 +652,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -700,7 +700,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -748,7 +748,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -796,7 +796,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -844,7 +844,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -892,7 +892,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -940,7 +940,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -988,7 +988,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1036,7 +1036,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1084,7 +1084,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1132,7 +1132,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1180,7 +1180,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1228,7 +1228,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1276,7 +1276,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1324,7 +1324,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1372,7 +1372,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1420,7 +1420,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1468,7 +1468,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1516,7 +1516,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1564,7 +1564,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1612,7 +1612,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Running","startTime":"2023-05-18T09:43:44.0469424Z"}' @@ -1660,7 +1660,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/6eb7084d-949b-4a74-a41a-8caade218d56","name":"6eb7084d-949b-4a74-a41a-8caade218d56","status":"Succeeded","startTime":"2023-05-18T09:43:44.0469424Z","endTime":"2023-05-18T09:49:55.934986Z"}' @@ -1708,7 +1708,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d8a86c804e8e4091bf857400321ab5eb","networkProfile":{"outboundIPs":{"publicIPs":["20.85.78.142"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-11.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11","name":"cli-unittest-11","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:43:43.5909392Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:43:43.5909392Z"}}' @@ -1756,7 +1756,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -1800,7 +1800,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -1844,7 +1844,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -1888,7 +1888,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -1932,7 +1932,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -1976,7 +1976,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2020,7 +2020,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2064,7 +2064,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2108,7 +2108,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2152,7 +2152,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2196,7 +2196,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2240,7 +2240,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2284,7 +2284,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2328,7 +2328,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2372,7 +2372,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2416,7 +2416,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Running","startTime":"2023-03-30T11:16:27.1620239Z"}' @@ -2460,7 +2460,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/b0b58a92-78ca-4430-8561-44ea71ee214d","name":"b0b58a92-78ca-4430-8561-44ea71ee214d","status":"Succeeded","startTime":"2023-03-30T11:16:27.1620239Z","endTime":"2023-03-30T11:25:56.0245324Z"}' @@ -2504,7 +2504,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"db25886347ec4a1c8e20dddf4a05fef5","networkProfile":{"outboundIPs":{"publicIPs":["20.62.55.27"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-11.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11","name":"cli-unittest-11","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-03-30T11:16:26.493654Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T11:16:26.493654Z"}}' @@ -2628,13 +2628,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=7342d7f8-89d3-4f93-a3cb-b386b41c86c9;IngestionEndpoint=https://eastus2-0.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus2.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11/monitoringSettings/default","name":"default"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/3ad5dc4b-613a-4a59-81a2-7ffe7c11ee59?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/3ad5dc4b-613a-4a59-81a2-7ffe7c11ee59?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2646,7 +2646,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3ad5dc4b-613a-4a59-81a2-7ffe7c11ee59/Spring/cli-unittest-11?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3ad5dc4b-613a-4a59-81a2-7ffe7c11ee59/Spring/cli-unittest-11?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2678,7 +2678,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d8a86c804e8e4091bf857400321ab5eb","networkProfile":{"outboundIPs":{"publicIPs":["20.85.78.142"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-11.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11","name":"cli-unittest-11","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:43:43.5909392Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:50:05.2063914Z"}}' @@ -2728,7 +2728,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"d8a86c804e8e4091bf857400321ab5eb","networkProfile":{"outboundIPs":{"publicIPs":["20.85.78.142"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-11.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11","name":"cli-unittest-11","systemData":{"createdBy":"qingyliu@microsoft.com","createdByType":"User","createdAt":"2023-05-18T09:43:43.5909392Z","lastModifiedBy":"qingyliu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-18T09:50:05.2063914Z"}}' @@ -2778,7 +2778,7 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=7342d7f8-89d3-4f93-a3cb-b386b41c86c9;IngestionEndpoint=https://eastus2-0.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus2.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.11"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11/monitoringSettings/default","name":"default"}' @@ -2828,13 +2828,13 @@ interactions: User-Agent: - AZURECLI/2.48.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.3 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-11?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/12ca061e-34fa-4f1d-999e-0a21c452486d?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-11/operationId/12ca061e-34fa-4f1d-999e-0a21c452486d?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2844,7 +2844,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/12ca061e-34fa-4f1d-999e-0a21c452486d/Spring/cli-unittest-11?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/12ca061e-34fa-4f1d-999e-0a21c452486d/Spring/cli-unittest-11?api-version=2024-05-01-preview pragma: - no-cache request-context: diff --git a/src/spring/azext_spring/tests/latest/recordings/test_create_asc_without_ai_cases.yaml b/src/spring/azext_spring/tests/latest/recordings/test_create_asc_without_ai_cases.yaml index 54d55a7da81..4d309452ffb 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_create_asc_without_ai_cases.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_create_asc_without_ai_cases.yaml @@ -19,7 +19,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus2/checkNameAvailability?api-version=2024-05-01-preview response: body: string: '{"nameAvailable":true}' @@ -74,13 +74,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"3b8cb45a5e624383be671c5bfe2bccb3","powerState":"Running","fqdn":"cli-unittest-9-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1","name":"cli-unittest-9-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T04:58:50.6853133Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T04:58:50.6853133Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -92,7 +92,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0/Spring/cli-unittest-9-1?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -124,7 +124,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -172,7 +172,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -220,7 +220,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -268,7 +268,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -316,7 +316,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -364,7 +364,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -412,7 +412,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -460,7 +460,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -508,7 +508,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -556,7 +556,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -604,7 +604,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -652,7 +652,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -700,7 +700,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -748,7 +748,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -796,7 +796,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -844,7 +844,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -892,7 +892,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -940,7 +940,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -988,7 +988,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1036,7 +1036,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1084,7 +1084,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1132,7 +1132,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1180,7 +1180,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1228,7 +1228,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1276,7 +1276,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1324,7 +1324,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1372,7 +1372,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Running","startTime":"2022-09-07T04:58:51.431995Z"}' @@ -1420,7 +1420,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","name":"8f80a56a-1d39-44e4-ba2c-0fb093cfe1b0","status":"Succeeded","startTime":"2022-09-07T04:58:51.431995Z","endTime":"2022-09-07T05:04:07.652934Z"}' @@ -1468,7 +1468,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"3b8cb45a5e624383be671c5bfe2bccb3","networkProfile":{"outboundIPs":{"publicIPs":["20.22.37.207"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-9-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1","name":"cli-unittest-9-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T04:58:50.6853133Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T04:58:50.6853133Z"}}' @@ -1518,7 +1518,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"3b8cb45a5e624383be671c5bfe2bccb3","networkProfile":{"outboundIPs":{"publicIPs":["20.22.37.207"]}},"powerState":"Running","fqdn":"cli-unittest-9-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1","name":"cli-unittest-9-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T04:58:50.6853133Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T04:58:50.6853133Z"}}' @@ -1568,7 +1568,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"3b8cb45a5e624383be671c5bfe2bccb3","networkProfile":{"outboundIPs":{"publicIPs":["20.22.37.207"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest-9-1.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"B0","tier":"Basic"},"location":"eastus2","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1","name":"cli-unittest-9-1","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T04:58:50.6853133Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T04:58:50.6853133Z"}}' @@ -1618,7 +1618,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1/monitoringSettings/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.2.11"},"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1/monitoringSettings/default","name":"default"}' @@ -1668,13 +1668,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest-9-1?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/3674feda-29cc-4022-8e36-848cd43d34cc?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationStatus/cli-unittest-9-1/operationId/3674feda-29cc-4022-8e36-848cd43d34cc?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1684,7 +1684,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3674feda-29cc-4022-8e36-848cd43d34cc/Spring/cli-unittest-9-1?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2/operationResults/3674feda-29cc-4022-8e36-848cd43d34cc/Spring/cli-unittest-9-1?api-version=2024-05-01-preview pragma: - no-cache request-context: diff --git a/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator.yaml b/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator.yaml index d4ec43733ac..1836a4d15af 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator.yaml @@ -1,6 +1,105 @@ interactions: - request: - body: '{"properties": {"displayName": "acc-name", "gitRepository": {"url": "https://github.com/Azure-Samples/piggymetrics-config", + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring application-accelerator customized-accelerator list + Connection: + - keep-alive + ParameterSetName: + - -g -s + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '948' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 08:53:05 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + x-msedge-ref: + - 'Ref A: DB3C41D0620A4ECABB2156594358DE01 Ref B: MAA201060516033 Ref C: 2024-04-15T08:53:05Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring application-accelerator customized-accelerator list + Connection: + - keep-alive + ParameterSetName: + - -g -s + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators?api-version=2024-05-01-preview + response: + body: + string: '{"value":[{"properties":{"provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:47.2469766Z"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '841' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 08:53:09 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 4C8A023819254913B7EAFF7F8E2C27FD Ref B: MAA201060513047 Ref C: 2024-04-15T08:53:08Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"acceleratorType": "Accelerator", "displayName": "acc-name", + "gitRepository": {"url": "https://github.com/Azure-Samples/piggymetrics-config", "intervalInSeconds": 10, "branch": "master", "authSetting": {"authType": "Public"}}}}' headers: Accept: @@ -12,45 +111,49 @@ interactions: Connection: - keep-alive Content-Length: - - '209' + - '243' Content-Type: - application/json ParameterSetName: - -n -g -s --display-name --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","displayName":"acc-name","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","intervalInSeconds":10,"branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:15.3720124Z"}}' + string: '{"properties":{"provisioningState":"Creating","displayName":"acc-name","acceleratorType":"Accelerator","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","intervalInSeconds":10,"branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:53:11.7086178Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:53:11.7086178Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57?api-version=2024-05-01-preview&t=638487679928804848&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFBQcDAjA9BgkrBgEE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h=s2zJqU5MDP3LUK9g9ETFrOgscjlmUKKuiXHgHW973G4 cache-control: - no-cache content-length: - - '771' + - '801' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:16 GMT + - Mon, 15 Apr 2024 08:53:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/88b06971-eee4-4a91-a0f7-945fe3088baa/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57/Spring/clitest000002?api-version=2024-05-01-preview&t=638487679928961118&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUu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-FsWk3SHffDlK7MC14U4hhCNEJY4srM9kcB4JJvwIn1SXXJHDa-4G9lt05q83jvSsNxgzFhxQy1H0OkujPcgvjawxvyUeF5acR8jk3LUjAaI8wHErabiGb55yXx-NsTDavMGOUp37n37GzuxOXc6kVmBn3Cka7dq24AcFStEs4PFQccMpK_x-SothbYhahrl-7JjtFEdB-UVswKItLvCQhepfnDBmpv-K9KjtlkP_1GvgEx8xMklSJD0A&h=ichNdpEuCKLyux4LKjdyJHp_P1nFCgLRKRj6T88kp74 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 10806F08E94F49B49CA9BAA2A100A56B Ref B: MAA201060516031 Ref C: 2024-04-15T08:53:10Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -68,21 +171,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57?api-version=2024-05-01-preview&t=638487679928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0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmwwFwYDVR0gBBAwDjAMBgorBgEEAYI3ewEBMB8GA1UdIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=sg2ViU1yj1zXefyBd6SmftVioUjpycNxrV93pZ2pokeZlqRKqeAbSY9GlOfHCewYyfKyu0kHXajgskQXdH_Ak7xAcHK3gvaHKIb1XEdBwUPsgX-AEBytt0uYA4y_dyoX0KqxA4an-MUN64Y4BhQ3VaI3LxbHmdVEhEaazn3VED8VLZKmnKL5H2k0ZnW-XzH8_YaBbuH0PzOEHMxObd3Jm-qeGEDWdu78FlVglrwB3girDZpYdNyGCTuVRFrgRz9Alr_D7Q0LZdh_EF3MtIcrdpvt351iuuyd8t934Lbrd8Azq-rku31d2xVIMpCrrYd5Q-t1umRs-wEDBopGX38R-w&h=s2zJqU5MDP3LUK9g9ETFrOgscjlmUKKuiXHgHW973G4 response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa","name":"88b06971-eee4-4a91-a0f7-945fe3088baa","status":"Running","startTime":"2023-03-24T06:01:16.3548364Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57","name":"38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57","status":"Running","startTime":"2024-04-15T08:53:12.7213393Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:16 GMT + - Mon, 15 Apr 2024 08:53:13 GMT expires: - '-1' pragma: @@ -91,14 +194,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 17D37B5F3ADE4ACCADE4FDCFAEE7C542 Ref B: MAA201060516031 Ref C: 2024-04-15T08:53:13Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -116,21 +219,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57?api-version=2024-05-01-preview&t=638487679928804848&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFBQcDAjA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiGkOMNhNW0eITxiz6Fm90Wzp0SgWCC9fYrg_LRIAIBZAIBCjCCAdoGCCsGAQU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d/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa","name":"88b06971-eee4-4a91-a0f7-945fe3088baa","status":"Running","startTime":"2023-03-24T06:01:16.3548364Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57","name":"38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57","status":"Running","startTime":"2024-04-15T08:53:12.7213393Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:26 GMT + - Mon, 15 Apr 2024 08:53:24 GMT expires: - '-1' pragma: @@ -139,14 +242,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C6CB929AB4A24A9DA9999315A52999FE Ref B: MAA201060516031 Ref C: 2024-04-15T08:53:24Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -164,21 +267,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57?api-version=2024-05-01-preview&t=638487679928804848&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFBQcDAjA9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opGX38R-w&h=s2zJqU5MDP3LUK9g9ETFrOgscjlmUKKuiXHgHW973G4 response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa","name":"88b06971-eee4-4a91-a0f7-945fe3088baa","status":"Succeeded","startTime":"2023-03-24T06:01:16.3548364Z","endTime":"2023-03-24T06:01:32.8492943Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57","name":"38c6c52b-1a45-4d2a-8132-4f5cb8d0aa57","status":"Succeeded","startTime":"2024-04-15T08:53:12.7213393Z","endTime":"2024-04-15T08:53:34.2803288Z"}' headers: cache-control: - no-cache content-length: - - '380' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:37 GMT + - Mon, 15 Apr 2024 08:53:35 GMT expires: - '-1' pragma: @@ -187,14 +290,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F4DDE3D766354C16A2EA9F107E6B87BC Ref B: MAA201060516031 Ref C: 2024-04-15T08:53:35Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -212,21 +315,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","intervalInSeconds":10,"branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:15.3720124Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","acceleratorType":"Accelerator","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","intervalInSeconds":10,"branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:53:11.7086178Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:53:11.7086178Z"}}' headers: cache-control: - no-cache content-length: - - '772' + - '802' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:38 GMT + - Mon, 15 Apr 2024 08:53:36 GMT expires: - '-1' pragma: @@ -235,21 +338,21 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 70710737D89244D8BA328B374763BF77 Ref B: MAA201060516031 Ref C: 2024-04-15T08:53:36Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: '{"properties": {"displayName": "acc-name", "description": "desc", "gitRepository": - {"url": "https://github.com/Azure-Samples/piggymetrics-config", "branch": "master", - "authSetting": {"authType": "Public"}}}}' + body: '{"properties": {"acceleratorType": "Accelerator", "displayName": "acc-name", + "description": "desc", "gitRepository": {"url": "https://github.com/Azure-Samples/piggymetrics-config", + "branch": "master", "authSetting": {"authType": "Public"}}}}' headers: Accept: - application/json @@ -260,45 +363,49 @@ interactions: Connection: - keep-alive Content-Length: - - '207' + - '241' Content-Type: - application/json ParameterSetName: - -n -g -s --display-name --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","displayName":"acc-name","description":"desc","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}' + string: '{"properties":{"provisioningState":"Updating","displayName":"acc-name","description":"desc","acceleratorType":"Accelerator","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:53:11.7086178Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:53:38.8984462Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc26b8ba-6678-4597-92d8-1b84e7b6cbc2?api-version=2024-05-01-preview&t=638487680200860139&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyME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DQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=X_O-hTtLjIQ8z15P5rYE9Fnkb0zWOWEcf_LaDuxYys6M3cSAoRtJrzVKrIGWtT9gL7NzmUuwNa5Ku9RvYJ5iXcy8ePL7zU1IXDBWkj-EmOh6TXCAdCgZL6yfJk7eWiODASXCmGCvF6gLlACF0bRkrUL4Ddb1tUWfEYgJTctERhyT66stuwlKLk9ztFJLgMHK8pzXDBFerN59iV3A3oJq7pGq0ryoHU_gOaoZt7CEMaicegPkTfYBUVZu9kRTPsXm57RjzS1d8DeiLwh9ce2fTTKI3CNsd0Aaj_iqvwATVjQDCY0b1FUkeAqtkgK1QCoI41psMtKMRe3eade_7ozBvg&h=FKFAJiSrwWw3o6mov77fHcmkj2zLeq8_trpvdL8cASs cache-control: - no-cache content-length: - - '769' + - '799' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:42 GMT + - Mon, 15 Apr 2024 08:53:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/e0dabe78-fd08-4eee-8713-a6c049c4037e/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/bc26b8ba-6678-4597-92d8-1b84e7b6cbc2/Spring/clitest000002?api-version=2024-05-01-preview&t=638487680200860139&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTI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hvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=FqjcpoZRUIjwfmJoGEIe2AkEJb8f0zRvHhmVF-6jBbq5w6OZn_o9SOyXUx_se1pt0xAYvEJvNdjiocpLdgZjHUnwlWgcSWugsd4EGWvCdrYYDIOc6e-JOVHPC1nQqY54Su5T130mtJ-4EpsW5m8f9WEbXU-0bomndT_adMnT1gQMLuqPvj8psT7fe2youwq_etXb7tt_6oUTK7Z5qTM_ZxM2k7WjP0qSzyGOwGXO6_ZftFRasVYRQYV2FuwXwZ89bVg623swGCfz5IURMeF-hPwnAh886xCg9tMoFGp13_eRf9yg6FjMCs3OkdndM3jN7Rb2aPP7jDWuOtzrAREhxg&h=P_MEUX7auf29Qd36FzaJLHN1T7IVKyUsMMkp6bs1KqA pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: F48380639C994D1AB54A99CA3D28E154 Ref B: MAA201060514037 Ref C: 2024-04-15T08:53:38Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -316,21 +423,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc26b8ba-6678-4597-92d8-1b84e7b6cbc2?api-version=2024-05-01-preview&t=638487680200860139&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLl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ozBvg&h=FKFAJiSrwWw3o6mov77fHcmkj2zLeq8_trpvdL8cASs response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e","name":"e0dabe78-fd08-4eee-8713-a6c049c4037e","status":"Running","startTime":"2023-03-24T06:01:42.4157328Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc26b8ba-6678-4597-92d8-1b84e7b6cbc2","name":"bc26b8ba-6678-4597-92d8-1b84e7b6cbc2","status":"Running","startTime":"2024-04-15T08:53:39.9241599Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:42 GMT + - Mon, 15 Apr 2024 08:53:40 GMT expires: - '-1' pragma: @@ -339,14 +446,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6788152BE13F467FB7D0C4EC1857AEC2 Ref B: MAA201060514037 Ref C: 2024-04-15T08:53:40Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -364,21 +471,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc26b8ba-6678-4597-92d8-1b84e7b6cbc2?api-version=2024-05-01-preview&t=638487680200860139&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNx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SUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=X_O-hTtLjIQ8z15P5rYE9Fnkb0zWOWEcf_LaDuxYys6M3cSAoRtJrzVKrIGWtT9gL7NzmUuwNa5Ku9RvYJ5iXcy8ePL7zU1IXDBWkj-EmOh6TXCAdCgZL6yfJk7eWiODASXCmGCvF6gLlACF0bRkrUL4Ddb1tUWfEYgJTctERhyT66stuwlKLk9ztFJLgMHK8pzXDBFerN59iV3A3oJq7pGq0ryoHU_gOaoZt7CEMaicegPkTfYBUVZu9kRTPsXm57RjzS1d8DeiLwh9ce2fTTKI3CNsd0Aaj_iqvwATVjQDCY0b1FUkeAqtkgK1QCoI41psMtKMRe3eade_7ozBvg&h=FKFAJiSrwWw3o6mov77fHcmkj2zLeq8_trpvdL8cASs response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e","name":"e0dabe78-fd08-4eee-8713-a6c049c4037e","status":"Succeeded","startTime":"2023-03-24T06:01:42.4157328Z","endTime":"2023-03-24T06:01:48.6879058Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/bc26b8ba-6678-4597-92d8-1b84e7b6cbc2","name":"bc26b8ba-6678-4597-92d8-1b84e7b6cbc2","status":"Succeeded","startTime":"2024-04-15T08:53:39.9241599Z","endTime":"2024-04-15T08:53:50.1814956Z"}' headers: cache-control: - no-cache content-length: - - '380' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:52 GMT + - Mon, 15 Apr 2024 08:53:51 GMT expires: - '-1' pragma: @@ -387,14 +494,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0A87ED1A26A74122865D8D9CAC3C89E8 Ref B: MAA201060514037 Ref C: 2024-04-15T08:53:51Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -412,21 +519,21 @@ interactions: ParameterSetName: - -n -g -s --display-name --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","description":"desc","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","description":"desc","acceleratorType":"Accelerator","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:53:11.7086178Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:53:38.8984462Z"}}' headers: cache-control: - no-cache content-length: - - '770' + - '800' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:54 GMT + - Mon, 15 Apr 2024 08:53:52 GMT expires: - '-1' pragma: @@ -435,14 +542,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 35D3FAA307DC4CE79D367CDEC640692C Ref B: MAA201060514037 Ref C: 2024-04-15T08:53:52Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -460,21 +567,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:58 GMT + - Mon, 15 Apr 2024 08:53:55 GMT expires: - '-1' pragma: @@ -483,16 +590,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: A3EBB53264D644468A7C5B9B090FAC9C Ref B: MAA201060513047 Ref C: 2024-04-15T08:53:54Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -510,21 +617,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","description":"desc","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/","name":"acc-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","description":"desc","acceleratorType":"Accelerator","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/","name":"acc-name","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:53:11.7086178Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:53:38.8984462Z"}},{"properties":{"provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:47.2469766Z"}}]}' headers: cache-control: - no-cache content-length: - - '774' + - '1634' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:01 GMT + - Mon, 15 Apr 2024 08:53:56 GMT expires: - '-1' pragma: @@ -533,14 +640,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9B0451A60A8A48CE9D47576C475AE8D3 Ref B: MAA201060516039 Ref C: 2024-04-15T08:53:56Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -558,21 +665,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:04 GMT + - Mon, 15 Apr 2024 08:53:58 GMT expires: - '-1' pragma: @@ -581,16 +688,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 98875B5FE69340D28EA06932733B9AD4 Ref B: MAA201060514039 Ref C: 2024-04-15T08:53:58Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -608,21 +715,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","description":"desc","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","displayName":"acc-name","description":"desc","acceleratorType":"Accelerator","gitRepository":{"url":"https://github.com/Azure-Samples/piggymetrics-config","branch":"master","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name","name":"acc-name","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T08:53:11.7086178Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T08:53:38.8984462Z"}}' headers: cache-control: - no-cache content-length: - - '770' + - '800' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:06 GMT + - Mon, 15 Apr 2024 08:54:00 GMT expires: - '-1' pragma: @@ -631,14 +738,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 1620533AA2C2421984876C516CF123A4 Ref B: MAA201060515009 Ref C: 2024-04-15T08:53:59Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -656,21 +763,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:08 GMT + - Mon, 15 Apr 2024 08:54:02 GMT expires: - '-1' pragma: @@ -679,16 +786,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 05ADA3C631154F919C556E6B8F64E543 Ref B: MAA201060513017 Ref C: 2024-04-15T08:54:01Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -708,37 +815,41 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/acc-name?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/28a47412-38f6-40e6-9e35-723ad03295e7?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/aedb4feb-6eb6-4823-b1ce-ab2087073626?api-version=2024-05-01-preview&t=638487680444598571&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdj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ukDY-ed4wPldjzzJFmzk&s=Gm3W9zM-tgbfaaQnLMcKQYCeXmx7ZcJBj84wc0LuD8uETmdBPFdg8ucsclasBK2fjhS_K6QAXGvVnXEW5ZYE98GS-rXg2YoAz_-P4ncdXBtaYlRU2wrC5bLHIQFIHBGdsxaFj0ShcJKInGv0TAKajtEMz3HpKxJ8TCK6i-GRusDDF0chsIxR3iZl4Bq5Kq2SYtXnSYbdl3KJiYUSN7M0TCB6dQ5DWw6ZpIj5ovo1fqN51GnXDTnsrOxqUs0QjOHhSM58dBu1h5YfA7r-xgsSTopC5cQLgnNi5hUl0m_TzYVRcZpNbtRXFPgTtJPx09uGcY8mMAG4JIEdh8PNaDg5sg&h=bN8hJ7euWhMUr7Bs1yDTte__Ld4zNtJW0fxtlfoDdoY cache-control: - no-cache content-length: - '0' date: - - Fri, 24 Mar 2023 06:02:11 GMT + - Mon, 15 Apr 2024 08:54:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/28a47412-38f6-40e6-9e35-723ad03295e7/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/aedb4feb-6eb6-4823-b1ce-ab2087073626/Spring/clitest000002?api-version=2024-05-01-preview&t=638487680444754439&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50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HsvSNfMM_Oaze8MyUtvwEg9_ZlQ9q7iAfR1kdxt3VaWnm_qrKvFJ6-CeRlUnrJbxUtB_NhsOA1DX-lLmF6--kMkwssnmZDTPF0O2CJ3RffNb8n2_l5N612Tcoflxd--eTY6arml1-OLZu2m66Li9z0IRnXZEXWMwZRhhRjMVNa-pcVW6Y5gaNJdyTAmEkYsBfFAts4JnWOpWO7uYfJSKnZlDuflxKoPsLAJSGGthFDoF-iaBo_8XerfObImyPcjyoFVQct1pFqM5mThPr2RxZ8shn-LBn1jfZdYPxHR3TJGwOyIpiYfoRJMsLbDgFSH1O14ZZi3aoYFg&h=CQepjJlpNZtVV1zDJmAU75CssiB_msia7ToblvYJI1I pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-msedge-ref: + - 'Ref A: A86C5D7C84104F43BF75E7B3F7BFEC12 Ref B: MAA201060513051 Ref C: 2024-04-15T08:54:03Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -756,69 +867,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/28a47412-38f6-40e6-9e35-723ad03295e7?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/28a47412-38f6-40e6-9e35-723ad03295e7","name":"28a47412-38f6-40e6-9e35-723ad03295e7","status":"Running","startTime":"2023-03-24T06:02:11.6852936Z"}' - headers: - cache-control: - - no-cache - content-length: - - '337' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 24 Mar 2023 06:02:11 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator customized-accelerator delete - Connection: - - keep-alive - ParameterSetName: - - -n -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/28a47412-38f6-40e6-9e35-723ad03295e7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/aedb4feb-6eb6-4823-b1ce-ab2087073626?api-version=2024-05-01-preview&t=638487680444598571&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI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9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Gm3W9zM-tgbfaaQnLMcKQYCeXmx7ZcJBj84wc0LuD8uETmdBPFdg8ucsclasBK2fjhS_K6QAXGvVnXEW5ZYE98GS-rXg2YoAz_-P4ncdXBtaYlRU2wrC5bLHIQFIHBGdsxaFj0ShcJKInGv0TAKajtEMz3HpKxJ8TCK6i-GRusDDF0chsIxR3iZl4Bq5Kq2SYtXnSYbdl3KJiYUSN7M0TCB6dQ5DWw6ZpIj5ovo1fqN51GnXDTnsrOxqUs0QjOHhSM58dBu1h5YfA7r-xgsSTopC5cQLgnNi5hUl0m_TzYVRcZpNbtRXFPgTtJPx09uGcY8mMAG4JIEdh8PNaDg5sg&h=bN8hJ7euWhMUr7Bs1yDTte__Ld4zNtJW0fxtlfoDdoY response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/28a47412-38f6-40e6-9e35-723ad03295e7","name":"28a47412-38f6-40e6-9e35-723ad03295e7","status":"Succeeded","startTime":"2023-03-24T06:02:11.6852936Z","endTime":"2023-03-24T06:02:17.7685448Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/aedb4feb-6eb6-4823-b1ce-ab2087073626","name":"aedb4feb-6eb6-4823-b1ce-ab2087073626","status":"Succeeded","startTime":"2024-04-15T08:54:04.3046097Z","endTime":"2024-04-15T08:54:04.5035071Z"}' headers: cache-control: - no-cache content-length: - - '380' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:21 GMT + - Mon, 15 Apr 2024 08:54:05 GMT expires: - '-1' pragma: @@ -827,14 +890,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 02EB679D27984404BD852768CF3D1E34 Ref B: MAA201060513051 Ref C: 2024-04-15T08:54:04Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -852,21 +915,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:26 GMT + - Mon, 15 Apr 2024 08:54:07 GMT expires: - '-1' pragma: @@ -875,16 +938,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 40E4BDC6C4D9478D84450A31CE0831D6 Ref B: MAA201060514033 Ref C: 2024-04-15T08:54:07Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -902,21 +965,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators?api-version=2024-05-01-preview response: body: - string: '{"value":[]}' + string: '{"value":[{"properties":{"provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:47.2469766Z"}}]}' headers: cache-control: - no-cache content-length: - - '12' + - '841' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:27 GMT + - Mon, 15 Apr 2024 08:54:09 GMT expires: - '-1' pragma: @@ -925,14 +988,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7A10DADECE364DFEBB5D49B5C6E3D748 Ref B: MAA201060514011 Ref C: 2024-04-15T08:54:08Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator_of_fragment_type.yaml b/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator_of_fragment_type.yaml index bc14ae71a38..d6563103bdf 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator_of_fragment_type.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_customized_accelerator_of_fragment_type.yaml @@ -1,7 +1,9 @@ interactions: - request: - body: '{"properties": {"acceleratorType":"Fragment","displayName": "fragment-name", "gitRepository": {"subPath": "java-version", "url": "https://github.com/sample-accelerators/fragments.git", - "intervalInSeconds": 10, "branch": "main", "authSetting": {"authType": "Public"}}}}' + body: '{"properties": {"acceleratorType": "Fragment", "displayName": "fragment-name", + "gitRepository": {"url": "https://github.com/sample-accelerators/fragments.git", + "intervalInSeconds": 10, "branch": "main", "authSetting": {"authType": "Public"}, + "subPath": "java-version"}}}' headers: Accept: - application/json @@ -12,45 +14,49 @@ interactions: Connection: - keep-alive Content-Length: - - '209' + - '270' Content-Type: - application/json ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --git-interval --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"acceleratorType":"Fragment","provisioningState":"Creating","displayName":"fragment-name","imports": ["java-version"],"gitRepository":{"subPath": "java-version", "url":"https://github.com/sample-accelerators/fragments.git","intervalInSeconds":10,"branch":"main","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:15.3720124Z"}}' + string: '{"properties":{"provisioningState":"Updating","displayName":"fragment-name","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","intervalInSeconds":10,"branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:30.3383772Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f255a58e-6ceb-4f86-a09d-11735b94bca4?api-version=2024-05-01-preview&t=638487609912289724&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmK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DYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=l_RCmW1J8T0TjXNZD2zQs1rXurzAIXZuUtcLNMeEty-_Obk4-j5muvS3_usQ7KdacFlAF3R0eUo4zHCifdTyfo8g0JFKoWOpOAOmdIKUEZxeyX-7b0r2HX0jIO0CV9mUO5ErbfSelK-k1cTKnbWEvXgZnrUXLG3-ka7NsukV_5JDqlxGRJ57LMfLFLYVQI0XDIqwOYN8pCMukoi7vnt4T5jJqA5QG_PqrRu7fn6qUKhvQcDt22n1MJbv9jQEY6YE0y12Uhc5r8WmwsVcHJic87Q-0RzKYxcY3HaDHQhAH2MZcT-DyirxAiLSaqjUaj8skTVphMpvOsAHiKV6PWrF6Q&h=NYAsGf_dyxe354pDzXmAeMctapOae4jAU3RHKKXV5o8 cache-control: - no-cache content-length: - - '771' + - '843' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:16 GMT + - Mon, 15 Apr 2024 06:56:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/88b06971-eee4-4a91-a0f7-945fe3088baa/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/f255a58e-6ceb-4f86-a09d-11735b94bca4/Spring/clitest000002?api-version=2024-05-01-preview&t=638487609912445985&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUI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RwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=ifMrSRaIE1zyYvviTVfEMk3iGLv7O_Vy1vGjeP5PtOz9RhEaRdCFc9f0Kfoon60wx6HNpix5cFTf1IFTMmaqRu6GQ29p9b6m2E1OYcYbo1jmaUMUoQSpUQ6W2OaQik6_RId3EqEUEJoyfzhimzFFnPSweDjSZUOYek_TycXW2Fkro5ec7RUDFec4hnwpm15rG82L9WQCLEimIZ3aVzZT4kjbGj9xKkbhGHq5CqfzS1dw5NRCV_zoDk_TBWAPs8sODPgENTerbpIVtp87VObfBEbS6gFEqdOQPZR-QN5iY0WVy7Y_FppvTeoJZecOICcRDsffnpiXFk3l_EdEXqqnAw&h=Wl7M7eBa3hMQl5S3ha-fN4sfFcCF-G_BEvO2dDhqQ9k pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 07B17EC2E038493FAFF37FAA0736D388 Ref B: MAA201060516031 Ref C: 2024-04-15T06:56:30Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -66,23 +72,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --git-interval --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f255a58e-6ceb-4f86-a09d-11735b94bca4?api-version=2024-05-01-preview&t=638487609912289724&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyF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yfo8g0JFKoWOpOAOmdIKUEZxeyX-7b0r2HX0jIO0CV9mUO5ErbfSelK-k1cTKnbWEvXgZnrUXLG3-ka7NsukV_5JDqlxGRJ57LMfLFLYVQI0XDIqwOYN8pCMukoi7vnt4T5jJqA5QG_PqrRu7fn6qUKhvQcDt22n1MJbv9jQEY6YE0y12Uhc5r8WmwsVcHJic87Q-0RzKYxcY3HaDHQhAH2MZcT-DyirxAiLSaqjUaj8skTVphMpvOsAHiKV6PWrF6Q&h=NYAsGf_dyxe354pDzXmAeMctapOae4jAU3RHKKXV5o8 response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa","name":"88b06971-eee4-4a91-a0f7-945fe3088baa","status":"Running","startTime":"2023-03-24T06:01:16.3548364Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f255a58e-6ceb-4f86-a09d-11735b94bca4","name":"f255a58e-6ceb-4f86-a09d-11735b94bca4","status":"Running","startTime":"2024-04-15T06:56:31.0756264Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:16 GMT + - Mon, 15 Apr 2024 06:56:32 GMT expires: - '-1' pragma: @@ -91,14 +97,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: C7A7F12EEFA14BBFA476E36213D0F479 Ref B: MAA201060516031 Ref C: 2024-04-15T06:56:31Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -114,23 +120,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --git-interval --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f255a58e-6ceb-4f86-a09d-11735b94bca4?api-version=2024-05-01-preview&t=638487609912289724&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE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QI0XDIqwOYN8pCMukoi7vnt4T5jJqA5QG_PqrRu7fn6qUKhvQcDt22n1MJbv9jQEY6YE0y12Uhc5r8WmwsVcHJic87Q-0RzKYxcY3HaDHQhAH2MZcT-DyirxAiLSaqjUaj8skTVphMpvOsAHiKV6PWrF6Q&h=NYAsGf_dyxe354pDzXmAeMctapOae4jAU3RHKKXV5o8 response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa","name":"88b06971-eee4-4a91-a0f7-945fe3088baa","status":"Running","startTime":"2023-03-24T06:01:16.3548364Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/f255a58e-6ceb-4f86-a09d-11735b94bca4","name":"f255a58e-6ceb-4f86-a09d-11735b94bca4","status":"Succeeded","startTime":"2024-04-15T06:56:31.0756264Z","endTime":"2024-04-15T06:56:41.5757839Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:26 GMT + - Mon, 15 Apr 2024 06:56:43 GMT expires: - '-1' pragma: @@ -139,14 +145,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F224CFCDA1FD4CBFACD4D0B3A825D67A Ref B: MAA201060516031 Ref C: 2024-04-15T06:56:42Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -162,23 +168,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --git-interval --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --git-interval User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/88b06971-eee4-4a91-a0f7-945fe3088baa","name":"88b06971-eee4-4a91-a0f7-945fe3088baa","status":"Succeeded","startTime":"2023-03-24T06:01:16.3548364Z","endTime":"2023-03-24T06:01:32.8492943Z"}' + string: '{"properties":{"provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","intervalInSeconds":10,"branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:30.3383772Z"}}' headers: cache-control: - no-cache content-length: - - '380' + - '865' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:37 GMT + - Mon, 15 Apr 2024 06:56:44 GMT expires: - '-1' pragma: @@ -187,121 +193,125 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 48F73BF19C89414BBC6B661EF4B95A94 Ref B: MAA201060516031 Ref C: 2024-04-15T06:56:43Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: null + body: '{"properties": {"acceleratorType": "Fragment", "displayName": "fragment-name", + "description": "desc", "gitRepository": {"url": "https://github.com/sample-accelerators/fragments.git", + "branch": "main", "authSetting": {"authType": "Public"}, "subPath": "java-version"}}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring application-accelerator customized-accelerator create + - spring application-accelerator customized-accelerator update Connection: - keep-alive + Content-Length: + - '268' + Content-Type: + - application/json ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --git-interval --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-01-01-preview + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"acceleratorType":"Fragment","provisioningState":"Succeeded","displayName":"fragment-name","imports": ["java-version"],"gitRepository":{"subPath": "java-version", "url":"https://github.com/sample-accelerators/fragments.git","intervalInSeconds":10,"branch":"main","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:15.3720124Z"}}' + string: '{"properties":{"provisioningState":"Updating","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:47.2469766Z"}}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15a3683836b3?api-version=2024-05-01-preview&t=638487610083719818&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFBQcDAjA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiGkOMNhNW0eITxiz6Fm90Wzp0SgWCC9fYrg_LRIAIBZAIBCjCCAdoGCCsGAQUFBwEBBIIBzDCCAcgwZgYIKwYBBQUHMA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FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmyGNGh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmwwFwYDVR0gBBAwDjAMBgorBgEEAYI3ewEBMB8GA1UdIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ff283Lv7cJ2c2S2z_4y4dKNuAKUE4uHleQzWoFEn3862mpAQX6uuE5lHMwDDe-Fkou5viRSU4mIN77TcZzAtQPlZaKbgeDopc-6MyBFtMHrHkOta-8ni6GBd6e9QYMlIY0eEom-KtptHFcPO8dMYHCTkgBFelbJTm42ZSCvxWHdsISpv4yTQlgmmx-ydzvmpHGr_UQWdsx--hUAruoF54LuPRyjkhYiOehiM8MjgEmfr6VTDgeVEcQ5_95Ai0ptNOKTWDm3MbOfrhTLPeD55Zj5onVToc8dfIMAXITQXn4jAhmLllzWVkrlVE2jdqdzSZEjefX_syKz89PpKbv5GXw&h=Z7Tv37b4pEU88gUac9G8cGvYKIHAsI0oY2fNXZdOSyM cache-control: - no-cache content-length: - - '772' + - '841' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:38 GMT + - Mon, 15 Apr 2024 06:56:48 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/eb5b08f2-b561-4d3c-bedf-15a3683836b3/Spring/clitest000002?api-version=2024-05-01-preview&t=638487610083876058&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFBQcDAjA9BgkrBgEEAYI3FQcEMDAuBiYrBg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Lgc_mYij2gS1KoRz2xno4I9e2ps0nyXZcR0 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: 3C821AE5D9294C54B55144F8FEA8E890 Ref B: MAA201060516029 Ref C: 2024-04-15T06:56:46Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: '{"properties": {"acceleratorType":"Fragment","displayName": "fragment-name", "description": "desc", "gitRepository": - {"subPath": "java-version", "url": "https://github.com/sample-accelerators/fragments.git", "branch": "main", - "authSetting": {"authType": "Public"}}}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - spring application-accelerator customized-accelerator update Connection: - keep-alive - Content-Length: - - '207' - Content-Type: - - application/json ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --description --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-01-01-preview + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15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6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmwwFwYDVR0gBBAwDjAMBgorBgEEAYI3ewEBMB8GA1UdIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ff283Lv7cJ2c2S2z_4y4dKNuAKUE4uHleQzWoFEn3862mpAQX6uuE5lHMwDDe-Fkou5viRSU4mIN77TcZzAtQPlZaKbgeDopc-6MyBFtMHrHkOta-8ni6GBd6e9QYMlIY0eEom-KtptHFcPO8dMYHCTkgBFelbJTm42ZSCvxWHdsISpv4yTQlgmmx-ydzvmpHGr_UQWdsx--hUAruoF54LuPRyjkhYiOehiM8MjgEmfr6VTDgeVEcQ5_95Ai0ptNOKTWDm3MbOfrhTLPeD55Zj5onVToc8dfIMAXITQXn4jAhmLllzWVkrlVE2jdqdzSZEjefX_syKz89PpKbv5GXw&h=Z7Tv37b4pEU88gUac9G8cGvYKIHAsI0oY2fNXZdOSyM response: body: - string: '{"properties":{"acceleratorType":"Fragment","provisioningState":"Updating","displayName":"fragment-name","description":"desc","imports": ["java-version"],"gitRepository":{"subPath": "java-version", "url":"https://github.com/sample-accelerators/fragments.git","branch":"main","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15a3683836b3","name":"eb5b08f2-b561-4d3c-bedf-15a3683836b3","status":"Running","startTime":"2024-04-15T06:56:48.1592029Z"}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e?api-version=2024-01-01-preview cache-control: - no-cache content-length: - - '769' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:42 GMT + - Mon, 15 Apr 2024 06:56:49 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/e0dabe78-fd08-4eee-8713-a6c049c4037e/Spring/clitest000002?api-version=2024-01-01-preview pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-msedge-ref: + - 'Ref A: 2DA8943AAC494800AB46000B9B4BA49C Ref B: MAA201060516029 Ref C: 2024-04-15T06:56:48Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -314,23 +324,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --description --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15a3683836b3?api-version=2024-05-01-preview&t=638487610083719818&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRl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qBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ff283Lv7cJ2c2S2z_4y4dKNuAKUE4uHleQzWoFEn3862mpAQX6uuE5lHMwDDe-Fkou5viRSU4mIN77TcZzAtQPlZaKbgeDopc-6MyBFtMHrHkOta-8ni6GBd6e9QYMlIY0eEom-KtptHFcPO8dMYHCTkgBFelbJTm42ZSCvxWHdsISpv4yTQlgmmx-ydzvmpHGr_UQWdsx--hUAruoF54LuPRyjkhYiOehiM8MjgEmfr6VTDgeVEcQ5_95Ai0ptNOKTWDm3MbOfrhTLPeD55Zj5onVToc8dfIMAXITQXn4jAhmLllzWVkrlVE2jdqdzSZEjefX_syKz89PpKbv5GXw&h=Z7Tv37b4pEU88gUac9G8cGvYKIHAsI0oY2fNXZdOSyM response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e","name":"e0dabe78-fd08-4eee-8713-a6c049c4037e","status":"Running","startTime":"2023-03-24T06:01:42.4157328Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15a3683836b3","name":"eb5b08f2-b561-4d3c-bedf-15a3683836b3","status":"Running","startTime":"2024-04-15T06:56:48.1592029Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:42 GMT + - Mon, 15 Apr 2024 06:57:00 GMT expires: - '-1' pragma: @@ -339,14 +349,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5EB89492A604491FAAF9F65A46CE3C80 Ref B: MAA201060516029 Ref C: 2024-04-15T06:56:59Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -362,23 +372,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --description --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15a3683836b3?api-version=2024-05-01-preview&t=638487610083719818&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMC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F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=ff283Lv7cJ2c2S2z_4y4dKNuAKUE4uHleQzWoFEn3862mpAQX6uuE5lHMwDDe-Fkou5viRSU4mIN77TcZzAtQPlZaKbgeDopc-6MyBFtMHrHkOta-8ni6GBd6e9QYMlIY0eEom-KtptHFcPO8dMYHCTkgBFelbJTm42ZSCvxWHdsISpv4yTQlgmmx-ydzvmpHGr_UQWdsx--hUAruoF54LuPRyjkhYiOehiM8MjgEmfr6VTDgeVEcQ5_95Ai0ptNOKTWDm3MbOfrhTLPeD55Zj5onVToc8dfIMAXITQXn4jAhmLllzWVkrlVE2jdqdzSZEjefX_syKz89PpKbv5GXw&h=Z7Tv37b4pEU88gUac9G8cGvYKIHAsI0oY2fNXZdOSyM response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/e0dabe78-fd08-4eee-8713-a6c049c4037e","name":"e0dabe78-fd08-4eee-8713-a6c049c4037e","status":"Succeeded","startTime":"2023-03-24T06:01:42.4157328Z","endTime":"2023-03-24T06:01:48.6879058Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eb5b08f2-b561-4d3c-bedf-15a3683836b3","name":"eb5b08f2-b561-4d3c-bedf-15a3683836b3","status":"Succeeded","startTime":"2024-04-15T06:56:48.1592029Z","endTime":"2024-04-15T06:57:01.1584438Z"}' headers: cache-control: - no-cache content-length: - - '380' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:52 GMT + - Mon, 15 Apr 2024 06:57:12 GMT expires: - '-1' pragma: @@ -387,14 +397,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: BD15234958814B4E8D00AF9C0CAC7E0E Ref B: MAA201060516029 Ref C: 2024-04-15T06:57:11Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -410,23 +420,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g -s --display-name --git-url --git-branch --description --git-sub-path --type + - -n -g -s --type --display-name --git-sub-path --git-url --git-branch --description User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"acceleratorType":"Fragment","provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","imports": ["java-version"],"gitRepository":{"subPath": "java-version", "url":"https://github.com/sample-accelerators/fragments.git","branch":"main","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:47.2469766Z"}}' headers: cache-control: - no-cache content-length: - - '770' + - '842' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:54 GMT + - Mon, 15 Apr 2024 06:57:13 GMT expires: - '-1' pragma: @@ -435,14 +445,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: EB73CEE14834407BAE842A549A4A27D5 Ref B: MAA201060516029 Ref C: 2024-04-15T06:57:12Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -460,21 +470,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:04 GMT + - Mon, 15 Apr 2024 06:57:15 GMT expires: - '-1' pragma: @@ -483,16 +493,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 0195C77E652E4ECA965628718D373A3C Ref B: MAA201060515049 Ref C: 2024-04-15T06:57:14Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -510,21 +520,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name?api-version=2024-05-01-preview response: body: - string: '{"properties":{"acceleratorType":"Fragment","provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","imports": ["java-version"], "gitRepository":{"subPath": "java-version", "url":"https://github.com/sample-accelerators/fragments.git","branch":"main","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-24T06:01:15.3720124Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:39.7977954Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","displayName":"fragment-name","description":"desc","acceleratorType":"Fragment","gitRepository":{"url":"https://github.com/sample-accelerators/fragments.git","branch":"main","subPath":"java-version","authSetting":{"authType":"Public"}}},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/customizedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/customizedAccelerators/fragment-name","name":"fragment-name","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:50:36.3764315Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:47.2469766Z"}}' headers: cache-control: - no-cache content-length: - - '770' + - '842' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:06 GMT + - Mon, 15 Apr 2024 06:57:17 GMT expires: - '-1' pragma: @@ -533,14 +543,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B45028063DFA433F8FAE868B298A4F31 Ref B: MAA201060516019 Ref C: 2024-04-15T06:57:16Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_deploy_app.yaml b/src/spring/azext_spring/tests/latest/recordings/test_deploy_app.yaml index f2aba13b8e6..0b3d28307f0 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_deploy_app.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_deploy_app.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"03ea093b3add4e9fae309c25989135d2","networkProfile":{"outboundIPs":{"publicIPs":["172.165.147.104","172.165.148.128"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:56:53.8901695Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:56:53.8901695Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '832' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:02 GMT + - Mon, 15 Apr 2024 12:47:16 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: AC8CC6ABC2CD4E6BAA32B58FA275195A Ref B: MAA201060515053 Ref C: 2024-04-15T12:47:16Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -63,9 +63,9 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -75,9 +75,9 @@ interactions: content-length: - '241' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:03 GMT + - Mon, 15 Apr 2024 12:47:17 GMT expires: - '-1' pragma: @@ -86,12 +86,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 3D17C32E83EA40C2800CBFDD63D80041 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 404 message: Not Found @@ -109,21 +113,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"03ea093b3add4e9fae309c25989135d2","networkProfile":{"outboundIPs":{"publicIPs":["172.165.147.104","172.165.148.128"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:56:53.8901695Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:56:53.8901695Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '832' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:03 GMT + - Mon, 15 Apr 2024 12:47:18 GMT expires: - '-1' pragma: @@ -132,16 +136,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: CD7690542EBB4CAC89A3A066ABD4EBF5 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:18Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -165,39 +169,43 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:04.5923849Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:04.5923849Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:21.1554541Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:21.1554541Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/83f296e4-5b61-4f77-94a8-99d07d5b0886?api-version=2024-01-01-preview&t=638411471450611818&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwP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Oi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=BNRaL8r5KPH-D7v_LjD9_r3cilIjDLTS3vOan80IsvpkxCDga3pqk5PcVXSpEWO8FgWfbdbbUxOX25_vjk9icLNdWfl0q6d31Nvr0SFzUhq8_TkGRRnkMKAqLSPApFBUsUc9d-KAa_aax47pah7FJlYwcO5y-66y3MIJi36GoJVDlEJxymvYZ3tOl7pVwzghdZBpO-VPErlmQsDoUlWt_HkVOy0t-_sKGE1Yr473V_VoW-ZwTtxGdz0crKlqkyhrga5TE7XeQ307dB0a_neFE9xRXv88j49pizQ3GrZh5xw57FiaXcwb1DW-61-Zgu3IxDuytNbdf-W4sRU8_TbVgQ&h=SqvdJHwFGfJjDjl2rUJX2SnmiEqn5JzRXZs5yhBK8VI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/215a8cac-ae19-44e2-8da9-48344ad0d6c3?api-version=2024-05-01-preview&t=638487820421710754&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFBQcDAjA9BgkrBgEEAYI3FQcEMDAuBiYrBgEEAYI3FQiGkOMNhNW0eITxiz6Fm90Wzp0SgWCC9fYrg_LRIAIBZAIBCjCCAdoGCCsGAQUFBwEBBIIBzDCCAcgwZgYIKwYBBQ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JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmyGNGh0dHA6Ly9jcmw0LmFtZS5nYmwvY3JsL0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcmwwFwYDVR0gBBAwDjAMBgorBgEEAYI3ewEBMB8GA1UdIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=W0JrKKKgJirbEIk8zuRP7GgMgbP6BPdeP0bjtvfZVzWUP4RLoWhDUrBbkYX4G1WW_YfjiYyn_jInTtYgNd7HuO-pa7cr8YWpGM2NE2FYf52S40pjgegVuqQwNo_S7awnAIIEZpZsq58r23WOX0SM6eBdy4UWrIL2pG6141IZJXErtGA67g3pgm8x4eJuUXKF_Mve_vP7NbFeFYhLVjaLruq31s7igjWY4khmiyD5TkOmymzex4hpazZ31wejI9_GC6NJWMflWmgOYIDlLi1Py5zhRe8yCC30vlnnJF_lGsf8at9WemVNNfXU7i5FVo6jRboVbhleS2GsJ42YEzHYAQ&h=xfqeruM2DGjsCuBHz8NGSiC8ziUDOlWv2XwUmX5_1Gs cache-control: - no-cache content-length: - - '923' + - '935' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:04 GMT + - Mon, 15 Apr 2024 12:47:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/83f296e4-5b61-4f77-94a8-99d07d5b0886/Spring/clitest000003?api-version=2024-01-01-preview&t=638411471450768054&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlp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NCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=SBvKhfEmaFrhoXoE59dcta-P1FLOj2Uzf1WWGOL9jpNSNAoW4YBMZIT6uFP4pZKWHqfgC9Lvr1nseyNblw9KDUrYZJUk9_0zR6YS7WbbhwxBk0NGUzU4sYgHv7PFRjAVFIlCGi-_OOawWHzqAHGj_3_gYGsUdATBX6IlE2oKvlDtXF78qvdlWw4R5Z-fxFKVdjXIJiSwHj6ZDCtfMuh7X2sUcvbR17cJ22Xc9oFBZkw0RlsR-ZUE8-H1MotDf5rtQ5cx-We9adYgw7uslWb2OlQshoD3QFzcNFVskt1IExH25XE8U4hVZ4td98_lxa8IIid2uJLpwMNh7NPe0PR3Vw&h=0CopQwtEDfIvzG8crr06CJzcB7x-a5v5rAvgTDz1TdU + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/215a8cac-ae19-44e2-8da9-48344ad0d6c3/Spring/clitest000003?api-version=2024-05-01-preview&t=638487820421867013&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NA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VR0gBBAwDjAMBgorBgEEAYI3ewEBMB8GA1UdIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=XLlNSvu3lGn4P-YMjpw_YdW1buVg-8I6KtQs28aJp8CVbYqIUBpXqVt7aY7MlnurcJOOG9y-DImqEJ5u89eVsjCGD9cA5s9eKo4NkiUjPkqyJby4he02c8fs2eTVET4vhueKI8cr9NaCiH30fKL1IMre_bGAZxOQVDbcMc1MAORTNvajy02XY53CJsNIN5L0U77j-OiW0L26o-FrCrbO9WuqC9CNdW3L1s0fl0NuMXNbL_ec0xG03mG5KIfyaC_qGa35uORrTdUCjJ3eTiMKgve8uyVvHl1a3LobyrzlqQjz49ipVa3p_ntpQENK0IWz86gYyNb8mEa7i7MwsbL-eA&h=PRhZoxVn5H6-JAHzpEX1V743iLa8X209df8MW07E3UY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: DE1EFBD58B9B4EFC83CE1A5AA827ED81 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:19Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -215,21 +223,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/83f296e4-5b61-4f77-94a8-99d07d5b0886?api-version=2024-01-01-preview&t=638411471450611818&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda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bdf-W4sRU8_TbVgQ&h=SqvdJHwFGfJjDjl2rUJX2SnmiEqn5JzRXZs5yhBK8VI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/215a8cac-ae19-44e2-8da9-48344ad0d6c3?api-version=2024-05-01-preview&t=638487820421710754&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wCw27ArDoCA1tO2_8aMdCvk4KfT8pZ7Qxj12bxHYzURqOlVVjmkCF9mTAoAagk9JTqwWwqjpUNl2v4QcVNmeI6T51P82qPWqbzQIDAQABo4IETTCCBEkwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDATAKBggrBgEFB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YEzHYAQ&h=xfqeruM2DGjsCuBHz8NGSiC8ziUDOlWv2XwUmX5_1Gs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/83f296e4-5b61-4f77-94a8-99d07d5b0886","name":"83f296e4-5b61-4f77-94a8-99d07d5b0886","status":"Succeeded","startTime":"2024-01-18T03:59:04.9445206Z","endTime":"2024-01-18T03:59:05.2911243Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/215a8cac-ae19-44e2-8da9-48344ad0d6c3","name":"215a8cac-ae19-44e2-8da9-48344ad0d6c3","status":"Succeeded","startTime":"2024-04-15T12:47:22.0791144Z","endTime":"2024-04-15T12:47:22.6037175Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '376' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:04 GMT + - Mon, 15 Apr 2024 12:47:22 GMT expires: - '-1' pragma: @@ -238,14 +246,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 70228AD111BD4AF09B496C36D5112B29 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:22Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -263,21 +271,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:04.5923849Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:04.5923849Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:21.1554541Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:21.1554541Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1039' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:05 GMT + - Mon, 15 Apr 2024 12:47:23 GMT expires: - '-1' pragma: @@ -286,16 +294,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 62852C1B4CBD4A5DAC5CF4B59652D187 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:23Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -321,39 +329,43 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:10.31169Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:10.31169Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:27.4588885Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9?api-version=2024-01-01-preview&t=638411471510001860&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJTIw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BgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LagjmFEEWVs0Xd_a_9OVYO1PJE4fiJpNJDjBXKW33BMqtI33eZClhaCVl9ZN7sWW_vStpS6v41E6R3I7Y0t9gAIG6aazAL9WbAfpeG9sUy_Kq-QvBrMbUqhXjs_AZH1A6mseczAyIYdwCk5gdjwsLLcLmlJ0ap8Q4smMHl8OM3_3M0TnSN6tvNizwhq5V_nVGAi9iVDZABgiFGDg0cUoi3mkg85xHyIPX4caA6AZ7kQvb0KZYnsHFIAzX1j2iKiZsZYnwd90aHTsdzKXSF1Yh1f9o6J_qbwD76RXjIBxfxAR0xb_AdG5AFxCl0mBQqkeUnOE524bQE2aeWrybXmzeQ&h=8aAq6s4ERUot9pGnINCVUZXRlbE1P3JF7fV9_aXDEGM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8?api-version=2024-05-01-preview&t=638487820483182800&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mc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IazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=iz78YciSoSz_0BtBfbvJfkP1nb3VKbtRnhOgNlmXF7t89mAnJMtG9otq8ALakLKEIFi3I9U3Lv3Q2IIo0sdWWhbbWZjzDEdiGEOcIcbv5Lx0dJez1AEy_p8tdEL2E9JeN1kXvqswz76dvxpkzXhQee8_MCGxcbjDZAgZropTmxs8ZSioIiz6B47_nRfgQSh8svYuaHCCMNkb5Qch3qU8_c-npKSQfZCITDnKsGyyR1g2VLgFfP_dLtpcAmf1c6OAq9InXGF2vSK9ytpvCk3zWjnBjWxs34voJmuT1R494KpzVjfJdVmrVJzeIvSq07qOL9QecX3uYarmgiwwzPiO-Q&h=Eu0jGICsE7QhPW5524OUBoQT8qjmdHXxg4yc0FX-0lw cache-control: - no-cache content-length: - - '862' + - '852' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:10 GMT + - Mon, 15 Apr 2024 12:47:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/e8964199-e09b-4f98-b59c-87d91b09e8a9/Spring/default?api-version=2024-01-01-preview&t=638411471510148874&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASI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s=WSaFFRA0Q4Jf1oSgH3ZtCxvISUZSMqZGT7Qe4C9FRdFbUlVLBMF067N8xF7XZzkienYt1YW_jaNzAJrgQMZyMNSBEHtikQ5taAY5Iaxpgc7tlUyghrehMXF13wk5EsUrGonyeu0gMNlsf34bDB5dZjobhur2iXrIFpnnnu75upUsWC59TNJsR7ZzJFrpaufnrifrVKEueBxlGzJICtihuD4zN8IYS2lL3OukVs-bT9_tQnXDrwsMqPZv4zjzEYbn3dIQdd7s1hbM65nGMfaRx5g_N9wmZ3WDNen8DNk0BaN74IJGWKZHVb7UmXOW3VLwN4h_8m6uJ1t-q2yIMTgsrA&h=MiaD_W2KhSRiIO5PhF2dpZj-nVcMViZrKQ-pqFhr-c0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/98d94986-0aae-4ef4-b355-13b3cba576a8/Spring/default?api-version=2024-05-01-preview&t=638487820483339586&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5or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Cen5vd7rYsVFX2olAiZoj1I-fLOMWT4QQlre55nspTlmkQ-n-Y2tRYo946iLS1jD5FoFCXOhgK0oIA&h=Xm2_IMFH1RgmR3QqhbuLSnC_UhZnAmVrb5d7DTuE-xs pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '1199' + - '1198' + x-msedge-ref: + - 'Ref A: D25A2B0F3A044AD09459D589EE5C859A Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:27Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -371,21 +383,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9?api-version=2024-01-01-preview&t=638411471510001860&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLm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3Dtvlo&s=LagjmFEEWVs0Xd_a_9OVYO1PJE4fiJpNJDjBXKW33BMqtI33eZClhaCVl9ZN7sWW_vStpS6v41E6R3I7Y0t9gAIG6aazAL9WbAfpeG9sUy_Kq-QvBrMbUqhXjs_AZH1A6mseczAyIYdwCk5gdjwsLLcLmlJ0ap8Q4smMHl8OM3_3M0TnSN6tvNizwhq5V_nVGAi9iVDZABgiFGDg0cUoi3mkg85xHyIPX4caA6AZ7kQvb0KZYnsHFIAzX1j2iKiZsZYnwd90aHTsdzKXSF1Yh1f9o6J_qbwD76RXjIBxfxAR0xb_AdG5AFxCl0mBQqkeUnOE524bQE2aeWrybXmzeQ&h=8aAq6s4ERUot9pGnINCVUZXRlbE1P3JF7fV9_aXDEGM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8?api-version=2024-05-01-preview&t=638487820483182800&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcD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c6OAq9InXGF2vSK9ytpvCk3zWjnBjWxs34voJmuT1R494KpzVjfJdVmrVJzeIvSq07qOL9QecX3uYarmgiwwzPiO-Q&h=Eu0jGICsE7QhPW5524OUBoQT8qjmdHXxg4yc0FX-0lw response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9","name":"e8964199-e09b-4f98-b59c-87d91b09e8a9","status":"Running","startTime":"2024-01-18T03:59:10.8419476Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8","name":"98d94986-0aae-4ef4-b355-13b3cba576a8","status":"Running","startTime":"2024-04-15T12:47:28.1511697Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:10 GMT + - Mon, 15 Apr 2024 12:47:27 GMT expires: - '-1' pragma: @@ -394,14 +406,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 1BD8FD5E3A904F26A0230F0B00867291 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:28Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -419,21 +431,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9?api-version=2024-01-01-preview&t=638411471510001860&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFB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NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LagjmFEEWVs0Xd_a_9OVYO1PJE4fiJpNJDjBXKW33BMqtI33eZClhaCVl9ZN7sWW_vStpS6v41E6R3I7Y0t9gAIG6aazAL9WbAfpeG9sUy_Kq-QvBrMbUqhXjs_AZH1A6mseczAyIYdwCk5gdjwsLLcLmlJ0ap8Q4smMHl8OM3_3M0TnSN6tvNizwhq5V_nVGAi9iVDZABgiFGDg0cUoi3mkg85xHyIPX4caA6AZ7kQvb0KZYnsHFIAzX1j2iKiZsZYnwd90aHTsdzKXSF1Yh1f9o6J_qbwD76RXjIBxfxAR0xb_AdG5AFxCl0mBQqkeUnOE524bQE2aeWrybXmzeQ&h=8aAq6s4ERUot9pGnINCVUZXRlbE1P3JF7fV9_aXDEGM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8?api-version=2024-05-01-preview&t=638487820483182800&c=MIIHADCC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MSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=iz78YciSoSz_0BtBfbvJfkP1nb3VKbtRnhOgNlmXF7t89mAnJMtG9otq8ALakLKEIFi3I9U3Lv3Q2IIo0sdWWhbbWZjzDEdiGEOcIcbv5Lx0dJez1AEy_p8tdEL2E9JeN1kXvqswz76dvxpkzXhQee8_MCGxcbjDZAgZropTmxs8ZSioIiz6B47_nRfgQSh8svYuaHCCMNkb5Qch3qU8_c-npKSQfZCITDnKsGyyR1g2VLgFfP_dLtpcAmf1c6OAq9InXGF2vSK9ytpvCk3zWjnBjWxs34voJmuT1R494KpzVjfJdVmrVJzeIvSq07qOL9QecX3uYarmgiwwzPiO-Q&h=Eu0jGICsE7QhPW5524OUBoQT8qjmdHXxg4yc0FX-0lw response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9","name":"e8964199-e09b-4f98-b59c-87d91b09e8a9","status":"Running","startTime":"2024-01-18T03:59:10.8419476Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8","name":"98d94986-0aae-4ef4-b355-13b3cba576a8","status":"Running","startTime":"2024-04-15T12:47:28.1511697Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:20 GMT + - Mon, 15 Apr 2024 12:47:38 GMT expires: - '-1' pragma: @@ -442,14 +454,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 713772815A944768A427E8FF2BC524F4 Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:39Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -467,21 +479,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9?api-version=2024-01-01-preview&t=638411471510001860&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_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XKW33BMqtI33eZClhaCVl9ZN7sWW_vStpS6v41E6R3I7Y0t9gAIG6aazAL9WbAfpeG9sUy_Kq-QvBrMbUqhXjs_AZH1A6mseczAyIYdwCk5gdjwsLLcLmlJ0ap8Q4smMHl8OM3_3M0TnSN6tvNizwhq5V_nVGAi9iVDZABgiFGDg0cUoi3mkg85xHyIPX4caA6AZ7kQvb0KZYnsHFIAzX1j2iKiZsZYnwd90aHTsdzKXSF1Yh1f9o6J_qbwD76RXjIBxfxAR0xb_AdG5AFxCl0mBQqkeUnOE524bQE2aeWrybXmzeQ&h=8aAq6s4ERUot9pGnINCVUZXRlbE1P3JF7fV9_aXDEGM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8?api-version=2024-05-01-preview&t=638487820483182800&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoX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JdVmrVJzeIvSq07qOL9QecX3uYarmgiwwzPiO-Q&h=Eu0jGICsE7QhPW5524OUBoQT8qjmdHXxg4yc0FX-0lw response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/e8964199-e09b-4f98-b59c-87d91b09e8a9","name":"e8964199-e09b-4f98-b59c-87d91b09e8a9","status":"Succeeded","startTime":"2024-01-18T03:59:10.8419476Z","endTime":"2024-01-18T03:59:31.9452948Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8","name":"98d94986-0aae-4ef4-b355-13b3cba576a8","status":"Running","startTime":"2024-04-15T12:47:28.1511697Z"}' headers: cache-control: - no-cache content-length: - - '365' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:32 GMT + - Mon, 15 Apr 2024 12:47:49 GMT expires: - '-1' pragma: @@ -490,14 +502,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6D37F3E4738F4722A01F2C587E2A82FA Ref B: MAA201060516029 Ref C: 2024-04-15T12:47:49Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -515,21 +527,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8?api-version=2024-05-01-preview&t=638487820483182800&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKw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jBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=iz78YciSoSz_0BtBfbvJfkP1nb3VKbtRnhOgNlmXF7t89mAnJMtG9otq8ALakLKEIFi3I9U3Lv3Q2IIo0sdWWhbbWZjzDEdiGEOcIcbv5Lx0dJez1AEy_p8tdEL2E9JeN1kXvqswz76dvxpkzXhQee8_MCGxcbjDZAgZropTmxs8ZSioIiz6B47_nRfgQSh8svYuaHCCMNkb5Qch3qU8_c-npKSQfZCITDnKsGyyR1g2VLgFfP_dLtpcAmf1c6OAq9InXGF2vSK9ytpvCk3zWjnBjWxs34voJmuT1R494KpzVjfJdVmrVJzeIvSq07qOL9QecX3uYarmgiwwzPiO-Q&h=Eu0jGICsE7QhPW5524OUBoQT8qjmdHXxg4yc0FX-0lw response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-9dccf7448-khj42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:59:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:10.31169Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:10.31169Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/98d94986-0aae-4ef4-b355-13b3cba576a8","name":"98d94986-0aae-4ef4-b355-13b3cba576a8","status":"Succeeded","startTime":"2024-04-15T12:47:28.1511697Z","endTime":"2024-04-15T12:47:50.4554592Z"}' headers: cache-control: - no-cache content-length: - - '1369' + - '370' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:35 GMT + - Mon, 15 Apr 2024 12:48:00 GMT expires: - '-1' pragma: @@ -538,16 +550,64 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B6A05B44685346B48CC03017DD6B6150 Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:00Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app create + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --cpu --env --runtime-version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:27.4588885Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1360' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:03 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: CC99E7E4AB804214AC4907DECFB51BBC Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:01Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -565,21 +625,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:04.5923849Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:04.5923849Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:21.1554541Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:21.1554541Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1039' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:41 GMT + - Mon, 15 Apr 2024 12:48:08 GMT expires: - '-1' pragma: @@ -588,16 +648,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 89CA955E72564DCCA190F0225CE0B6DB Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:08Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -615,21 +675,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-9dccf7448-khj42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:59:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:10.31169Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:10.31169Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:27.4588885Z"}}]}' headers: cache-control: - no-cache content-length: - - '1381' + - '1372' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:43 GMT + - Mon, 15 Apr 2024 12:48:11 GMT expires: - '-1' pragma: @@ -638,16 +698,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 1DB7405059214785B2E7BA880A028A65 Ref B: MAA201060516029 Ref C: 2024-04-15T12:48:09Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -665,21 +725,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-9dccf7448-khj42","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:59:15Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:10.31169Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:10.31169Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:47:27.4588885Z"}}]}' headers: cache-control: - no-cache content-length: - - '1381' + - '1372' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:48 GMT + - Mon, 15 Apr 2024 12:48:15 GMT expires: - '-1' pragma: @@ -688,16 +748,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 90B34D324AE04888AF8AA4F9038D0C18 Ref B: MAA201060513035 Ref C: 2024-04-15T12:48:13Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -715,21 +775,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"03ea093b3add4e9fae309c25989135d2","networkProfile":{"outboundIPs":{"publicIPs":["172.165.147.104","172.165.148.128"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:56:53.8901695Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:56:53.8901695Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '832' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:48 GMT + - Mon, 15 Apr 2024 12:48:18 GMT expires: - '-1' pragma: @@ -738,16 +798,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 6A35FC2E3D8C4FBFBC7CE38516F0A775 Ref B: MAA201060514017 Ref C: 2024-04-15T12:48:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -767,21 +827,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/getResourceUploadUrl?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/getResourceUploadUrl?api-version=2024-05-01-preview response: body: - string: '{"relativePath":"resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f","uploadUrl":"https://b94bfefa05c34103b3956265.file.core.windows.net/03ea093b3add4e9fae309c25989135d2/resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f?sv=2020-08-04&se=2024-01-18T05%3A59%3A51Z&sr=f&sp=w&sig=LjH2q85u13UFo%2BOu1iaFzOknSqraFovKwT6ryeOQOgM%3D"}' + string: '{"relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","uploadUrl":"https://57a11a7131c74adfb57303e3.file.core.windows.net/56e88126a961459ca367bb6223cf4a16/resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604?sv=2020-08-04&se=2024-04-15T14%3A48%3A19Z&sr=f&sp=w&sig=yyTCBZBYpJmWj3f5JrWJAzrMA0EzpilKMQowKXrnYPY%3D"}' headers: cache-control: - no-cache content-length: - - '471' + - '469' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:50 GMT + - Mon, 15 Apr 2024 12:48:19 GMT expires: - '-1' pragma: @@ -790,16 +850,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 541E4A84584C499687C871A0E7377B42 Ref B: MAA201060516037 Ref C: 2024-04-15T12:48:18Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -811,17 +871,17 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Darwin 23.2.0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.10; Windows 10) x-ms-content-length: - - '10' + - '11' x-ms-date: - - Thu, 18 Jan 2024 03:59:51 GMT + - Mon, 15 Apr 2024 12:48:20 GMT x-ms-type: - file x-ms-version: - '2018-11-09' method: PUT - uri: https://b94bfefa05c34103b3956265.file.core.windows.net/03ea093b3add4e9fae309c25989135d2/resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f?sv=2020-08-04&se=2024-01-18T05%3A59%3A51Z&sr=f&sp=w&sig=LjH2q85u13UFo%2BOu1iaFzOknSqraFovKwT6ryeOQOgM%3D + uri: https://57a11a7131c74adfb57303e3.file.core.windows.net/56e88126a961459ca367bb6223cf4a16/resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604?sv=2020-08-04&se=2024-04-15T14%3A48%3A19Z&sr=f&sp=w&sig=yyTCBZBYpJmWj3f5JrWJAzrMA0EzpilKMQowKXrnYPY%3D response: body: string: '' @@ -829,11 +889,11 @@ interactions: content-length: - '0' date: - - Thu, 18 Jan 2024 03:59:52 GMT + - Mon, 15 Apr 2024 12:48:20 GMT etag: - - '"0x8DC17D9ECAB12DC"' + - '"0x8DC5D4A54AA6016"' last-modified: - - Thu, 18 Jan 2024 03:59:52 GMT + - Mon, 15 Apr 2024 12:48:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -844,26 +904,24 @@ interactions: code: 201 message: Created - request: - body: 'fake-text - - ' + body: "fake-text\r\n" headers: Connection: - keep-alive Content-Length: - - '10' + - '11' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Darwin 23.2.0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.10; Windows 10) x-ms-date: - - Thu, 18 Jan 2024 03:59:52 GMT + - Mon, 15 Apr 2024 12:48:20 GMT x-ms-range: - - bytes=0-9 + - bytes=0-10 x-ms-version: - '2018-11-09' x-ms-write: - update method: PUT - uri: https://b94bfefa05c34103b3956265.file.core.windows.net/03ea093b3add4e9fae309c25989135d2/resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f?comp=range&sv=2020-08-04&se=2024-01-18T05%3A59%3A51Z&sr=f&sp=w&sig=LjH2q85u13UFo%2BOu1iaFzOknSqraFovKwT6ryeOQOgM%3D + uri: https://57a11a7131c74adfb57303e3.file.core.windows.net/56e88126a961459ca367bb6223cf4a16/resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604?comp=range&sv=2020-08-04&se=2024-04-15T14%3A48%3A19Z&sr=f&sp=w&sig=yyTCBZBYpJmWj3f5JrWJAzrMA0EzpilKMQowKXrnYPY%3D response: body: string: '' @@ -871,13 +929,13 @@ interactions: content-length: - '0' content-md5: - - s2jzCli9dzvFYjAxyfFwsw== + - 99EB7GGDEcq+ZSyODG3erA== date: - - Thu, 18 Jan 2024 03:59:52 GMT + - Mon, 15 Apr 2024 12:48:20 GMT etag: - - '"0x8DC17D9ECD37C8C"' + - '"0x8DC5D4A54C425F4"' last-modified: - - Thu, 18 Jan 2024 03:59:52 GMT + - Mon, 15 Apr 2024 12:48:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -889,7 +947,7 @@ interactions: message: Created - request: body: '{"properties": {"source": {"type": "Jar", "version": "v1", "relativePath": - "resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f", + "resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604", "runtimeVersion": "Java_11"}, "deploymentSettings": {}}, "sku": {"name": "S0", "tier": "Standard"}}' headers: @@ -908,39 +966,43 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:10.31169Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:53.2426475Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04?api-version=2024-01-01-preview&t=638411471939926885&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhp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kZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LPSpr6ekLy7tvh1axWsemNQlvpI7rXCgnZW822No6ywKToH9GqDYvtIgfpAlAETewCyyYpzKyGaTV64GGapezYmV85GWFZatFMffyBQohaVXiWdOEl3cYpu6G92CuQ12h7hVdiNDCk-DJOB4DQZDPAT_v8kJZN4NoMOOYLbFdz6snHUePVxoY_ECv1hnRIJxiS5Z-wnsyx4ZrO3ND-pi72ZKsvb5tu4_wRxqobzmTX5lPRDzMjQEg7GSI8u0m2hy8movx6NIyi2NrAUtOHC0wS7_XlvOb7tsIBpJHyWL9lhT4xguaB4xVvNoGkoZJqTnZ9YI3NpkPYiOSbMDmlpzgg&h=DMBmPv66G4QZvRg3pjH0Lns3s7FBBursyYl_ka-CUUs + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8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Zsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RfHRPD1bU97k1iK46g6ZL1Y3toRZ3eNPRLUKEg2UWKrYYav4mhnWG51cf8ydG3Cd1HnM5FiyhDw0In0sC59yb54t2gwkRvKq6g6fTg8-sYYw987qB1pNzrF_KaujzUDqI10OUl7lKyELhGPdJd8tj81ToFa20XKLaNycMuU0kWqNqru3bpNjxTFnoPnPPZUnekGW2clrxSMsDMJlTsJ-l_X6jnS6vrfxt4-WN7AFd4T9x3yzTlK2jOckuwuJSkhhF9EOSuv5GPvxJlp3Pw0jMrvwSo_hdeDk97mAUtWfTZ3dAWDCPjGn8sPaGkGa5KF37pD4mFUHk0ngZ3umjCEAxg&h=-E85vUi4yPtanvE4RD-TggbzxJvPoMub8hfjOCZtGBs cache-control: - no-cache content-length: - - '992' + - '980' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:53 GMT + - Mon, 15 Apr 2024 12:48:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04/Spring/default?api-version=2024-01-01-preview&t=638411471939926885&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLG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O8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=QJzTMTmrQWRefsThW5BhQ3TTw9L2ZZaWQD4ncLnDRUpAD85gN9EgyvtDF4oAGFM8x2qhBR6E-2p43Z4p1N_ogMEkqh2mPszdco7blBrfMwJ5GVeLPSVjFvzx0U-M7SdAeIlvJHJGvL2tVM0xKFxres77GzUc6kIQxaqSqXfQ8G_z-U3UKd57jJvT_ysGRuK5WLZ0DDYJXB-btdaHcUUOwVIXZC1Mbnai9l9RsWr5KBp_raN3D8lh3TkVRDguRFMJjpd2olW_TFoqysLEflHTnCrsgAUb3vcqX9nJQQy5Y4g9YH8zev3WucAlakmDTde0NUE9UzxwYtdtg8sr3GC60A&h=pqmX2oj304jRFZcklMbIsKvVZzFi6xlwV8aDFE6jgqY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/93209d9d-0666-4ce4-8d2f-3f6a0612b83e/Spring/default?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9Hf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IJGLHXfVPW8CpAW2Fc3xX31_KIIsfTIKVBkvLPzP9NnKi6latyWO0NJdC51YNjLfrwmusp76BV7F7_VKCO4R8q1tp2YGjUE3ABGCmtAa4j-rxBNL0Yhtu0-8d7uz6o88tbk631Sfv4hngJDGwDVzo2uXEd3fzYougzHZXXhU807940lQ1RtAtjyZScr0YcTk0YNFvV_83iuM_q0T_yXNTzYHJOosyiod-E5R-OT8S-17ufVMfQbUBhG9e6c-cSeUrwJFcf117xjAqw&h=7DEVwjWdTbNKAGwaQehhWe_dC7adLOpSa_F351Jy9s0 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: E49DD4A4311844848B4C9CB0995F99CE Ref B: MAA201060516037 Ref C: 2024-04-15T12:48:21Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -958,21 +1020,69 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04?api-version=2024-01-01-preview&t=638411471939926885&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRY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vFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LPSpr6ekLy7tvh1axWsemNQlvpI7rXCgnZW822No6ywKToH9GqDYvtIgfpAlAETewCyyYpzKyGaTV64GGapezYmV85GWFZatFMffyBQohaVXiWdOEl3cYpu6G92CuQ12h7hVdiNDCk-DJOB4DQZDPAT_v8kJZN4NoMOOYLbFdz6snHUePVxoY_ECv1hnRIJxiS5Z-wnsyx4ZrO3ND-pi72ZKsvb5tu4_wRxqobzmTX5lPRDzMjQEg7GSI8u0m2hy8movx6NIyi2NrAUtOHC0wS7_XlvOb7tsIBpJHyWL9lhT4xguaB4xVvNoGkoZJqTnZ9YI3NpkPYiOSbMDmlpzgg&h=DMBmPv66G4QZvRg3pjH0Lns3s7FBBursyYl_ka-CUUs + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDy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sC59yb54t2gwkRvKq6g6fTg8-sYYw987qB1pNzrF_KaujzUDqI10OUl7lKyELhGPdJd8tj81ToFa20XKLaNycMuU0kWqNqru3bpNjxTFnoPnPPZUnekGW2clrxSMsDMJlTsJ-l_X6jnS6vrfxt4-WN7AFd4T9x3yzTlK2jOckuwuJSkhhF9EOSuv5GPvxJlp3Pw0jMrvwSo_hdeDk97mAUtWfTZ3dAWDCPjGn8sPaGkGa5KF37pD4mFUHk0ngZ3umjCEAxg&h=-E85vUi4yPtanvE4RD-TggbzxJvPoMub8hfjOCZtGBs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","name":"1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","status":"Running","startTime":"2024-01-18T03:59:53.8302427Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e","name":"93209d9d-0666-4ce4-8d2f-3f6a0612b83e","status":"Running","startTime":"2024-04-15T12:48:22.5433692Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:23 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: B328E2CD9A1A4DD1A45D4A98EC981916 Ref B: MAA201060516037 Ref C: 2024-04-15T12:48:22Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1487' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:59:53 GMT + - Mon, 15 Apr 2024 12:48:25 GMT expires: - '-1' pragma: @@ -981,14 +1091,66 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: ACB1D55DE5814167BC7356F2A51F2F71 Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:23Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1487' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:28 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 7644C6812D40446490E878ADB1562778 Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:26Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1006,21 +1168,69 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04?api-version=2024-01-01-preview&t=638411471939926885&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwM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vwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LPSpr6ekLy7tvh1axWsemNQlvpI7rXCgnZW822No6ywKToH9GqDYvtIgfpAlAETewCyyYpzKyGaTV64GGapezYmV85GWFZatFMffyBQohaVXiWdOEl3cYpu6G92CuQ12h7hVdiNDCk-DJOB4DQZDPAT_v8kJZN4NoMOOYLbFdz6snHUePVxoY_ECv1hnRIJxiS5Z-wnsyx4ZrO3ND-pi72ZKsvb5tu4_wRxqobzmTX5lPRDzMjQEg7GSI8u0m2hy8movx6NIyi2NrAUtOHC0wS7_XlvOb7tsIBpJHyWL9lhT4xguaB4xVvNoGkoZJqTnZ9YI3NpkPYiOSbMDmlpzgg&h=DMBmPv66G4QZvRg3pjH0Lns3s7FBBursyYl_ka-CUUs + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FM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unWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RfHRPD1bU97k1iK46g6ZL1Y3toRZ3eNPRLUKEg2UWKrYYav4mhnWG51cf8ydG3Cd1HnM5FiyhDw0In0sC59yb54t2gwkRvKq6g6fTg8-sYYw987qB1pNzrF_KaujzUDqI10OUl7lKyELhGPdJd8tj81ToFa20XKLaNycMuU0kWqNqru3bpNjxTFnoPnPPZUnekGW2clrxSMsDMJlTsJ-l_X6jnS6vrfxt4-WN7AFd4T9x3yzTlK2jOckuwuJSkhhF9EOSuv5GPvxJlp3Pw0jMrvwSo_hdeDk97mAUtWfTZ3dAWDCPjGn8sPaGkGa5KF37pD4mFUHk0ngZ3umjCEAxg&h=-E85vUi4yPtanvE4RD-TggbzxJvPoMub8hfjOCZtGBs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","name":"1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","status":"Running","startTime":"2024-01-18T03:59:53.8302427Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e","name":"93209d9d-0666-4ce4-8d2f-3f6a0612b83e","status":"Running","startTime":"2024-04-15T12:48:22.5433692Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:33 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: CD289A6E01414ACEBDE8272A232A353C Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:33Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Terminating","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1491' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:05 GMT + - Mon, 15 Apr 2024 12:48:36 GMT expires: - '-1' pragma: @@ -1029,14 +1239,66 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 5408053164CD48CFB7ED6BE0CD06A331 Ref B: MAA201060516037 Ref C: 2024-04-15T12:48:33Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6fcf5bd766-zlrdq","status":"Terminating","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:47:34Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1491' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:44 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 86477FDDD8CA417DAF857F7C56C75361 Ref B: MAA201060516037 Ref C: 2024-04-15T12:48:41Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1054,21 +1316,69 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04?api-version=2024-01-01-preview&t=638411471939926885&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwC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kZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LPSpr6ekLy7tvh1axWsemNQlvpI7rXCgnZW822No6ywKToH9GqDYvtIgfpAlAETewCyyYpzKyGaTV64GGapezYmV85GWFZatFMffyBQohaVXiWdOEl3cYpu6G92CuQ12h7hVdiNDCk-DJOB4DQZDPAT_v8kJZN4NoMOOYLbFdz6snHUePVxoY_ECv1hnRIJxiS5Z-wnsyx4ZrO3ND-pi72ZKsvb5tu4_wRxqobzmTX5lPRDzMjQEg7GSI8u0m2hy8movx6NIyi2NrAUtOHC0wS7_XlvOb7tsIBpJHyWL9lhT4xguaB4xVvNoGkoZJqTnZ9YI3NpkPYiOSbMDmlpzgg&h=DMBmPv66G4QZvRg3pjH0Lns3s7FBBursyYl_ka-CUUs + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5B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cDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RfHRPD1bU97k1iK46g6ZL1Y3toRZ3eNPRLUKEg2UWKrYYav4mhnWG51cf8ydG3Cd1HnM5FiyhDw0In0sC59yb54t2gwkRvKq6g6fTg8-sYYw987qB1pNzrF_KaujzUDqI10OUl7lKyELhGPdJd8tj81ToFa20XKLaNycMuU0kWqNqru3bpNjxTFnoPnPPZUnekGW2clrxSMsDMJlTsJ-l_X6jnS6vrfxt4-WN7AFd4T9x3yzTlK2jOckuwuJSkhhF9EOSuv5GPvxJlp3Pw0jMrvwSo_hdeDk97mAUtWfTZ3dAWDCPjGn8sPaGkGa5KF37pD4mFUHk0ngZ3umjCEAxg&h=-E85vUi4yPtanvE4RD-TggbzxJvPoMub8hfjOCZtGBs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","name":"1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","status":"Running","startTime":"2024-01-18T03:59:53.8302427Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e","name":"93209d9d-0666-4ce4-8d2f-3f6a0612b83e","status":"Running","startTime":"2024-04-15T12:48:22.5433692Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:44 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: D2EC3C13792647179B259157A76E7BD5 Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:44Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-67988c6bd5-vshkp","status":"Starting","reason":"CrashLoopBackOff","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:43Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1516' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:15 GMT + - Mon, 15 Apr 2024 12:48:51 GMT expires: - '-1' pragma: @@ -1077,14 +1387,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + x-msedge-ref: + - 'Ref A: 87F9124DBE244E56A2B6AD18D3617F90 Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:49Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1102,21 +1414,69 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04?api-version=2024-01-01-preview&t=638411471939926885&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGY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QSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LPSpr6ekLy7tvh1axWsemNQlvpI7rXCgnZW822No6ywKToH9GqDYvtIgfpAlAETewCyyYpzKyGaTV64GGapezYmV85GWFZatFMffyBQohaVXiWdOEl3cYpu6G92CuQ12h7hVdiNDCk-DJOB4DQZDPAT_v8kJZN4NoMOOYLbFdz6snHUePVxoY_ECv1hnRIJxiS5Z-wnsyx4ZrO3ND-pi72ZKsvb5tu4_wRxqobzmTX5lPRDzMjQEg7GSI8u0m2hy8movx6NIyi2NrAUtOHC0wS7_XlvOb7tsIBpJHyWL9lhT4xguaB4xVvNoGkoZJqTnZ9YI3NpkPYiOSbMDmlpzgg&h=DMBmPv66G4QZvRg3pjH0Lns3s7FBBursyYl_ka-CUUs + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukq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0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RfHRPD1bU97k1iK46g6ZL1Y3toRZ3eNPRLUKEg2UWKrYYav4mhnWG51cf8ydG3Cd1HnM5FiyhDw0In0sC59yb54t2gwkRvKq6g6fTg8-sYYw987qB1pNzrF_KaujzUDqI10OUl7lKyELhGPdJd8tj81ToFa20XKLaNycMuU0kWqNqru3bpNjxTFnoPnPPZUnekGW2clrxSMsDMJlTsJ-l_X6jnS6vrfxt4-WN7AFd4T9x3yzTlK2jOckuwuJSkhhF9EOSuv5GPvxJlp3Pw0jMrvwSo_hdeDk97mAUtWfTZ3dAWDCPjGn8sPaGkGa5KF37pD4mFUHk0ngZ3umjCEAxg&h=-E85vUi4yPtanvE4RD-TggbzxJvPoMub8hfjOCZtGBs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","name":"1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","status":"Running","startTime":"2024-01-18T03:59:53.8302427Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e","name":"93209d9d-0666-4ce4-8d2f-3f6a0612b83e","status":"Running","startTime":"2024-04-15T12:48:22.5433692Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:48:55 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: BEDBBDEE8BF3476D8EECEBA784166A1C Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:55Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-67988c6bd5-vshkp","status":"Starting","reason":"CrashLoopBackOff","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:43Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1516' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:26 GMT + - Mon, 15 Apr 2024 12:48:59 GMT expires: - '-1' pragma: @@ -1125,14 +1485,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: B1A118E3EE6E4A869AB6C50A946CCE45 Ref B: MAA201060513025 Ref C: 2024-04-15T12:48:57Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1150,22 +1512,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/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wDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LPSpr6ekLy7tvh1axWsemNQlvpI7rXCgnZW822No6ywKToH9GqDYvtIgfpAlAETewCyyYpzKyGaTV64GGapezYmV85GWFZatFMffyBQohaVXiWdOEl3cYpu6G92CuQ12h7hVdiNDCk-DJOB4DQZDPAT_v8kJZN4NoMOOYLbFdz6snHUePVxoY_ECv1hnRIJxiS5Z-wnsyx4ZrO3ND-pi72ZKsvb5tu4_wRxqobzmTX5lPRDzMjQEg7GSI8u0m2hy8movx6NIyi2NrAUtOHC0wS7_XlvOb7tsIBpJHyWL9lhT4xguaB4xVvNoGkoZJqTnZ9YI3NpkPYiOSbMDmlpzgg&h=DMBmPv66G4QZvRg3pjH0Lns3s7FBBursyYl_ka-CUUs + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUz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oEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=RfHRPD1bU97k1iK46g6ZL1Y3toRZ3eNPRLUKEg2UWKrYYav4mhnWG51cf8ydG3Cd1HnM5FiyhDw0In0sC59yb54t2gwkRvKq6g6fTg8-sYYw987qB1pNzrF_KaujzUDqI10OUl7lKyELhGPdJd8tj81ToFa20XKLaNycMuU0kWqNqru3bpNjxTFnoPnPPZUnekGW2clrxSMsDMJlTsJ-l_X6jnS6vrfxt4-WN7AFd4T9x3yzTlK2jOckuwuJSkhhF9EOSuv5GPvxJlp3Pw0jMrvwSo_hdeDk97mAUtWfTZ3dAWDCPjGn8sPaGkGa5KF37pD4mFUHk0ngZ3umjCEAxg&h=-E85vUi4yPtanvE4RD-TggbzxJvPoMub8hfjOCZtGBs response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","name":"1615b37e-8c03-4e3f-bbd8-1fbd49b92f04","status":"Failed","startTime":"2024-01-18T03:59:53.8302427Z","endTime":"2024-01-18T04:00:30.3785678Z","error":{"code":"BadRequest","message":"112404: - Exit code 1: application error, please refer to https://aka.ms/exitcode"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e","name":"93209d9d-0666-4ce4-8d2f-3f6a0612b83e","status":"Running","startTime":"2024-04-15T12:48:22.5433692Z"}' headers: cache-control: - no-cache content-length: - - '484' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:37 GMT + - Mon, 15 Apr 2024 12:49:06 GMT expires: - '-1' pragma: @@ -1174,14 +1535,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 849E37585CE64FC9AF7458D5CF086691 Ref B: MAA201060516037 Ref C: 2024-04-15T12:49:05Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1199,22 +1560,73 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Failed","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-f45c8b758-l24kf","status":"Failed","reason":"Exit - code 1: application error, please refer to https://aka.ms/exitcode","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T04:00:04Z"}],"source":{"type":"Jar","relativePath":"resources/6f5e0e8ce9027aa73e3e9ae71367a7f41b74ed6afcbe846a10acce32fd1487a7-2024011803-ca60ccd6-3edb-4d88-bc98-52bfaa3d6f7f","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:59:10.31169Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:59:53.2426475Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-67988c6bd5-vshkp","status":"Failed","reason":"Exit + code 1: application error, please refer to https://aka.ms/exitcode","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:43Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' headers: cache-control: - no-cache content-length: - - '1578' + - '1569' content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:49:07 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: ABEF713226B445DB942D120740F08526 Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:05Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Updating","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-67988c6bd5-vshkp","status":"Failed","reason":"Exit + code 1: application error, please refer to https://aka.ms/exitcode","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:43Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1569' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:40 GMT + - Mon, 15 Apr 2024 12:49:15 GMT expires: - '-1' pragma: @@ -1223,16 +1635,65 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: DD9D9E88BF074EB38E101AFA85168F13 Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:13Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e?api-version=2024-05-01-preview&t=638487821026428574&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf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ptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/93209d9d-0666-4ce4-8d2f-3f6a0612b83e","name":"93209d9d-0666-4ce4-8d2f-3f6a0612b83e","status":"Failed","startTime":"2024-04-15T12:48:22.5433692Z","endTime":"2024-04-15T12:49:14.7441203Z","error":{"code":"BadRequest","message":"112404: + Exit code 1: application error, please refer to https://aka.ms/exitcode"}}' + headers: + cache-control: + - no-cache + content-length: + - '489' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:49:17 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: C706985ECDFE491BB4E727058764C6F7 Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:16Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1250,21 +1711,72 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"03ea093b3add4e9fae309c25989135d2","networkProfile":{"outboundIPs":{"publicIPs":["172.165.147.104","172.165.148.128"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:56:53.8901695Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:56:53.8901695Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Failed","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-67988c6bd5-vshkp","status":"Failed","reason":"Exit + code 1: application error, please refer to https://aka.ms/exitcode","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:48:43Z"}],"source":{"type":"Jar","relativePath":"resources/c0e8ea99d776a8a48c6870fc0972e410b0d2b4060be7b97044cdf6f3b05f987c-2024041512-ba91d938-6abe-4417-8d60-6aecc4051604","version":"v1","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:47:27.4588885Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:48:21.4240212Z"}}' headers: cache-control: - no-cache content-length: - - '832' + - '1567' content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:49:24 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-msedge-ref: + - 'Ref A: 35FE82E24FD44933A74032652B26A7B3 Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:21Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app deploy + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --artifact-path --version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '919' + content-type: + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:40 GMT + - Mon, 15 Apr 2024 12:49:25 GMT expires: - '-1' pragma: @@ -1273,16 +1785,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: D9C73B7908194F199601D8B70C4848BD Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:24Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1302,9 +1814,9 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: string: '{"primaryKey":"fake","secondaryKey":"fake","primaryTestEndpoint":"fake","secondaryTestEndpoint":"fake","enabled":true}' @@ -1314,9 +1826,9 @@ interactions: content-length: - '118' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:41 GMT + - Mon, 15 Apr 2024 12:49:26 GMT expires: - '-1' pragma: @@ -1325,16 +1837,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' + x-msedge-ref: + - 'Ref A: 56A185565ACE465682664FCF419A1DDC Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:25Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1352,21 +1864,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"03ea093b3add4e9fae309c25989135d2","networkProfile":{"outboundIPs":{"publicIPs":["172.165.147.104","172.165.148.128"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:56:53.8901695Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:56:53.8901695Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '832' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 04:00:41 GMT + - Mon, 15 Apr 2024 12:49:26 GMT expires: - '-1' pragma: @@ -1375,16 +1887,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11996' + - '11999' + x-msedge-ref: + - 'Ref A: 8E45CF83235A451F925342C4AA11CDBF Ref B: MAA201060513025 Ref C: 2024-04-15T12:49:26Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1400,7 +1912,7 @@ interactions: User-Agent: - python-requests/2.31.0 method: GET - uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-default-15-f45c8b758-l24kf?tailLines=500&limitBytes=1048576&sinceSeconds=300&follow=True + uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-default-15-67988c6bd5-vshkp?tailLines=500&limitBytes=1048576&sinceSeconds=300&follow=True response: body: string: 'BUILD_IN_EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=https://clitest000002.svc.azuremicroservices.io/eureka/eureka @@ -1409,7 +1921,7 @@ interactions: BUILD_IN_SPRING_CLOUD_CONFIG_FAILFAST=true - Error: Invalid or corrupt jarfile /tmp/952c5fcf-d899-4d4c-bf8b-eab29671c7e0.jar + Error: Invalid or corrupt jarfile /tmp/2e8303b5-0ded-4ab2-891f-e1eba6c9eb60.jar ' headers: @@ -1418,7 +1930,7 @@ interactions: content-type: - text/plain date: - - Thu, 18 Jan 2024 04:00:45 GMT + - Mon, 15 Apr 2024 12:49:28 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: diff --git a/src/spring/azext_spring/tests/latest/recordings/test_deploy_app_1.yaml b/src/spring/azext_spring/tests/latest/recordings/test_deploy_app_1.yaml index 472be0b425f..563814b8a67 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_deploy_app_1.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_deploy_app_1.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f9b943e39b754ebba32bba7fb0f8c064","networkProfile":{"outboundIPs":{"publicIPs":["172.166.12.29","172.166.11.230"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:15:50.0268971Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:15:50.0268971Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:18 GMT + - Mon, 15 Apr 2024 12:54:56 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: E5C4DD97EFF64D3BBCB75C71C975D596 Ref B: MAA201060514021 Ref C: 2024-04-15T12:54:56Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -63,9 +63,9 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -75,9 +75,9 @@ interactions: content-length: - '241' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:20 GMT + - Mon, 15 Apr 2024 12:54:57 GMT expires: - '-1' pragma: @@ -86,12 +86,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 275D398AA94E46BF87A538AFEE84E05E Ref B: MAA201060515045 Ref C: 2024-04-15T12:54:57Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 404 message: Not Found @@ -109,21 +113,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f9b943e39b754ebba32bba7fb0f8c064","networkProfile":{"outboundIPs":{"publicIPs":["172.166.12.29","172.166.11.230"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:15:50.0268971Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:15:50.0268971Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:21 GMT + - Mon, 15 Apr 2024 12:54:58 GMT expires: - '-1' pragma: @@ -132,16 +136,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: AA9535FA78704B8F93CB38CCEDAFE5F2 Ref B: MAA201060515045 Ref C: 2024-04-15T12:54:58Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -165,39 +169,43 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:21.4636563Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:21.4636563Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:54:59.7256921Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:54:59.7256921Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/48f64618-98f1-44e7-a5e6-0ed59e17861b?api-version=2024-01-01-preview&t=638411447019636671&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQe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Feh3MFaHWDn9Hkn3nAa0BWMi5ZjhmBt9t_mvfwppl7WmHxjZiXvf97fi1ctUz5gWBpK1n9Lme6Lg_omcL_OYMiazirIfNA6AGMa5uK7CvYuwwx74FiHc04dq_dlOvay7EZw&h=k8dCc77lfs3RQ7S6lKSve1-LdDTWAPenlFNmq0cap5g + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5dec6641-ab8b-4945-b3c2-b0fa53e776de?api-version=2024-05-01-preview&t=638487825005694405&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBB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sL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=S8rL156GM1Xy2NLmXyG-G9DFC7E8LE2otIKFre0_IZ7BxwuPrHNLo7JMDVkn_DVPbTeZf40o4RoI8Pz_pLdhSMHJV9UMYTI18sNhOdenlfpgfCLc_zHPynHJ76LrufQQI-_yIAgtKAOSuxUhZ5g22_z-nPHdE-2HScLeVk3drH2otnYxQaCWLEXWI61cqN1OYrtqWqOkDlRzd57JBMsPcHrbpBpPxCRgsJhNGry_fE2w8aKS9cgS-1cpSLOMS-dNhje4RcniuVEFfuu-HE-qDJHK_BsKoyjtUdKVFwPo_kXTLxmoUjH0BVPjLCHVT5_sFHBp2Dc9ijTWGVtIwCJIxA&h=mG1Ij0_01o40OmnNphm2mDcN9FDoC-AkiLUGBMA80ac cache-control: - no-cache content-length: - - '923' + - '935' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:21 GMT + - Mon, 15 Apr 2024 12:55:00 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/48f64618-98f1-44e7-a5e6-0ed59e17861b/Spring/clitest000003?api-version=2024-01-01-preview&t=638411447019636671&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi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JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Qigh3M2wjSiKwlvUrhLJ0aZq9kKnsjC6HtaQ1fNBXjA3k85cljM2V5-kGU_FdAxv_TXoHMhe5PQ8X12QULm-AoKZRDD3qVaxgQODq5vyMHBP8aD6iItDDienjc-9LnGK69lBDMbwjhUcbgP3i_A6zU0CpXUAVJ4ZVkT8uiOoXGGfrZyNYaBl-56hvJdg2pjhIekwDJeB0zhZM4CH31UbYfM_hnjQk6fSW2Ky73FkjrtLb4f1d_PPiZ685RfgrlOGnE6IXqYy7o1ERhqQx3j_6tdhNBERGr0TkBxFZJcdW3GFFLKTQVTDj8ZCtovEtxQIa87l4tHl2ASrGdfsNLSIsQ&h=HbBdT6wg3PLSIOlKsSYnOrZjxQCqJEc2z4ZFyF0d9NQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5dec6641-ab8b-4945-b3c2-b0fa53e776de/Spring/clitest000003?api-version=2024-05-01-preview&t=638487825005850668&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-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THfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=rkj5OQWUCVGfhpPFDDxgeLw7tIePyZGmT8Vx6_DhO6cXPzzjA6XKJR-yb1J4dYdhR7wDPlEv_b-tMUUigo3FEq6hWBhAX5Qs17ehe-k4-JYYHChMNQwqOTVQS2IiNu85hrE4nGaRgTB2o12TnHCC5JK-3fNwaQy9OnkdE0nIktawA5i6mWfrnrqU9Rnk0w_kVWTHgAePIz0zE8bQiMJg4lK-5ieY4qWGYE2dCOqlBUWGAuB8AOkEYxpnP4uIpNCkMI3itu3cpnCbSBTpi36-TtrHio4jCnTUied6alIe6OSFY_rA0ld99CcjRGoAk0490L0Ww_gJDEJv77y2huouzg&h=9xiR1MaE26XqF7QmbJESm7hDeAXWxDltWFjZexqAJJk pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 1CD81486458F4372919FDF6A04E280D1 Ref B: MAA201060515045 Ref C: 2024-04-15T12:54:59Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -215,21 +223,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/48f64618-98f1-44e7-a5e6-0ed59e17861b?api-version=2024-01-01-preview&t=638411447019636671&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUF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IwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=rWyYzkfsD0yX7xu0ctULwbJhxaoSEYyOT50bel2AzH01Ok1ZeUH7A6jgjRw91Uq2zI5C7GNejXRbpmeL0f4VFbpFU6_2jF_cdHL17oqqz8P79io6nViaojXDEGc-h4xCqquaUj2xmuGES9zqxf7pVQ1fClv_Copew6pY3IUJicj5FqX-lMG1RSDqdxfRrtjwNy_bfj4139EE0dms5rBFeh3MFaHWDn9Hkn3nAa0BWMi5ZjhmBt9t_mvfwppl7WmHxjZiXvf97fi1ctUz5gWBpK1n9Lme6Lg_omcL_OYMiazirIfNA6AGMa5uK7CvYuwwx74FiHc04dq_dlOvay7EZw&h=k8dCc77lfs3RQ7S6lKSve1-LdDTWAPenlFNmq0cap5g + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5dec6641-ab8b-4945-b3c2-b0fa53e776de?api-version=2024-05-01-preview&t=638487825005694405&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47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fITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=S8rL156GM1Xy2NLmXyG-G9DFC7E8LE2otIKFre0_IZ7BxwuPrHNLo7JMDVkn_DVPbTeZf40o4RoI8Pz_pLdhSMHJV9UMYTI18sNhOdenlfpgfCLc_zHPynHJ76LrufQQI-_yIAgtKAOSuxUhZ5g22_z-nPHdE-2HScLeVk3drH2otnYxQaCWLEXWI61cqN1OYrtqWqOkDlRzd57JBMsPcHrbpBpPxCRgsJhNGry_fE2w8aKS9cgS-1cpSLOMS-dNhje4RcniuVEFfuu-HE-qDJHK_BsKoyjtUdKVFwPo_kXTLxmoUjH0BVPjLCHVT5_sFHBp2Dc9ijTWGVtIwCJIxA&h=mG1Ij0_01o40OmnNphm2mDcN9FDoC-AkiLUGBMA80ac response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/48f64618-98f1-44e7-a5e6-0ed59e17861b","name":"48f64618-98f1-44e7-a5e6-0ed59e17861b","status":"Succeeded","startTime":"2024-01-18T03:18:21.8099271Z","endTime":"2024-01-18T03:18:22.0700026Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5dec6641-ab8b-4945-b3c2-b0fa53e776de","name":"5dec6641-ab8b-4945-b3c2-b0fa53e776de","status":"Running","startTime":"2024-04-15T12:55:00.4846251Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '333' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:22 GMT + - Mon, 15 Apr 2024 12:55:00 GMT expires: - '-1' pragma: @@ -238,14 +246,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 730BF55BC8414946A5DA9A82E28D95A8 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:00Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -263,21 +271,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5dec6641-ab8b-4945-b3c2-b0fa53e776de?api-version=2024-05-01-preview&t=638487825005694405&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQD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SzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=S8rL156GM1Xy2NLmXyG-G9DFC7E8LE2otIKFre0_IZ7BxwuPrHNLo7JMDVkn_DVPbTeZf40o4RoI8Pz_pLdhSMHJV9UMYTI18sNhOdenlfpgfCLc_zHPynHJ76LrufQQI-_yIAgtKAOSuxUhZ5g22_z-nPHdE-2HScLeVk3drH2otnYxQaCWLEXWI61cqN1OYrtqWqOkDlRzd57JBMsPcHrbpBpPxCRgsJhNGry_fE2w8aKS9cgS-1cpSLOMS-dNhje4RcniuVEFfuu-HE-qDJHK_BsKoyjtUdKVFwPo_kXTLxmoUjH0BVPjLCHVT5_sFHBp2Dc9ijTWGVtIwCJIxA&h=mG1Ij0_01o40OmnNphm2mDcN9FDoC-AkiLUGBMA80ac response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:21.4636563Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:21.4636563Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/5dec6641-ab8b-4945-b3c2-b0fa53e776de","name":"5dec6641-ab8b-4945-b3c2-b0fa53e776de","status":"Succeeded","startTime":"2024-04-15T12:55:00.4846251Z","endTime":"2024-04-15T12:55:01.216738Z"}' headers: cache-control: - no-cache content-length: - - '1027' + - '375' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:22 GMT + - Mon, 15 Apr 2024 12:55:11 GMT expires: - '-1' pragma: @@ -286,16 +294,64 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 5E62D05176F14CA2A9C16F24D421E6E3 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:11Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app create + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --cpu --env --runtime-version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:54:59.7256921Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:54:59.7256921Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:55:12 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 579BF66E5760466D8DDDCB4E4F29CEBC Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:12Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -321,39 +377,43 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:27.22938Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:27.22938Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:55:16.5374261Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:55:16.5374261Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3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ADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=rHjxEEe8qg9DxmWIszDfsHeOVb_bZArA3NhIbvEnn-WXtbHU93nX1W3CqMvyik6s2oHPGqNburQwNgWWAfT9VMil1512VJRvORQ2rRT5df3cstWBWnsLKti8srJEeinZNBW7lOUnlOud9QqAWQA4jTTGZCqgKCUWk_5UTyX-49Ni4yVB-cgICbIOpJIJjIb7ORl-qZYE7kjFsbQgrt0wvCN95LrhujsfsWpi9iEsy2OZSSf_ZYUHDnqi0H862s98APIGwaVW3njA85QuF_jX-KTcEBujGSfKOVqRO8Svo6GJujgrk61c4-v1_V8_kMeHY1r_tXrHGk5ayTf-rnHnpw&h=KCLYlmgtINnrWVOgMh9K1TmPxeESrFjonARQX9piT60 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896?api-version=2024-05-01-preview&t=638487825175218083&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCB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Cmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=nrsfvkg9S68SoZznQGbha27chYr-EpySkfH8DaR6bKBKO-KnJJa8KL6rZpK1jBIJHeAcnEIdMKlNG0mFCbY6RN3-D7zSjmGmmmLF7Zkztu7m9s5GxFqTCOr9Z9eriEkd5gPGOtyjeK9uC4J1xIMHKfO2yN2wPh8yVqQnyx_5n2R-SJ9yYFZN26SuJg8fS9bo6ITXTMTyVy40SDXIShOgX4IYRpiJaQCIJ7pJVPIcnvmEzz5Hb9gbx3ytiDwPvqT7DvpsBHHiPQxdPYX2sy7Lx8F_WuhlucrWSwxUGq_wG9WFlqkPB42O5Vb873RJR3doUqQ6gyiGaSi65o9Yf_4YjQ&h=1EJeAqRhAgk__NkUGfXIDZ7BVsBwknnyo4YJQ7E_qKU cache-control: - no-cache content-length: - - '862' + - '852' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:27 GMT + - Mon, 15 Apr 2024 12:55:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/7c7f7fbb-0d03-44b3-a992-56c869a3719d/Spring/default?api-version=2024-01-01-preview&t=638411447079325344&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0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FaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=wqm8zaNmuq-FZEhbAjLsI1fnNPiMhEJi__1yuU6JK4PfKSJfGftOz_WInKPegPfGWlXfIJPHkcNiSm8lSPhk2f9Rq77gtZHPQMkXCYGT8NHDe6uBbHN221AANiGR0Dmpg3TbvJUflgjbSMTMZw3z_eAPfTDDHF2Hot4tpccp9dpz7csivA9E0SPcagQjldBlbWVaInE2MgGddmgxGCQvdIl4YWfvX5oYRQK_lDhCtBeC9XYCwJOsuhySRiFJg6mIVmxCJtrBG3g80iSqszy_Xr5yTKdzyOnFtRxQVoxwenS5_LEgOFxwsOyitrOhPMZqlKHx7tISbUppsxnqiZAE9g&h=v6lzznD0Qx0edq8Lz0b1vo4KwikWH5Ls-Y8_bDn-6CY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/6e482238-ecf0-4049-afb1-92c3d1480896/Spring/default?api-version=2024-05-01-preview&t=638487825175218083&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFz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8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=mxMPbufJf3qXzxvoEbiHJq1M4bG56Ez2V-Kzd8CsJw1ozoLd7Ju7-xCGLgu76BxvMFZF65PP9k_F9EF3W1Q34ZAPmH8ZcrDxGZxCShSx72LYB8OLRLT1KdJ038wlOdEei4tRoxjf_zFvc_g6LQydpYHErz1FpEwffTPelN-N7c44VIuKzj7sguaX2ZDW0IJU75uHOlw6dOqGFyldor0JZGpYxtm0cvyfVtuxzpq-L-_uqTbh-RY8Ld-Yc77V_fhEdiJPtoZIZ-zb7mQxFYg4SKPhRThuY0iycv8COyz7POgn7ACHVRKDBOs2YNGrjSzOhPpmZUn6r6gocpmUdvdsig&h=IXIT4oFMjO04VYpbp1IL2w_wELYlv9kzYapy1Dxr1z8 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '1199' + - '1198' + x-msedge-ref: + - 'Ref A: 4CEC6EDE8D4E4B5F831859C353547AEE Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:15Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -371,21 +431,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3-a992-56c869a3719d?api-version=2024-01-01-preview&t=638411447079325344&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3Js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A1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=rHjxEEe8qg9DxmWIszDfsHeOVb_bZArA3NhIbvEnn-WXtbHU93nX1W3CqMvyik6s2oHPGqNburQwNgWWAfT9VMil1512VJRvORQ2rRT5df3cstWBWnsLKti8srJEeinZNBW7lOUnlOud9QqAWQA4jTTGZCqgKCUWk_5UTyX-49Ni4yVB-cgICbIOpJIJjIb7ORl-qZYE7kjFsbQgrt0wvCN95LrhujsfsWpi9iEsy2OZSSf_ZYUHDnqi0H862s98APIGwaVW3njA85QuF_jX-KTcEBujGSfKOVqRO8Svo6GJujgrk61c4-v1_V8_kMeHY1r_tXrHGk5ayTf-rnHnpw&h=KCLYlmgtINnrWVOgMh9K1TmPxeESrFjonARQX9piT60 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896?api-version=2024-05-01-preview&t=638487825175218083&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQ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dIwQYMBaAFK55wmtdJYgTBvYHCcOXfHuXjx1VMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjANBgkqhkiG9w0BAQsFAAOCAQEAQecZ6u3Vy_TvdS1UGS1bLXbc7WCmjz1SY2cbMWSy7F1JLL2cdtJQunrfzR8hinuMeynkkpEAWzLv-QEzW5c6bJ9MOBQKfcP-JVyIpUJTWKeWGEPwiH986PrB3MvzN6AaYRL6CdZPVlNl9TwhL8Uom3OFDx0m0mLdYvyfeTEW_Ifuil7NDR_sTJXNqBOg38-06i2DKZdwNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=nrsfvkg9S68SoZznQGbha27chYr-EpySkfH8DaR6bKBKO-KnJJa8KL6rZpK1jBIJHeAcnEIdMKlNG0mFCbY6RN3-D7zSjmGmmmLF7Zkztu7m9s5GxFqTCOr9Z9eriEkd5gPGOtyjeK9uC4J1xIMHKfO2yN2wPh8yVqQnyx_5n2R-SJ9yYFZN26SuJg8fS9bo6ITXTMTyVy40SDXIShOgX4IYRpiJaQCIJ7pJVPIcnvmEzz5Hb9gbx3ytiDwPvqT7DvpsBHHiPQxdPYX2sy7Lx8F_WuhlucrWSwxUGq_wG9WFlqkPB42O5Vb873RJR3doUqQ6gyiGaSi65o9Yf_4YjQ&h=1EJeAqRhAgk__NkUGfXIDZ7BVsBwknnyo4YJQ7E_qKU response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3-a992-56c869a3719d","name":"7c7f7fbb-0d03-44b3-a992-56c869a3719d","status":"Running","startTime":"2024-01-18T03:18:27.74453Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896","name":"6e482238-ecf0-4049-afb1-92c3d1480896","status":"Running","startTime":"2024-04-15T12:55:17.370317Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '326' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:28 GMT + - Mon, 15 Apr 2024 12:55:17 GMT expires: - '-1' pragma: @@ -394,14 +454,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B3D60BEA173144E78BEF620641061E43 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -419,21 +479,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3-a992-56c869a3719d?api-version=2024-01-01-preview&t=638411447079325344&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=rHjxEEe8qg9DxmWIszDfsHeOVb_bZArA3NhIbvEnn-WXtbHU93nX1W3CqMvyik6s2oHPGqNburQwNgWWAfT9VMil1512VJRvORQ2rRT5df3cstWBWnsLKti8srJEeinZNBW7lOUnlOud9QqAWQA4jTTGZCqgKCUWk_5UTyX-49Ni4yVB-cgICbIOpJIJjIb7ORl-qZYE7kjFsbQgrt0wvCN95LrhujsfsWpi9iEsy2OZSSf_ZYUHDnqi0H862s98APIGwaVW3njA85QuF_jX-KTcEBujGSfKOVqRO8Svo6GJujgrk61c4-v1_V8_kMeHY1r_tXrHGk5ayTf-rnHnpw&h=KCLYlmgtINnrWVOgMh9K1TmPxeESrFjonARQX9piT60 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896?api-version=2024-05-01-preview&t=638487825175218083&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lb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wNcx92E3UsgW_avrTtx_jeUivpCTrRXRgXa814xZxBcvZTeyOe9yzKJxcM6_QIGW97JT9oBXaCceQ2KQgaD0FQLAWSANWbHqNf6Wzz3Osu0t0UO57HorMxIM1ZHA2wKetsyhuX8yzeGvnoQ&s=nrsfvkg9S68SoZznQGbha27chYr-EpySkfH8DaR6bKBKO-KnJJa8KL6rZpK1jBIJHeAcnEIdMKlNG0mFCbY6RN3-D7zSjmGmmmLF7Zkztu7m9s5GxFqTCOr9Z9eriEkd5gPGOtyjeK9uC4J1xIMHKfO2yN2wPh8yVqQnyx_5n2R-SJ9yYFZN26SuJg8fS9bo6ITXTMTyVy40SDXIShOgX4IYRpiJaQCIJ7pJVPIcnvmEzz5Hb9gbx3ytiDwPvqT7DvpsBHHiPQxdPYX2sy7Lx8F_WuhlucrWSwxUGq_wG9WFlqkPB42O5Vb873RJR3doUqQ6gyiGaSi65o9Yf_4YjQ&h=1EJeAqRhAgk__NkUGfXIDZ7BVsBwknnyo4YJQ7E_qKU response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3-a992-56c869a3719d","name":"7c7f7fbb-0d03-44b3-a992-56c869a3719d","status":"Running","startTime":"2024-01-18T03:18:27.74453Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896","name":"6e482238-ecf0-4049-afb1-92c3d1480896","status":"Running","startTime":"2024-04-15T12:55:17.370317Z"}' headers: cache-control: - no-cache content-length: - - '320' + - '326' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:38 GMT + - Mon, 15 Apr 2024 12:55:28 GMT expires: - '-1' pragma: @@ -442,14 +502,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5F74308FDA924E9AB1C71554751FA18B Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:28Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -467,21 +527,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3-a992-56c869a3719d?api-version=2024-01-01-preview&t=638411447079325344&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6V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jTTGZCqgKCUWk_5UTyX-49Ni4yVB-cgICbIOpJIJjIb7ORl-qZYE7kjFsbQgrt0wvCN95LrhujsfsWpi9iEsy2OZSSf_ZYUHDnqi0H862s98APIGwaVW3njA85QuF_jX-KTcEBujGSfKOVqRO8Svo6GJujgrk61c4-v1_V8_kMeHY1r_tXrHGk5ayTf-rnHnpw&h=KCLYlmgtINnrWVOgMh9K1TmPxeESrFjonARQX9piT60 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896?api-version=2024-05-01-preview&t=638487825175218083&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0HV0WGZ80NUuUhFFUdf94u96e-8r6L7dz9zEXWHApvUxiDHDGAKil_Vll-2CU3hoBQYCEkwSHgBwBBs9_wC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qQnyx_5n2R-SJ9yYFZN26SuJg8fS9bo6ITXTMTyVy40SDXIShOgX4IYRpiJaQCIJ7pJVPIcnvmEzz5Hb9gbx3ytiDwPvqT7DvpsBHHiPQxdPYX2sy7Lx8F_WuhlucrWSwxUGq_wG9WFlqkPB42O5Vb873RJR3doUqQ6gyiGaSi65o9Yf_4YjQ&h=1EJeAqRhAgk__NkUGfXIDZ7BVsBwknnyo4YJQ7E_qKU response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/7c7f7fbb-0d03-44b3-a992-56c869a3719d","name":"7c7f7fbb-0d03-44b3-a992-56c869a3719d","status":"Succeeded","startTime":"2024-01-18T03:18:27.74453Z","endTime":"2024-01-18T03:18:48.5093257Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896","name":"6e482238-ecf0-4049-afb1-92c3d1480896","status":"Running","startTime":"2024-04-15T12:55:17.370317Z"}' headers: cache-control: - no-cache content-length: - - '363' + - '326' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:48 GMT + - Mon, 15 Apr 2024 12:55:39 GMT expires: - '-1' pragma: @@ -490,14 +550,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D5320B7DEB85477CB7A0604F63D0B086 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:39Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -515,21 +575,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896?api-version=2024-05-01-preview&t=638487825175218083&c=MIIHrTCCBpWgAwIBAgITfwLBjXw4zjrTc5t5NAAEAsGNfDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjQwMzA0MDE1ODIwWhcNMjUwMjI3MDE1ODIwWjCBjDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvtNWzX7Z4RXasqNpidaHzNujkmKIyeVQ0-WDwUq-xuI9MngwGfjp7c7s5Xb8FEMqNdZ1xARSX0cBqqPaGRNWlUq2dptWsjU2XASz899FGoiPCAP0Hw1IzLGB5egvgqEb0tCLMFDKHps1ibdq1zbzi7_t6RAzAiBv_Y0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6RN3-D7zSjmGmmmLF7Zkztu7m9s5GxFqTCOr9Z9eriEkd5gPGOtyjeK9uC4J1xIMHKfO2yN2wPh8yVqQnyx_5n2R-SJ9yYFZN26SuJg8fS9bo6ITXTMTyVy40SDXIShOgX4IYRpiJaQCIJ7pJVPIcnvmEzz5Hb9gbx3ytiDwPvqT7DvpsBHHiPQxdPYX2sy7Lx8F_WuhlucrWSwxUGq_wG9WFlqkPB42O5Vb873RJR3doUqQ6gyiGaSi65o9Yf_4YjQ&h=1EJeAqRhAgk__NkUGfXIDZ7BVsBwknnyo4YJQ7E_qKU response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6d8ff8fd45-sjxb8","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:18:33Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:27.22938Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:27.22938Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/6e482238-ecf0-4049-afb1-92c3d1480896","name":"6e482238-ecf0-4049-afb1-92c3d1480896","status":"Succeeded","startTime":"2024-04-15T12:55:17.370317Z","endTime":"2024-04-15T12:55:45.3303799Z"}' headers: cache-control: - no-cache content-length: - - '1370' + - '369' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:51 GMT + - Mon, 15 Apr 2024 12:55:50 GMT expires: - '-1' pragma: @@ -538,16 +598,64 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 8587C86B520E490B8D05AB20BAC115F3 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:50Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring app create + Connection: + - keep-alive + ParameterSetName: + - -n -g -s --cpu --env --runtime-version + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-9989fd9fc-7kslr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:55:24Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:55:16.5374261Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:55:16.5374261Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '1359' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 12:55:53 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 2EE8C3ADBE1F4885B60714435CECFEBE Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:51Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -565,21 +673,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"disableTestEndpointAuth":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:21.4636563Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:21.4636563Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"configServer":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:54:59.7256921Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:54:59.7256921Z"}}' headers: cache-control: - no-cache content-length: - - '1027' + - '1039' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:52 GMT + - Mon, 15 Apr 2024 12:55:57 GMT expires: - '-1' pragma: @@ -588,16 +696,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 3DBADF31612849BC961A6E192A320887 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:57Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -615,21 +723,21 @@ interactions: ParameterSetName: - -n -g -s --cpu --env --runtime-version User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6d8ff8fd45-sjxb8","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:18:33Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:27.22938Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:27.22938Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-9989fd9fc-7kslr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:55:24Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:55:16.5374261Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:55:16.5374261Z"}}]}' headers: cache-control: - no-cache content-length: - - '1382' + - '1371' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:55 GMT + - Mon, 15 Apr 2024 12:56:01 GMT expires: - '-1' pragma: @@ -638,16 +746,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11998' + x-msedge-ref: + - 'Ref A: 2A888FBDB7B649C9882A260F94F92412 Ref B: MAA201060515045 Ref C: 2024-04-15T12:55:58Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -665,21 +773,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6d8ff8fd45-sjxb8","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:18:33Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:27.22938Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:27.22938Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-9989fd9fc-7kslr","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:55:24Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:55:16.5374261Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:55:16.5374261Z"}}]}' headers: cache-control: - no-cache content-length: - - '1382' + - '1371' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:18:59 GMT + - Mon, 15 Apr 2024 12:56:05 GMT expires: - '-1' pragma: @@ -688,16 +796,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: D2902A0A76E5491B91EBDBC36401ADD6 Ref B: MAA201060514011 Ref C: 2024-04-15T12:56:03Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -715,21 +823,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f9b943e39b754ebba32bba7fb0f8c064","networkProfile":{"outboundIPs":{"publicIPs":["172.166.12.29","172.166.11.230"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:15:50.0268971Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:15:50.0268971Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:01 GMT + - Mon, 15 Apr 2024 12:56:06 GMT expires: - '-1' pragma: @@ -738,16 +846,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 7A6FFE37E8B5470B8D539B3AADA6F81E Ref B: MAA201060515031 Ref C: 2024-04-15T12:56:07Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -765,21 +873,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f9b943e39b754ebba32bba7fb0f8c064","networkProfile":{"outboundIPs":{"publicIPs":["172.166.12.29","172.166.11.230"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:15:50.0268971Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:15:50.0268971Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:02 GMT + - Mon, 15 Apr 2024 12:56:07 GMT expires: - '-1' pragma: @@ -788,16 +896,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: FD9462250A1D453CA842C7BB6BEAD788 Ref B: MAA201060515047 Ref C: 2024-04-15T12:56:08Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -817,21 +925,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/getResourceUploadUrl?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/getResourceUploadUrl?api-version=2024-05-01-preview response: body: - string: '{"relativePath":"resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7","uploadUrl":"https://da7994afe8124e5d9d1c3973.file.core.windows.net/f9b943e39b754ebba32bba7fb0f8c064/resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7?sv=2020-08-04&se=2024-01-18T05%3A19%3A04Z&sr=f&sp=w&sig=E4K55jphmkbygkZnuifKzEn32wor4AeAJD3DCPdLT20%3D"}' + string: '{"relativePath":"resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408","uploadUrl":"https://57a11a7131c74adfb57303e3.file.core.windows.net/56e88126a961459ca367bb6223cf4a16/resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408?sv=2020-08-04&se=2024-04-15T14%3A56%3A10Z&sr=f&sp=w&sig=frDecl2w8ncKonnkWHQ8qt%2B1UDyXEBdZp6O8smDym5I%3D"}' headers: cache-control: - no-cache content-length: - - '469' + - '471' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:03 GMT + - Mon, 15 Apr 2024 12:56:10 GMT expires: - '-1' pragma: @@ -840,16 +948,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 6FF4A498E99D4418AB8869CC46B2A7E2 Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:09Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -861,17 +969,17 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Darwin 23.2.0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.10; Windows 10) x-ms-content-length: - - '10' + - '11' x-ms-date: - - Thu, 18 Jan 2024 03:19:04 GMT + - Mon, 15 Apr 2024 12:56:10 GMT x-ms-type: - file x-ms-version: - '2018-11-09' method: PUT - uri: https://da7994afe8124e5d9d1c3973.file.core.windows.net/f9b943e39b754ebba32bba7fb0f8c064/resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7?sv=2020-08-04&se=2024-01-18T05%3A19%3A04Z&sr=f&sp=w&sig=E4K55jphmkbygkZnuifKzEn32wor4AeAJD3DCPdLT20%3D + uri: https://57a11a7131c74adfb57303e3.file.core.windows.net/56e88126a961459ca367bb6223cf4a16/resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408?sv=2020-08-04&se=2024-04-15T14%3A56%3A10Z&sr=f&sp=w&sig=frDecl2w8ncKonnkWHQ8qt%2B1UDyXEBdZp6O8smDym5I%3D response: body: string: '' @@ -879,11 +987,11 @@ interactions: content-length: - '0' date: - - Thu, 18 Jan 2024 03:19:04 GMT + - Mon, 15 Apr 2024 12:56:11 GMT etag: - - '"0x8DC17D43A4E7762"' + - '"0x8DC5D4B6D2B9A09"' last-modified: - - Thu, 18 Jan 2024 03:19:05 GMT + - Mon, 15 Apr 2024 12:56:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -894,26 +1002,24 @@ interactions: code: 201 message: Created - request: - body: 'fake-text - - ' + body: "fake-text\r\n" headers: Connection: - keep-alive Content-Length: - - '10' + - '11' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.9.6; Darwin 23.2.0) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.10; Windows 10) x-ms-date: - - Thu, 18 Jan 2024 03:19:05 GMT + - Mon, 15 Apr 2024 12:56:11 GMT x-ms-range: - - bytes=0-9 + - bytes=0-10 x-ms-version: - '2018-11-09' x-ms-write: - update method: PUT - uri: https://da7994afe8124e5d9d1c3973.file.core.windows.net/f9b943e39b754ebba32bba7fb0f8c064/resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7?comp=range&sv=2020-08-04&se=2024-01-18T05%3A19%3A04Z&sr=f&sp=w&sig=E4K55jphmkbygkZnuifKzEn32wor4AeAJD3DCPdLT20%3D + uri: https://57a11a7131c74adfb57303e3.file.core.windows.net/56e88126a961459ca367bb6223cf4a16/resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408?comp=range&sv=2020-08-04&se=2024-04-15T14%3A56%3A10Z&sr=f&sp=w&sig=frDecl2w8ncKonnkWHQ8qt%2B1UDyXEBdZp6O8smDym5I%3D response: body: string: '' @@ -921,13 +1027,13 @@ interactions: content-length: - '0' content-md5: - - s2jzCli9dzvFYjAxyfFwsw== + - 99EB7GGDEcq+ZSyODG3erA== date: - - Thu, 18 Jan 2024 03:19:05 GMT + - Mon, 15 Apr 2024 12:56:11 GMT etag: - - '"0x8DC17D43A77A438"' + - '"0x8DC5D4B6D3F9451"' last-modified: - - Thu, 18 Jan 2024 03:19:06 GMT + - Mon, 15 Apr 2024 12:56:11 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -939,7 +1045,7 @@ interactions: message: Created - request: body: '{"properties": {"source": {"type": "NetCoreZip", "version": "v2", "relativePath": - "resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7", + "resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408", "netCoreMainEntryPath": "test", "runtimeVersion": "NetCore_31"}, "deploymentSettings": {}}, "sku": {"name": "S0", "tier": "Standard"}}' headers: @@ -958,39 +1064,43 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"NetCoreZip","relativePath":"resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7","version":"v2","runtimeVersion":"NetCore_31","netCoreMainEntryPath":"test"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:27.22938Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:19:06.5657116Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90},"provisioningState":"Updating","status":"Running","active":true,"instances":null,"source":{"type":"NetCoreZip","relativePath":"resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408","version":"v2","runtimeVersion":"NetCore_31","netCoreMainEntryPath":"test"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:55:16.5374261Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:56:12.0243788Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBv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bwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVC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YuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BAvwWE8YF94_NXOr0VM7tQQxCW-aV_89J3pTNT9IZ5htuDgKgh9r-TtblF3yxTSg5dslO1YpN335lC68LrNUkTnC-aqqjM7aFQIWbnWyLu2yOC_aHKBEcCJw88bNxPQ_uv5hbSCjlNICOHCBvfOwkufq4Q4BhAvJT6U8hGqj1s6EQILce4aoRbJeAYcjpkJZi9lwmRhV6P0aThT9ngNXeJ08Nc1ylx41CWqco2bVKYDSNANJQ0-h2LRdGLzxtM85DxnZNcqPiuzoQV8EjtMHshDFuHJqjYmW2UUc2PukGdQ02jD-dNRSGZ656OL0GwcsM1JS55WO4I4wsGQGE-pizg&h=3W-KB7-oIOOL3w9JO3sfmxTETHfQCV5lHFy0-KaFpU8 cache-control: - no-cache content-length: - - '1032' + - '1020' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:06 GMT + - Mon, 15 Apr 2024 12:56:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/0f44d09d-aeb5-4309-b411-0987e9e03405/Spring/default?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcww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BJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Zc6-CTVjY-r3jP5BH8Nw4i2QtQA9-3Qv0doO4H6dMMZH-09oA-4UT-n0OLy3BgIYnqTkRGPmMq9zNLeLixUJYwnl00NJo0_chBKDk7j_A-EgCMCo861ak_1GNGiwVxadZyj5-qHaN6GYqboqpTuD2fFGa7Ki6I-9fw15dID0YmUELP96JUW0FHzYPrKPW8-qhmBnFl6gTJYZ419JtlPyunWSREazzvLxivqu80YITcwbWe_e1ZBQhksewBtDQGILnrTmfPKzho_cA14DCkssaqm5m_lAlzVt03bikCxMsUzBJG-D4V6aDV5WCDr7kudGgYkf_84V6DMkWR5L7dhUHA&h=0WP8yaw1o15RVEJknTg0xinToakUkJHzz8bjEoAXNko + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5259f9aa-c948-404f-baf5-127a05f49aed/Spring/default?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DAN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Do2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=tKPqtwoJ1EaTqM4fo571MebfegQporZSBjvHnOoqo7pMVGzxSqjWdWM2TZ99WCsfwFy6X7c41j661v0w30oj7sKLdz6lLe6Qby4JQMrXpL8VghCBWJCBUQFOdYO2W-uOJDvX-Em9fveZ4b9_tOYOvmfJInRsO81n096cnLZJycy7vvyYzoa9e3_xAYpLvwOb5puHF2vj6mh4hVYe_kXp45GcgyeqryyOgRdBUgbh4WETWPNhKcgc_0fHiaXpL7zsyjoAdBeYQMhqZVgvG3Vyne2Ja_02hi1QCFVJCNzrGOlW4aJMpfGUmd1WgZ7IimQFmcPGtQQJqbiAOfNR0iX7Gg&h=_DETSxFAX-fEPvygdMedZQuwRqRU2aAooOJtPjSqKyQ pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 0DC19A5CF4EC4F999B217D5C9F9CE949 Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:11Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -1008,21 +1118,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGC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UyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bXXsY4wEQdGpA5gowv3LXXxSE3xU1ZFXLCp9TSqoDZF9tALZ-o1mAzfPAzPOoT78cWOTPx_Pik9jKl87RQJxCeYcQPJfjMg9JuPsX91ftpoTcje3_i6NcyRNyntAYZnnX3CQiSpK1lQ-emXrrN3qtBpY6QpA-XhoZIfkbwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA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DTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BAvwWE8YF94_NXOr0VM7tQQxCW-aV_89J3pTNT9IZ5htuDgKgh9r-TtblF3yxTSg5dslO1YpN335lC68LrNUkTnC-aqqjM7aFQIWbnWyLu2yOC_aHKBEcCJw88bNxPQ_uv5hbSCjlNICOHCBvfOwkufq4Q4BhAvJT6U8hGqj1s6EQILce4aoRbJeAYcjpkJZi9lwmRhV6P0aThT9ngNXeJ08Nc1ylx41CWqco2bVKYDSNANJQ0-h2LRdGLzxtM85DxnZNcqPiuzoQV8EjtMHshDFuHJqjYmW2UUc2PukGdQ02jD-dNRSGZ656OL0GwcsM1JS55WO4I4wsGQGE-pizg&h=3W-KB7-oIOOL3w9JO3sfmxTETHfQCV5lHFy0-KaFpU8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405","name":"0f44d09d-aeb5-4309-b411-0987e9e03405","status":"Running","startTime":"2024-01-18T03:19:07.1501539Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed","name":"5259f9aa-c948-404f-baf5-127a05f49aed","status":"Running","startTime":"2024-04-15T12:56:13.3332443Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:06 GMT + - Mon, 15 Apr 2024 12:56:13 GMT expires: - '-1' pragma: @@ -1031,14 +1141,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: CB1C9F32CE6E45A69D5B26290723E2F7 Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:13Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1056,21 +1166,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA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mAzfPAzPOoT78cWOTPx_Pik9jKl87RQJxCeYcQPJfjMg9JuPsX91ftpoTcje3_i6NcyRNyntAYZnnX3CQiSpK1lQ-emXrrN3qtBpY6QpA-XhoZIfkbwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbw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4I4wsGQGE-pizg&h=3W-KB7-oIOOL3w9JO3sfmxTETHfQCV5lHFy0-KaFpU8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405","name":"0f44d09d-aeb5-4309-b411-0987e9e03405","status":"Running","startTime":"2024-01-18T03:19:07.1501539Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed","name":"5259f9aa-c948-404f-baf5-127a05f49aed","status":"Running","startTime":"2024-04-15T12:56:13.3332443Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:18 GMT + - Mon, 15 Apr 2024 12:56:24 GMT expires: - '-1' pragma: @@ -1079,14 +1189,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B993EAC1EF3149A78CC28D9670BA7934 Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:24Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1104,21 +1214,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20v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BBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bXXsY4wEQdGpA5gowv3LXXxSE3xU1ZFXLCp9TSqoDZF9tALZ-o1mAzfPAzPOoT78cWOTPx_Pik9jKl87RQJxCeYcQPJfjMg9JuPsX91ftpoTcje3_i6NcyRNyntAYZnnX3CQiSpK1lQ-emXrrN3qtBpY6QpA-XhoZIfkbwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBG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WY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BAvwWE8YF94_NXOr0VM7tQQxCW-aV_89J3pTNT9IZ5htuDgKgh9r-TtblF3yxTSg5dslO1YpN335lC68LrNUkTnC-aqqjM7aFQIWbnWyLu2yOC_aHKBEcCJw88bNxPQ_uv5hbSCjlNICOHCBvfOwkufq4Q4BhAvJT6U8hGqj1s6EQILce4aoRbJeAYcjpkJZi9lwmRhV6P0aThT9ngNXeJ08Nc1ylx41CWqco2bVKYDSNANJQ0-h2LRdGLzxtM85DxnZNcqPiuzoQV8EjtMHshDFuHJqjYmW2UUc2PukGdQ02jD-dNRSGZ656OL0GwcsM1JS55WO4I4wsGQGE-pizg&h=3W-KB7-oIOOL3w9JO3sfmxTETHfQCV5lHFy0-KaFpU8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405","name":"0f44d09d-aeb5-4309-b411-0987e9e03405","status":"Running","startTime":"2024-01-18T03:19:07.1501539Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed","name":"5259f9aa-c948-404f-baf5-127a05f49aed","status":"Running","startTime":"2024-04-15T12:56:13.3332443Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:28 GMT + - Mon, 15 Apr 2024 12:56:35 GMT expires: - '-1' pragma: @@ -1127,14 +1237,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2FF40F8D4DCC4F649F3B3B1C8B12DADD Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:35Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1152,21 +1262,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3G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g9JuPsX91ftpoTcje3_i6NcyRNyntAYZnnX3CQiSpK1lQ-emXrrN3qtBpY6QpA-XhoZIfkbwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009B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fQCV5lHFy0-KaFpU8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405","name":"0f44d09d-aeb5-4309-b411-0987e9e03405","status":"Running","startTime":"2024-01-18T03:19:07.1501539Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed","name":"5259f9aa-c948-404f-baf5-127a05f49aed","status":"Running","startTime":"2024-04-15T12:56:13.3332443Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:38 GMT + - Mon, 15 Apr 2024 12:56:45 GMT expires: - '-1' pragma: @@ -1175,14 +1285,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DE0C73D410EB4852AED23725386E2A5D Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:45Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1200,21 +1310,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTU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ileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bXXsY4wEQdGpA5gowv3LXXxSE3xU1ZFXLCp9TSqoDZF9tALZ-o1mAzfPAzPOoT78cWOTPx_Pik9jKl87RQJxCeYcQPJfjMg9JuPsX91ftpoTcje3_i6NcyRNyntAYZnnX3CQiSpK1lQ-emXrrN3qtBpY6QpA-XhoZIfkbwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BAvwWE8YF94_NXOr0VM7tQQxCW-aV_89J3pTNT9IZ5htuDgKgh9r-TtblF3yxTSg5dslO1YpN335lC68LrNUkTnC-aqqjM7aFQIWbnWyLu2yOC_aHKBEcCJw88bNxPQ_uv5hbSCjlNICOHCBvfOwkufq4Q4BhAvJT6U8hGqj1s6EQILce4aoRbJeAYcjpkJZi9lwmRhV6P0aThT9ngNXeJ08Nc1ylx41CWqco2bVKYDSNANJQ0-h2LRdGLzxtM85DxnZNcqPiuzoQV8EjtMHshDFuHJqjYmW2UUc2PukGdQ02jD-dNRSGZ656OL0GwcsM1JS55WO4I4wsGQGE-pizg&h=3W-KB7-oIOOL3w9JO3sfmxTETHfQCV5lHFy0-KaFpU8 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405","name":"0f44d09d-aeb5-4309-b411-0987e9e03405","status":"Running","startTime":"2024-01-18T03:19:07.1501539Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed","name":"5259f9aa-c948-404f-baf5-127a05f49aed","status":"Running","startTime":"2024-04-15T12:56:13.3332443Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '327' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:19:49 GMT + - Mon, 15 Apr 2024 12:56:56 GMT expires: - '-1' pragma: @@ -1223,14 +1333,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 095C6F37D3BB42A9A98D5ABDACA3E9AF Ref B: MAA201060513009 Ref C: 2024-04-15T12:56:56Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1248,22 +1358,22 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405?api-version=2024-01-01-preview&t=638411447472844348&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJn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emXrrN3qtBpY6QpA-XhoZIfkbwtJnCxqDEv-r-nCfIH7e3CSw4_gQswIaM2InMvDURtNLO1NAvo45K9Uxra1yUGgtbKuQhozrqyUBdGXsBx-BKBK7gxLfGL1TgeWInWBnr7lbi2l9Yn6-BW6dpff3zAnTiIdBke0iTW2q4v7LINN5Cs6j7butAl1mpCofbgtP17rM8ncbw&h=LKgpplV7vn555sAoSo4laj6owMRy-fQmuD17Cyf_9mo + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed?api-version=2024-05-01-preview&t=638487825734306197&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaO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-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/0f44d09d-aeb5-4309-b411-0987e9e03405","name":"0f44d09d-aeb5-4309-b411-0987e9e03405","status":"Failed","startTime":"2024-01-18T03:19:07.1501539Z","endTime":"2024-01-18T03:19:54.9236117Z","error":{"code":"BadRequest","message":"112404: + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/5259f9aa-c948-404f-baf5-127a05f49aed","name":"5259f9aa-c948-404f-baf5-127a05f49aed","status":"Failed","startTime":"2024-04-15T12:56:13.3332443Z","endTime":"2024-04-15T12:57:03.5699193Z","error":{"code":"BadRequest","message":"112404: Exit code 0: purposely stopped, please refer to https://aka.ms/exitcode"}}' headers: cache-control: - no-cache content-length: - - '484' + - '489' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:20:00 GMT + - Mon, 15 Apr 2024 12:57:07 GMT expires: - '-1' pragma: @@ -1272,14 +1382,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A8B638E1CF4E4A379EC876F2C801A717 Ref B: MAA201060513009 Ref C: 2024-04-15T12:57:07Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1297,22 +1407,22 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Failed","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-55df5c78fc-9t654","status":"Failed","reason":"Exit - code 0: purposely stopped, please refer to https://aka.ms/exitcode","discoveryStatus":"UNREGISTERED","startTime":"2024-01-18T03:19:14Z"}],"source":{"type":"NetCoreZip","relativePath":"resources/a38e0f3349503edbbe6809b7d739123bbea285ca9f862ba00a0a9de8cf584f8a-2024011803-cad8429c-9afd-436d-a398-fd4ad89e7bd7","version":"v2","runtimeVersion":"NetCore_31","netCoreMainEntryPath":"test"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:27.22938Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:19:06.5657116Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"2","memory":"1Gi"},"environmentVariables":{"foo":"bar"},"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Failed","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7976b85c4d-2pzld","status":"Failed","reason":"Exit + code 0: purposely stopped, please refer to https://aka.ms/exitcode","discoveryStatus":"UNREGISTERED","startTime":"2024-04-15T12:56:18Z"}],"source":{"type":"NetCoreZip","relativePath":"resources/e59b96d36a6970cf11b2418f3d927dfc25037841e9e86c2fcd9039c497c6fbb6-2024041512-3dd86777-cfd7-4f11-8f70-d71a65483408","version":"v2","runtimeVersion":"NetCore_31","netCoreMainEntryPath":"test"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T12:55:16.5374261Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T12:56:12.0243788Z"}}' headers: cache-control: - no-cache content-length: - - '1619' + - '1607' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:20:03 GMT + - Mon, 15 Apr 2024 12:57:10 GMT expires: - '-1' pragma: @@ -1321,16 +1431,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: A6E1EFA1AA1543279813D9C52F3F0FF1 Ref B: MAA201060513009 Ref C: 2024-04-15T12:57:08Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1348,21 +1458,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f9b943e39b754ebba32bba7fb0f8c064","networkProfile":{"outboundIPs":{"publicIPs":["172.166.12.29","172.166.11.230"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:15:50.0268971Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:15:50.0268971Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:20:03 GMT + - Mon, 15 Apr 2024 12:57:11 GMT expires: - '-1' pragma: @@ -1371,16 +1481,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 45EA6C9A042147FFA3F04CF45436449C Ref B: MAA201060513009 Ref C: 2024-04-15T12:57:11Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1400,9 +1510,9 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/listTestKeys?api-version=2024-05-01-preview response: body: string: '{"primaryKey":"fake","secondaryKey":"fake","primaryTestEndpoint":"fake","secondaryTestEndpoint":"fake","enabled":true}' @@ -1412,9 +1522,9 @@ interactions: content-length: - '118' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:20:04 GMT + - Mon, 15 Apr 2024 12:57:12 GMT expires: - '-1' pragma: @@ -1423,16 +1533,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: CE73A76127534E8CBAD80B0CA63F0619 Ref B: MAA201060513009 Ref C: 2024-04-15T12:57:12Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1450,21 +1560,21 @@ interactions: ParameterSetName: - -n -g -s --artifact-path --version --runtime-version --main-entry User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f9b943e39b754ebba32bba7fb0f8c064","networkProfile":{"outboundIPs":{"publicIPs":["172.166.12.29","172.166.11.230"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:15:50.0268971Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:15:50.0268971Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:20:04 GMT + - Mon, 15 Apr 2024 12:57:13 GMT expires: - '-1' pragma: @@ -1473,16 +1583,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: F1C3964597BE45B59C7B3C1BBBF61D55 Ref B: MAA201060513009 Ref C: 2024-04-15T12:57:13Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -1498,30 +1608,30 @@ interactions: User-Agent: - python-requests/2.31.0 method: GET - uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-default-15-55df5c78fc-9t654?tailLines=500&limitBytes=1048576&sinceSeconds=300&follow=True + uri: https://clitest000002.azuremicroservices.io/api/logstream/apps/clitest000003/instances/clitest000003-default-15-7976b85c4d-2pzld?tailLines=500&limitBytes=1048576&sinceSeconds=300&follow=True response: body: - string: "2024-01-18 03:19:51,089 INFO supervisord started with pid 1\n2024-01-18 - 03:19:52,091 INFO spawned: 'dotnet-app' with pid 9\n2024-01-18 03:19:52,091 - INFO spawned: 'event-gather' with pid 10\n2024-01-18 03:19:52,092 INFO spawned: + string: "2024-04-15 12:56:53,843 INFO supervisord started with pid 1\n2024-04-15 + 12:56:54,845 INFO spawned: 'dotnet-app' with pid 9\n2024-04-15 12:56:54,846 + INFO spawned: 'event-gather' with pid 10\n2024-04-15 12:56:54,846 INFO spawned: 'dotnet-app' with pid 11\nREADY\n It was not possible to find any installed .NET Core SDKs\n Did you mean to run .NET Core SDK commands? Install a .NET - Core SDK from:\n https://aka.ms/dotnet-download\n2024-01-18 03:19:52,114 - INFO exited: dotnet-app (exit status 145; not expected)\n2024-01-18 03:19:52 - [Warning] No managed processes are running. Wait for 30 seconds...\n2024-01-18 - 03:19:53,306 INFO success: dotnet-app entered RUNNING state, process has stayed - up for > than 1 seconds (startsecs)\n2024-01-18 03:19:53,306 INFO success: + Core SDK from:\n https://aka.ms/dotnet-download\n2024-04-15 12:56:54,863 + INFO exited: dotnet-app (exit status 145; not expected)\n2024-04-15 12:56:55 + [Warning] No managed processes are running. Wait for 30 seconds...\n2024-04-15 + 12:56:56,063 INFO success: dotnet-app entered RUNNING state, process has stayed + up for > than 1 seconds (startsecs)\n2024-04-15 12:56:56,063 INFO success: event-gather entered RUNNING state, process has stayed up for > than 1 seconds - (startsecs)\n2024-01-18 03:19:53,307 INFO spawned: 'dotnet-app' with pid 21\n + (startsecs)\n2024-04-15 12:56:56,063 INFO spawned: 'dotnet-app' with pid 21\n \ It was not possible to find any installed .NET Core SDKs\n Did you mean - to run .NET Core SDK commands? Install a .NET Core SDK from:\n https://aka.ms/dotnet-download\n2024-01-18 - 03:19:53,316 INFO exited: dotnet-app (exit status 145; not expected)\n2024-01-18 - 03:19:54,318 INFO gave up: dotnet-app entered FATAL state, too many start - retries too quickly\nProcessing Event: ver:3.0 server:supervisor serial:0 - pool:processes poolserial:0 eventname:PROCESS_STATE_FATAL len:62\n2024-01-18 - 03:19:55,319 WARN received SIGQUIT indicating exit request\n2024-01-18 03:19:55,319 - INFO waiting for event-gather, dotnet-app to die\n2024-01-18 03:19:56,323 - INFO stopped: event-gather (exit status 143)\n2024-01-18 03:19:56,323 INFO + to run .NET Core SDK commands? Install a .NET Core SDK from:\n https://aka.ms/dotnet-download\n2024-04-15 + 12:56:56,073 INFO exited: dotnet-app (exit status 145; not expected)\n2024-04-15 + 12:56:56,073 INFO gave up: dotnet-app entered FATAL state, too many start + retries too quickly\n2024-04-15 12:56:57,075 WARN received SIGQUIT indicating + exit request\n2024-04-15 12:56:57,075 INFO waiting for event-gather, dotnet-app + to die\nProcessing Event: ver:3.0 server:supervisor serial:0 pool:processes + poolserial:0 eventname:PROCESS_STATE_FATAL len:62\n2024-04-15 12:56:58,080 + INFO stopped: event-gather (exit status 143)\n2024-04-15 12:56:58,080 INFO stopped: dotnet-app (terminated by SIGTERM)\n" headers: connection: @@ -1529,7 +1639,7 @@ interactions: content-type: - text/plain date: - - Thu, 18 Jan 2024 03:20:07 GMT + - Mon, 15 Apr 2024 12:57:15 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: diff --git a/src/spring/azext_spring/tests/latest/recordings/test_enable_planned_maintenance.yaml b/src/spring/azext_spring/tests/latest/recordings/test_enable_planned_maintenance.yaml index 6e8cf3e2810..c969d9a84a6 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_enable_planned_maintenance.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_enable_planned_maintenance.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -g -n --enable-planned-maintenance --planned-maintenance-day --planned-maintenance-start-hour User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"923b6f2807b24152b6e35389bbba4348","networkProfile":{"outboundIPs":{"publicIPs":["172.165.146.150","172.165.147.184"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:22:08.8419787Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:22:08.8419787Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T00:48:03.7123996Z"}}' headers: cache-control: - no-cache content-length: - - '832' + - '926' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:24:37 GMT + - Mon, 15 Apr 2024 07:04:06 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 807CDAF8E520439B803802D494348685 Ref B: MAA201060515039 Ref C: 2024-04-15T07:04:06Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -63,21 +63,21 @@ interactions: ParameterSetName: - -g -n --enable-planned-maintenance --planned-maintenance-day --planned-maintenance-start-hour User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/monitoringSettings/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/monitoringSettings/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":false,"appInsightsInstrumentationKey":null,"appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.18"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/monitoringSettings/default","name":"default"}' + string: '{"properties":{"provisioningState":"Succeeded","traceEnabled":true,"appInsightsInstrumentationKey":"InstrumentationKey=a1149b56-47a6-48c2-ab67-75bf23627371;IngestionEndpoint=https://eastus-2.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/","appInsightsSamplingRate":10.0,"appInsightsAgentVersions":{"java":"3.4.19"}},"type":"Microsoft.AppPlatform/Spring/monitoringSettings","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/monitoringSettings/default","name":"default"}' headers: cache-control: - no-cache content-length: - - '427' + - '611' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:24:37 GMT + - Mon, 15 Apr 2024 07:04:08 GMT expires: - '-1' pragma: @@ -86,14 +86,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 92260B506CDA4998BDC6EB0DF6E58094 Ref B: MAA201060516049 Ref C: 2024-04-15T07:04:07Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -116,39 +116,43 @@ interactions: ParameterSetName: - -g -n --enable-planned-maintenance --planned-maintenance-day --planned-maintenance-start-hour User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"923b6f2807b24152b6e35389bbba4348","networkProfile":{"outboundIPs":{"publicIPs":["172.165.146.150","172.165.147.184"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:22:08.8419787Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:24:39.6788734Z"}}' + string: '{"properties":{"provisioningState":"Updating","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/1faa13e2-db1c-4a7f-9c2c-7821769ce202?api-version=2024-01-01-preview&t=638411450799132442&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uU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msdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sgkEJe2klXbhFginm7FqEtaGnioDKrdTJBW5-iZ2ERxdf6sudtG37Hpn7OhGNGOdItJsvlC5Btb-ZfmgphRuyZF3ZlUyXK77voSdcdxnsiIgjg50jwVGbypZ0lIvvU0fzGYKb51O_QHwx4ZIclpw6matVqYKp19Lr4QD8d3fvsrQwmhvTHPEDTLehKjAGtPWncyYh1aCjKS640od6aJHvionOqvFFRyh_S3MN4x0445oqD-rr1KXoyTF4q99vOd-E3VA9wGo2FD8B2Z67BUMbaHVvaiYyMobnoufVahnU4DE8vlM6CS1K1JfPmNvP0ImALtM617sAzsALliTabsFIQ&h=YUFcQ0b9Swwxs8QPgiC9HXF9EWbPnHWJIpggEwU-Hmg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/1db8d9f0-9baa-4552-948e-7e67a7fc35e8?api-version=2024-05-01-preview&t=638487614500051101&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50L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kitA3jqLybdbVltRfK7gxHT5ebIzXC4WscjaD1HKBolAhQHVm2_2Qwva1zhuA64eMA9ydjam0kRmfV6jGnXwpKNmCXOGOMiJk-Y3J2TBa_Izw60ouY9GwaHqTgtdWY1de66ApJpHGgdzxtlj19Hl1W3Acdhm7HaWRCNibvAoXolhzMRa3RsKlDLPEfbcUJqQqQ1xrhGx1DVwqlTIQ6L8ZBNGQfC0vyC0H2F2LA8Xob7SdBpndNG6AR_2LNr6gD_EMyGRLg_9cbBfBe8PVITwoNlVamNwDVqHMsBMYgQjpjquRWZ1gMnvaZFqTkHt7IItpHzhM4hfyXw&h=RF5ITHcCFeExpfSYuuAdQKVDXlToOvq6kkJMG5K6M6A cache-control: - no-cache content-length: - - '932' + - '918' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:24:39 GMT + - Mon, 15 Apr 2024 07:04:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/1faa13e2-db1c-4a7f-9c2c-7821769ce202/Spring/clitest000002?api-version=2024-01-01-preview&t=638411450799132442&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH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zo97lrPCH363JEekJuChQ-0n32EZY8JBfyIvhbiAyob4Z_qOEBwQMBQFOUf_Z74fNu7T8CpC_YJV3o00QHxrO8dkB9usjfeh63MI32WXdDTbLMbm4iH-IecruNgCbIiNCse7lgBhiqcYd7SU3ujcSnCZGbYLA9ZRoq7bhrG261Ba5sPP7EnhdFHnW4dgTSHQ0911Ujs1QMhPbUW1eCAITbLLJIuw&h=1GzgwUZx5av0gSDM4fuITYquBu1khTzcRFWVTGU-2gU + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/1db8d9f0-9baa-4552-948e-7e67a7fc35e8/Spring/clitest000002?api-version=2024-05-01-preview&t=638487614500206823&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hY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ache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 7CDBC62476FE4B27AFC0E65E1DDBDAEA Ref B: MAA201060515039 Ref C: 2024-04-15T07:04:08Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -166,21 +170,21 @@ interactions: ParameterSetName: - -g -n --enable-planned-maintenance --planned-maintenance-day --planned-maintenance-start-hour User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/1faa13e2-db1c-4a7f-9c2c-7821769ce202?api-version=2024-01-01-preview&t=638411450799132442&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3G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SdcdxnsiIgjg50jwVGbypZ0lIvvU0fzGYKb51O_QHwx4ZIclpw6matVqYKp19Lr4QD8d3fvsrQwmhvTHPEDTLehKjAGtPWncyYh1aCjKS640od6aJHvionOqvFFRyh_S3MN4x0445oqD-rr1KXoyTF4q99vOd-E3VA9wGo2FD8B2Z67BUMbaHVvaiYyMobnoufVahnU4DE8vlM6CS1K1JfPmNvP0ImALtM617sAzsALliTabsFIQ&h=YUFcQ0b9Swwxs8QPgiC9HXF9EWbPnHWJIpggEwU-Hmg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/1db8d9f0-9baa-4552-948e-7e67a7fc35e8?api-version=2024-05-01-preview&t=638487614500051101&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u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dQKVDXlToOvq6kkJMG5K6M6A response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/1faa13e2-db1c-4a7f-9c2c-7821769ce202","name":"1faa13e2-db1c-4a7f-9c2c-7821769ce202","status":"Succeeded","startTime":"2024-01-18T03:24:39.8098973Z","endTime":"2024-01-18T03:24:40.1016131Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/1db8d9f0-9baa-4552-948e-7e67a7fc35e8","name":"1db8d9f0-9baa-4552-948e-7e67a7fc35e8","status":"Running","startTime":"2024-04-15T07:04:09.8542116Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '333' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:24:39 GMT + - Mon, 15 Apr 2024 07:04:09 GMT expires: - '-1' pragma: @@ -189,14 +193,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A1776E2F8BC44C37877863055447E0DC Ref B: MAA201060515039 Ref C: 2024-04-15T07:04:10Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -214,21 +218,21 @@ interactions: ParameterSetName: - -g -n --enable-planned-maintenance --planned-maintenance-day --planned-maintenance-start-hour User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/1db8d9f0-9baa-4552-948e-7e67a7fc35e8?api-version=2024-05-01-preview&t=638487614500051101&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVt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sNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=aGGbxUceDfUkitA3jqLybdbVltRfK7gxHT5ebIzXC4WscjaD1HKBolAhQHVm2_2Qwva1zhuA64eMA9ydjam0kRmfV6jGnXwpKNmCXOGOMiJk-Y3J2TBa_Izw60ouY9GwaHqTgtdWY1de66ApJpHGgdzxtlj19Hl1W3Acdhm7HaWRCNibvAoXolhzMRa3RsKlDLPEfbcUJqQqQ1xrhGx1DVwqlTIQ6L8ZBNGQfC0vyC0H2F2LA8Xob7SdBpndNG6AR_2LNr6gD_EMyGRLg_9cbBfBe8PVITwoNlVamNwDVqHMsBMYgQjpjquRWZ1gMnvaZFqTkHt7IItpHzhM4hfyXw&h=RF5ITHcCFeExpfSYuuAdQKVDXlToOvq6kkJMG5K6M6A response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"923b6f2807b24152b6e35389bbba4348","networkProfile":{"outboundIPs":{"publicIPs":["172.165.146.150","172.165.147.184"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:22:08.8419787Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:24:39.6788734Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/1db8d9f0-9baa-4552-948e-7e67a7fc35e8","name":"1db8d9f0-9baa-4552-948e-7e67a7fc35e8","status":"Succeeded","startTime":"2024-04-15T07:04:09.8542116Z","endTime":"2024-04-15T07:04:11.0819606Z"}' headers: cache-control: - no-cache content-length: - - '933' + - '376' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:24:40 GMT + - Mon, 15 Apr 2024 07:04:20 GMT expires: - '-1' pragma: @@ -237,16 +241,64 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-msedge-ref: + - 'Ref A: 0EE0228926704B7B8EAC1F00AB693F80 Ref B: MAA201060515039 Ref C: 2024-04-15T07:04:20Z' + x-rp-server-mvid: + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring update + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-planned-maintenance --planned-maintenance-day --planned-maintenance-start-hour + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' + headers: + cache-control: + - no-cache + content-length: + - '919' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 15 Apr 2024 07:04:21 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 5E269C7D8F21489E9BFA82C628329499 Ref B: MAA201060515039 Ref C: 2024-04-15T07:04:21Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_flush_virtualnetwork_dns_settings_service.yaml b/src/spring/azext_spring/tests/latest/recordings/test_flush_virtualnetwork_dns_settings_service.yaml index f9771d7de7c..7dca9d27abe 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_flush_virtualnetwork_dns_settings_service.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_flush_virtualnetwork_dns_settings_service.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"vnetAddons":{"logStreamPublicEndpoint":true,"dataPlanePublicEndpoint":true},"version":3,"serviceId":"abf41a3fda0346f0bd31d8e7ac35e8a0","networkProfile":{"serviceRuntimeSubnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/rhl-df-vnet-ea/subnets/sys","appSubnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/rhl-df-vnet-ea/subnets/app","serviceCidr":"10.1.0.0/16,10.2.0.0/16,10.3.0.1/16","serviceRuntimeNetworkResourceGroup":"ap-svc-rt_clitest000002_eastasia","appNetworkResourceGroup":"ap-app_clitest000002_eastasia","outboundIPs":{"publicIPs":["20.24.124.66"]},"requiredTraffics":[{"protocol":"TCP","port":443,"ips":["52.246.128.42","52.246.134.106"],"direction":"Outbound"},{"protocol":"TCP","port":443,"fqdns":["acrd75fc9ffe8044685b.azurecr.io"],"direction":"Outbound"}],"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.private.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"hanli.ren@microsoft.com","createdByType":"User","createdAt":"2023-07-28T04:54:55.5331762Z","lastModifiedBy":"hanli.ren@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-08-23T12:40:58.6766508Z"}}' @@ -67,13 +67,13 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/flushVirtualNetworkDnsSettings?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/flushVirtualNetworkDnsSettings?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3a47%3a50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAy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8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3a47%3a50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l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VpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM cache-control: - no-cache content-length: @@ -83,7 +83,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/528e18cf-6363-4eca-b35f-59d3e6ab07e3/Spring/clitest000002?api-version=2024-01-01-preview&t=2023-08-23T12%3a47%3a50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrq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sgwKptL5NhVaoJB1AQ54QGQwSIYViIp0-BiL2dfEnAT8XumMB9AkfsQlL-YsI5I1ds3Uo2HxHEZurYEqs5AlCg&h=W5AXVvk38iQvtCpDCJpWktqeo8DCdF0NPF5h6NiRsk4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/528e18cf-6363-4eca-b35f-59d3e6ab07e3/Spring/clitest000002?api-version=2024-05-01-preview&t=2023-08-23T12%3a47%3a50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYB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 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBz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IwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgIT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nP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -163,7 +163,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18c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wDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEg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odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -211,7 +211,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwE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oXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6d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LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -259,7 +259,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBA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KgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk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lMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -307,7 +307,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMm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rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEG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qtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -355,7 +355,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RL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eS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcG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: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -403,7 +403,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZ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89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAW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3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -451,7 +451,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIw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HRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX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48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -499,7 +499,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRw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kuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2P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PNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -547,7 +547,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca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IhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDI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wvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Running","startTime":"2023-08-23T12:47:50.2645247Z"}' @@ -595,7 +595,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZ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0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvb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r3Vdk&s=CIPl1zSnRiqTrIy7DOnYic4QnsdKfdSIOc9Rc6HlKCExtCnodRsRQej-zd4E_ux3nHPUhGn4XoGztFmsXbAIUtVpXRQZdd2fxYrRbsqFXcuFHmCNo487dLlMS0-clTsHYS0PgfZISSRlOrDo8wo4G9Twais6xavsslPComiLXW2-L_hyJAeS5DixEZplDxC1hcIO2OJgTXw0z6_Vfqc_3f0zqVPCaogJL3pKa4_wE2qKhiBjW8aoBDKSzjDzC7cVpqtZyYjWgs1rNbnUMlIM0AH_DQ29yijylL2i6CEDQCm5mEnxmh6YoQ89v0NlfCPEuVaL7q9Huk00kVQsWWwc_g&h=XOuy9wi7YyqDBQeqNO6NKUQVOXVRszQvW3LD4Z7PRZM response: body: string: '{"id":"subscriptions/50328023-df85-46b6-96f5-c4566d7b063c/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/clitest000002/operationId/528e18cf-6363-4eca-b35f-59d3e6ab07e3","name":"528e18cf-6363-4eca-b35f-59d3e6ab07e3","status":"Succeeded","startTime":"2023-08-23T12:47:50.2645247Z","endTime":"2023-08-23T12:49:33.0990629Z"}' @@ -643,7 +643,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/528e18cf-6363-4eca-b35f-59d3e6ab07e3/Spring/clitest000002?api-version=2024-01-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMj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rZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=QQeBgoFgv5o5IhFlMzooCAtFpQEh5UrvuDceMr36dUV4ms7PoP-8BP9foOHE_lMn4X2eu358IGZyncFQ9OUphTl47EZwrWvS7CEYM71Vqe-dH0G4NYeqbWKXTLM8Cul9D1sq7lo8MEl0VMbFsLKXN7H9Ua9-qeU8nT6QKDpcMLHM87FhZtutYZNnXjZYgu4WbS0zjBGV1lHLOa6wx3s34SG3AsgEm0f-6pIkPpgEMUy1Ac3xCMRAD0DwAiu1qSlUsgwKptL5NhVaoJB1AQ54QGQwSIYViIp0-BiL2dfEnAT8XumMB9AkfsQlL-YsI5I1ds3Uo2HxHEZurYEqs5AlCg&h=W5AXVvk38iQvtCpDCJpWktqeo8DCdF0NPF5h6NiRsk4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/528e18cf-6363-4eca-b35f-59d3e6ab07e3/Spring/clitest000002?api-version=2024-05-01-preview&t=2023-08-23T12%3A47%3A50&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3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CEYM71Vqe-dH0G4NYeqbWKXTLM8Cul9D1sq7lo8MEl0VMbFsLKXN7H9Ua9-qeU8nT6QKDpcMLHM87FhZtutYZNnXjZYgu4WbS0zjBGV1lHLOa6wx3s34SG3AsgEm0f-6pIkPpgEMUy1Ac3xCMRAD0DwAiu1qSlUsgwKptL5NhVaoJB1AQ54QGQwSIYViIp0-BiL2dfEnAT8XumMB9AkfsQlL-YsI5I1ds3Uo2HxHEZurYEqs5AlCg&h=W5AXVvk38iQvtCpDCJpWktqeo8DCdF0NPF5h6NiRsk4 response: body: string: '' @@ -685,7 +685,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"vnetAddons":{"logStreamPublicEndpoint":true,"dataPlanePublicEndpoint":true},"version":3,"serviceId":"abf41a3fda0346f0bd31d8e7ac35e8a0","networkProfile":{"serviceRuntimeSubnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/rhl-df-vnet-ea/subnets/sys","appSubnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/rhl-df-vnet-ea/subnets/app","serviceCidr":"10.1.0.0/16,10.2.0.0/16,10.3.0.1/16","serviceRuntimeNetworkResourceGroup":"ap-svc-rt_clitest000002_eastasia","appNetworkResourceGroup":"ap-app_clitest000002_eastasia","outboundIPs":{"publicIPs":["20.24.124.66"]},"requiredTraffics":[{"protocol":"TCP","port":443,"ips":["52.246.128.42","52.246.134.106"],"direction":"Outbound"},{"protocol":"TCP","port":443,"fqdns":["acrd75fc9ffe8044685b.azurecr.io"],"direction":"Outbound"}],"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.private.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"hanli.ren@microsoft.com","createdByType":"User","createdAt":"2023-07-28T04:54:55.5331762Z","lastModifiedBy":"hanli.ren@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-08-23T12:47:49.7135786Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_gateway.yaml b/src/spring/azext_spring/tests/latest/recordings/test_gateway.yaml index 48cefc3f9a4..69529dbb817 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_gateway.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_gateway.yaml @@ -19,7 +19,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":[{"name":"asc-scg-default-0","status":"Running"},{"name":"asc-scg-default-1","status":"Running"}],"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":[{"name":"scg-operator-75674bfdc8-4pt26","status":"Running"}]},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:10:40.0148147Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:10:40.0148147Z"}}' @@ -71,7 +71,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"vaultUri":"https://testabcd.vault.azure.net","keyVaultCertName":"abc","certVersion":"1f3e976da8e540359963971f2769d571","excludePrivateKey":true,"autoSync":"Disabled","thumbprint":"4807b37859c345234e96015ec550e205e56f2aff","issuer":"my.com","expirationDate":"2024-05-20T01:59:29.000+00:00","activateDate":"2023-05-20T01:49:29.000+00:00","subjectName":"my.com","dnsNames":[],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/abc","name":"abc","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-20T01:59:33.6066094Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-20T02:08:43.7263659Z"}},{"properties":{"vaultUri":"https://testabcd.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"511533f2f943413b9c67a77b545eafe2","excludePrivateKey":true,"autoSync":"Disabled","thumbprint":"64eb989a87a4283519e7ad0ca0da0f04c9808280","issuer":"ss.com","expirationDate":"2024-05-20T07:56:57.000+00:00","activateDate":"2023-05-20T07:46:57.000+00:00","subjectName":"ss.com","dnsNames":[],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-20T07:57:13.5509102Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-20T07:57:13.5509102Z"}}]}' @@ -142,14 +142,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"","provisioningState":"Updating","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet clinic","description":"Demo for pet clinic","documentation":"doc","version":"v1","serverUrl":"https://tx-enterprise-gateway-fd0c7.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":["example*"],"allowedMethods":["GET","PUT","DELETE"],"allowedHeaders":["X-TEST","X-STAGING"],"maxAge":10,"allowCredentials":true,"exposedHeaders":["Access-Control-Request-Method","Access-Control-Request-Headers"]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"apmTypes":["NewRelic","ElasticAPM"],"environmentVariables":{"properties":{"a":"b","c":"d"},"secrets":null},"clientAuth":{"certificates":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/abc"],"certificateVerification":"Enabled"},"addonConfigs":{"sso":{"rolesAttributeName":"role","inactiveSessionExpirationInMinutes":1},"javaOpts":"-Djava.awt.headless=true","envs":[{"name":"xxx","value":"yyy"},{"name":"xxx1","value":"yyy"}]}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":3},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:10:40.0148147Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:18:58.8215584Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ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hgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDib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ZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k cache-control: - no-cache content-length: @@ -161,7 +161,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1a91cffe-04d4-400c-87de-7745999923ea/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341859408527828&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg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N7UaY9r3L0eU9P5-s_nJoB-OnANCcYU6qNlYn_UhJbcOizDxyYnOsjyiA5D2AmJHj2eA&h=pQL5nRImsjZg6yBIn1gy6lpfWRzzNgbqVrb9fEIxm5o + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1a91cffe-04d4-400c-87de-7745999923ea/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341859408527828&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoF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JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=ZTk2rHV5AZFTqRUYduPVuN1JIN0jI5kfgCecFmy8CBaJz5O94mXLRBti3flWAMjMcqmtlJfjLYJ6AKf26D24TntrsQHEmfmfAg4p6CLXVyVAwy8bKgCYaAq0ttfuncZOCR9boK-ogbgqnqQB6W9gqod7hNpWydOI2znwDLiZJMiHWvjmk7Sqr3K54sN5PyjVeiYLqzvOVU4c9Za3TntmqfW-miEdv7K6QoDuVYHQy01nFPDCgZcBTVKpAbS0M86SwRQiubZCz2sb1ruwqhN7UaY9r3L0eU9P5-s_nJoB-OnANCcYU6qNlYn_UhJbcOizDxyYnOsjyiA5D2AmJHj2eA&h=pQL5nRImsjZg6yBIn1gy6lpfWRzzNgbqVrb9fEIxm5o pragma: - no-cache request-context: @@ -197,7 +197,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUE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gBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMR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hlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -249,7 +249,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8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R825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5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1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -301,7 +301,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQ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WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDM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5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -353,7 +353,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1vi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uHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU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oQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -405,7 +405,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLb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WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8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TIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -457,7 +457,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAw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providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJ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EFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -509,7 +509,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcm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BATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZ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0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -561,7 +561,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2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kPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0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Hhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -613,7 +613,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNj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HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjM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cOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -665,7 +665,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIl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Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2Y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ZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -717,7 +717,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAm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CeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxU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MjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -769,7 +769,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAw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-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0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x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -821,7 +821,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29md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wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsF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M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -873,7 +873,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCB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DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvb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6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -925,7 +925,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2Wh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mYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcH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oCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -977,7 +977,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh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nvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2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rzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1029,7 +1029,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8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ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHB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ppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1081,7 +1081,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCg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com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEt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BSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1133,7 +1133,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHR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CkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc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tR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1185,7 +1185,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01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HrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAY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1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1237,7 +1237,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0E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dzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibv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NnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1289,7 +1289,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQ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IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrO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aEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1341,7 +1341,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfH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RCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIK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dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Running","startTime":"2023-10-29T14:19:00.0356946Z"}' @@ -1393,7 +1393,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-01-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEA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h2EXPeoWUY2g8VW6k + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea?api-version=2024-05-01-preview&t=638341859408371687&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20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KwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=DitkKEdSBLoWaubEzxn5KHVMh9IHgzArPNEQPNkn1yZfuJUpj-CGPvUnvYDl0jisDIZJLvS8Ab7Yy0XKZNnL2fuHf2sJVyDHUSfRZJuWqfOoCpF0z4Hsfjv7kgcOWbFod9f75wys2biY1if5VGbdwKhNZ89xnqxYslfItkQGFppmds5MUAGoWeB5QF_2Nf4ukoA-_psNRCfrE60rww8aCzHt0rMOVfmV9zG3Ecton2yQl2IwyUNGx3I29WCeQFWDXASEaEMvhE911WUMAuuXqVipVIjSJ5q-MNrzDIHoI6EB860CaqxmZRr08ZyvQpx4O_lmoQ3uSnXCsiA2p4iDMQ&h=_ZNq4V7ENDmQQ9aDs77vAHZ1ekh2EXPeoWUY2g8VW6k response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/1a91cffe-04d4-400c-87de-7745999923ea","name":"1a91cffe-04d4-400c-87de-7745999923ea","status":"Succeeded","startTime":"2023-10-29T14:19:00.0356946Z","endTime":"2023-10-29T14:23:22.1499923Z"}' @@ -1445,7 +1445,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Succeeded","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet @@ -1494,7 +1494,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Succeeded","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet @@ -1562,14 +1562,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Updating","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet clinic","description":"Demo for pet clinic","documentation":"doc","version":"v1","serverUrl":"https://tx-enterprise-gateway-fd0c7.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":["example*"],"allowedMethods":["GET","PUT","DELETE"],"allowedHeaders":["X-TEST","X-STAGING"],"maxAge":10,"allowCredentials":true,"exposedHeaders":["Access-Control-Request-Method","Access-Control-Request-Headers"]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"apmTypes":[],"apms":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apms/test-ai"}],"environmentVariables":{"properties":{"a":"b","c":"d"},"secrets":null},"clientAuth":{"certificates":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/abc"],"certificateVerification":"Enabled"},"addonConfigs":{"sso":{"rolesAttributeName":"role","inactiveSessionExpirationInMinutes":1},"javaOpts":"-Djava.awt.headless=true","envs":[{"name":"xxx","value":"yyy"},{"name":"xxx1","value":"yyy"}]}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":3},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:10:40.0148147Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:23:34.3325519Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-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2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8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3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg cache-control: - no-cache content-length: @@ -1581,7 +1581,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341862168013060&c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uH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=nFOtOeZK34Bf2ak3dOnJUqwM5aRvWfas3oQQ7rcmaaoH5jZ-y30p5tB9-blf9kCW2z4vGLq2sqmdcaaaqtdNTnWalWBMMfUOmxDzUkdErjK5tV1TIODvZB9UwV_YAvLyoilb-TPlqVFSOaUI029_aVlFYc9TmcP5fwXx2Z3OLPF1qiCKVLFkFY3zk3OkC2uE8O-TQbD0TgjPBFZuqIr5fYb1TdQbO1Ek46tJWbWHv3zpLBXCFHqdpfisF-KrDF4uwOURF49upQ4kuAqQKh458SPCu2857v7qESukSYZHe8A0ODJhz89iLiN5xCPGM_2vWfr8aM58_BPUFvLesmTxsQ&h=EA8aM_n6Mwv9hRQMyA5IgEEI9LR1vyAI1Mxpk490CqI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY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PXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=nFOtOeZK34Bf2ak3dOnJUqwM5aRvWfas3oQQ7rcmaaoH5jZ-y30p5tB9-blf9kCW2z4vGLq2sqmdcaaaqtdNTnWalWBMMfUOmxDzUkdErjK5tV1TIODvZB9UwV_YAvLyoilb-TPlqVFSOaUI029_aVlFYc9TmcP5fwXx2Z3OLPF1qiCKVLFkFY3zk3OkC2uE8O-TQbD0TgjPBFZuqIr5fYb1TdQbO1Ek46tJWbWHv3zpLBXCFHqdpfisF-KrDF4uwOURF49upQ4kuAqQKh458SPCu2857v7qESukSYZHe8A0ODJhz89iLiN5xCPGM_2vWfr8aM58_BPUFvLesmTxsQ&h=EA8aM_n6Mwv9hRQMyA5IgEEI9LR1vyAI1Mxpk490CqI pragma: - no-cache request-context: @@ -1613,7 +1613,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WM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Cwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbm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URhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1661,7 +1661,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hq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QF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHA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b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1709,7 +1709,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-L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Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi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Y3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1757,7 +1757,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dE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Y3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f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dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1805,7 +1805,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSU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BgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRg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Q8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1853,7 +1853,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhki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fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50L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p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1901,7 +1901,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4w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6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ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maqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1949,7 +1949,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYV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htBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeU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ELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -1997,7 +1997,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB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_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwY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microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2045,7 +2045,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOC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QPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vc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YBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2093,7 +2093,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggr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Z2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&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AuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2141,7 +2141,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operation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IKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ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hgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2189,7 +2189,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZP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0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZI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H9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2237,7 +2237,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlv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w6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD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K6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2285,7 +2285,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYh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h7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU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fszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2333,7 +2333,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAm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j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCN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UlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2381,7 +2381,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQa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ions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEt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BSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2429,7 +2429,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCs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UyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb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xkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2477,7 +2477,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8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QELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM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7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2525,7 +2525,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZ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EA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA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LRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2573,7 +2573,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj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PudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2621,7 +2621,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk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fwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IB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yY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2669,7 +2669,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ix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357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs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CkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2717,7 +2717,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKw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CkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FN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TAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2765,7 +2765,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-01-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1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1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkq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Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Running","startTime":"2023-10-29T14:23:36.3880571Z"}' @@ -2813,7 +2813,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024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e1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a?api-version=2024-05-01-preview&t=638341862168013060&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAM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gLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=fZwcrH9Q9-W3--RJ1XAM4tqaSXPkNnLRkCwb1T5AxHJpgdAbG32Yp1lr0sQhtBQqlGNNOWaUxjYjO7pIsGhdMh7RsRMOD02AlxMtauj-Y9iXBi_RfwED6lYQ02a8LofvdaVmaqpHy8p8yrPAriKIxskc7CWMlJNK6s6zlxnTx7G-ZdDLoXI32_HiuPudUQF7Py10t1kBxPLniTwCfqgJ0nr8_MlXLMOn3RnDaVOczle_ohL-Xv0j6fMIGArzMOe42AxCrkURhBMdcqG6357yVdnVB62ypBh4NbuFELl0DD2rc86LKPU2ETZPQfjayiManGrfszQb06PwBQhFfv4p_A&h=KqEi0PyY2Tb_tjqW9nuKQVoc-ls7MX2ZnQPknl7dlHg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","name":"0ff7a7e3-8dd5-4019-b8bd-0272d38f482a","status":"Succeeded","startTime":"2023-10-29T14:23:36.3880571Z","endTime":"2023-10-29T14:28:26.0676541Z"}' @@ -2861,7 +2861,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Succeeded","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet @@ -2910,7 +2910,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -2960,7 +2960,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Succeeded","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet @@ -3009,7 +3009,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -3059,7 +3059,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-05-01-preview response: body: string: '{"value":[]}' @@ -3107,7 +3107,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"tx-enterprise.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service","name":"customers-service","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-20T06:50:00.0524265Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-20T06:50:00.0524265Z"}}' @@ -3164,7 +3164,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service","protocol":"HTTP","routes":[{"title":"Customers @@ -3172,7 +3172,7 @@ interactions: clinic"]}],"provisioningState":"Creating"},"type":"Microsoft.AppPlatform/Spring/gateways/routeConfigs","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route","name":"cli-route","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:28:42.4712926Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:28:42.4712926Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4092ab41-427b-4e62-bb8b-6eb658d77da0?api-version=2024-01-01-preview&t=638341865236119329&c=MIIHHjCCBgagAwIBAgITfwHPG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zxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=oD8MExpJmhQfSnx8jyXUyCLhRN5efhFJpN8yesV9yCae01UlgzjOWXMJjxSPYtqGnxqpSUB1d8hmZFWUxwYwPos39fQGs4FJbA4SV6MYo4QAka9yK-isXBCN1TWD1bkn49x09FMPm7F3tocB4HztzTYpf9QPUVJ4mVVvX7IFRhIPpqJplWVOxqQBvibxtCYdjZ6XyY7NpYug4aGyEuzgVShSH7VlYIXk8FXdpmYa8-nfAWs5oE9RBqtNA9-gPpoW2Q7rRHbigFwXK6QttYl9acqSr66bidPKaXjotvnWG-OzMF9LVg5wwzc31-l-mQOsAVb3RYwJcjMq_cZj565D5w&h=UP2e5KjSqQ4JoNqOhkGIP5qRdGEch3cS53uBLEfy1Bg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4092ab41-427b-4e62-bb8b-6eb658d77da0?api-version=2024-05-01-preview&t=638341865236119329&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY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xHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=oD8MExpJmhQfSnx8jyXUyCLhRN5efhFJpN8yesV9yCae01UlgzjOWXMJjxSPYtqGnxqpSUB1d8hmZFWUxwYwPos39fQGs4FJbA4SV6MYo4QAka9yK-isXBCN1TWD1bkn49x09FMPm7F3tocB4HztzTYpf9QPUVJ4mVVvX7IFRhIPpqJplWVOxqQBvibxtCYdjZ6XyY7NpYug4aGyEuzgVShSH7VlYIXk8FXdpmYa8-nfAWs5oE9RBqtNA9-gPpoW2Q7rRHbigFwXK6QttYl9acqSr66bidPKaXjotvnWG-OzMF9LVg5wwzc31-l-mQOsAVb3RYwJcjMq_cZj565D5w&h=UP2e5KjSqQ4JoNqOhkGIP5qRdGEch3cS53uBLEfy1Bg cache-control: - no-cache content-length: @@ -3184,7 +3184,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4092ab41-427b-4e62-bb8b-6eb658d77da0/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341865236275567&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_n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MQfXibqhJhwfE4_ZGSqG3nwTjxdLsw2_1e8kgB_2eZmyqxuLJtQDNwMqLdDpXW3aAxcZTxbQJAwhj7oSWMWWzvTqVQn7PVf5vt-xvg05pTDjIpdvqQhrcxqynguypUfDgu2FLouLsntb6PMqQLe1jEZJHQxfHeFMmSgX2eUSB37g2f7wQzTbhT5xUH7r6MSO2G5kdA&h=fNCQ0Dl7jMG81rkM3B6LTNeBY8NGJ63PrXbaV04xT9w + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4092ab41-427b-4e62-bb8b-6eb658d77da0/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341865236275567&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAA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NeBY8NGJ63PrXbaV04xT9w pragma: - no-cache request-context: @@ -3216,7 +3216,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4092ab41-427b-4e62-bb8b-6eb658d77da0?api-version=2024-01-01-preview&t=638341865236119329&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpD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bmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=oD8MExpJmhQfSnx8jyXUyCLhRN5efhFJpN8yesV9yCae01UlgzjOWXMJjxSPYtqGnxqpSUB1d8hmZFWUxwYwPos39fQGs4FJbA4SV6MYo4QAka9yK-isXBCN1TWD1bkn49x09FMPm7F3tocB4HztzTYpf9QPUVJ4mVVvX7IFRhIPpqJplWVOxqQBvibxtCYdjZ6XyY7NpYug4aGyEuzgVShSH7VlYIXk8FXdpmYa8-nfAWs5oE9RBqtNA9-gPpoW2Q7rRHbigFwXK6QttYl9acqSr66bidPKaXjotvnWG-OzMF9LVg5wwzc31-l-mQOsAVb3RYwJcjMq_cZj565D5w&h=UP2e5KjSqQ4JoNqOhkGIP5qRdGEch3cS53uBLEfy1Bg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4092ab41-427b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ELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=oD8MExpJmhQfSnx8jyXUyCLhRN5efhFJpN8yesV9yCae01UlgzjOWXMJjxSPYtqGnxqpSUB1d8hmZFWUxwYwPos39fQGs4FJbA4SV6MYo4QAka9yK-isXBCN1TWD1bkn49x09FMPm7F3tocB4HztzTYpf9QPUVJ4mVVvX7IFRhIPpqJplWVOxqQBvibxtCYdjZ6XyY7NpYug4aGyEuzgVShSH7VlYIXk8FXdpmYa8-nfAWs5oE9RBqtNA9-gPpoW2Q7rRHbigFwXK6QttYl9acqSr66bidPKaXjotvnWG-OzMF9LVg5wwzc31-l-mQOsAVb3RYwJcjMq_cZj565D5w&h=UP2e5KjSqQ4JoNqOhkGIP5qRdGEch3cS53uBLEfy1Bg response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4092ab41-427b-4e62-bb8b-6eb658d77da0","name":"4092ab41-427b-4e62-bb8b-6eb658d77da0","status":"Succeeded","startTime":"2023-10-29T14:28:43.3039669Z","endTime":"2023-10-29T14:28:43.5951084Z"}' @@ -3264,7 +3264,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service","protocol":"HTTP","routes":[{"title":"Customers @@ -3314,7 +3314,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -3364,7 +3364,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service","protocol":"HTTP","routes":[{"title":"Customers @@ -3414,7 +3414,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/customers-service","protocol":"HTTP","routes":[{"title":"Customers @@ -3464,7 +3464,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"tx-enterprise.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","name":"vets-service","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-20T07:36:02.2982429Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-20T07:36:02.2982429Z"}}' @@ -3523,7 +3523,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -3531,7 +3531,7 @@ interactions: clinic"]}],"provisioningState":"Updating"},"type":"Microsoft.AppPlatform/Spring/gateways/routeConfigs","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route","name":"cli-route","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:28:42.4712926Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:28:57.9599712Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea?api-version=2024-01-01-preview&t=638341865399287791&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ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w6iOhlg2sf-e8WXx5jjqRXRr__lTg_VvOZkS7gqhI3mIkktPJf-E5fUhbBIt_pH7eK_frLUmep9iL1RheKBa72B-ke6IToKsCqG64L9XKW95pGw0WuTs3pudGBElKutEX3mgr7jQuVI5UUxNX4UCIsHhlCTJ9p2oEi9gIu6KYhQ2fKkWDzegKE2f3NQs8f4w&h=51m3OfmyrVQ6SKnfzeicWAYjMQ0ya5n8iMsvmiHP1PE + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea?api-version=2024-05-01-preview&t=638341865399287791&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCc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1PE cache-control: - no-cache content-length: @@ -3543,7 +3543,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/57848c16-5567-459c-b46f-fb0f651064ea/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341865399444585&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpod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oNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=C9C9ZD5MAbU1QNd5l_kSFhfGT47ghegRR7ZZ6IGtezJXHN1-U3ALBKl7YJTvRx8mEPmge_49z1Co-AMJq2vGCKsEJJHrx8LO8ggfF6eRI6N4vXSOh2d8v4s2S9UTAI_naJK17Js_bOVY-VgyB7DAT6NhNIVnI30wt2E1iGo5FyOxTdWzMTB39WU3qakiScK4qxqlCgLE6msvBKvY2rUq-4CD_uh-khTJ9IRkU5vac3R29wxLcMAWG3kD6EhSeSgjfRXDplHraBxyPpg-H1BMjyeYbqdEkkNbXY1mXkgdiXge7IFjpUWowqSTCW1OwpbnsU-0KXLMWXB7N40ii0dq9A&h=_fZAuNa9qj5Dstvvi4NydA80tiEVnn5gP9W2HjNWVe4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/57848c16-5567-459c-b46f-fb0f651064ea/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341865399444585&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8Z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NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=C9C9ZD5MAbU1QNd5l_kSFhfGT47ghegRR7ZZ6IGtezJXHN1-U3ALBKl7YJTvRx8mEPmge_49z1Co-AMJq2vGCKsEJJHrx8LO8ggfF6eRI6N4vXSOh2d8v4s2S9UTAI_naJK17Js_bOVY-VgyB7DAT6NhNIVnI30wt2E1iGo5FyOxTdWzMTB39WU3qakiScK4qxqlCgLE6msvBKvY2rUq-4CD_uh-khTJ9IRkU5vac3R29wxLcMAWG3kD6EhSeSgjfRXDplHraBxyPpg-H1BMjyeYbqdEkkNbXY1mXkgdiXge7IFjpUWowqSTCW1OwpbnsU-0KXLMWXB7N40ii0dq9A&h=_fZAuNa9qj5Dstvvi4NydA80tiEVnn5gP9W2HjNWVe4 pragma: - no-cache request-context: @@ -3575,7 +3575,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea?api-version=2024-01-01-preview&t=638341865399287791&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwH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BWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=WUXZ4uz8x-_Pc7IY1ZapUID0JZT5KkSYB21ecEb0oGoFwOtQibMAgiql5Mg1vsGkrwpMHIBvxf1uAkzeIkzvJ4JcroNBeESQmsjG48lAQ90kigJwBr94xuRmJHkM9d76b0M1DPkIWeknQyl1Ku-X1Iw6iOhlg2sf-e8WXx5jjqRXRr__lTg_VvOZkS7gqhI3mIkktPJf-E5fUhbBIt_pH7eK_frLUmep9iL1RheKBa72B-ke6IToKsCqG64L9XKW95pGw0WuTs3pudGBElKutEX3mgr7jQuVI5UUxNX4UCIsHhlCTJ9p2oEi9gIu6KYhQ2fKkWDzegKE2f3NQs8f4w&h=51m3OfmyrVQ6SKnfzeicWAYjMQ0ya5n8iMsvmiHP1PE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea?api-version=2024-05-01-preview&t=638341865399287791&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYh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JcroNBeESQmsjG48lAQ90kigJwBr94xuRmJHkM9d76b0M1DPkIWeknQyl1Ku-X1Iw6iOhlg2sf-e8WXx5jjqRXRr__lTg_VvOZkS7gqhI3mIkktPJf-E5fUhbBIt_pH7eK_frLUmep9iL1RheKBa72B-ke6IToKsCqG64L9XKW95pGw0WuTs3pudGBElKutEX3mgr7jQuVI5UUxNX4UCIsHhlCTJ9p2oEi9gIu6KYhQ2fKkWDzegKE2f3NQs8f4w&h=51m3OfmyrVQ6SKnfzeicWAYjMQ0ya5n8iMsvmiHP1PE response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea","name":"57848c16-5567-459c-b46f-fb0f651064ea","status":"Running","startTime":"2023-10-29T14:28:59.7242163Z"}' @@ -3623,7 +3623,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea?api-version=2024-01-01-preview&t=638341865399287791&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8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YB21ecEb0oGoFwOtQibMAgiql5Mg1vsGkrwpMHIBvxf1uAkzeIkzvJ4JcroNBeESQmsjG48lAQ90kigJwBr94xuRmJHkM9d76b0M1DPkIWeknQyl1Ku-X1Iw6iOhlg2sf-e8WXx5jjqRXRr__lTg_VvOZkS7gqhI3mIkktPJf-E5fUhbBIt_pH7eK_frLUmep9iL1RheKBa72B-ke6IToKsCqG64L9XKW95pGw0WuTs3pudGBElKutEX3mgr7jQuVI5UUxNX4UCIsHhlCTJ9p2oEi9gIu6KYhQ2fKkWDzegKE2f3NQs8f4w&h=51m3OfmyrVQ6SKnfzeicWAYjMQ0ya5n8iMsvmiHP1PE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea?api-version=2024-05-01-preview&t=638341865399287791&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmW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udGBElKutEX3mgr7jQuVI5UUxNX4UCIsHhlCTJ9p2oEi9gIu6KYhQ2fKkWDzegKE2f3NQs8f4w&h=51m3OfmyrVQ6SKnfzeicWAYjMQ0ya5n8iMsvmiHP1PE response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/57848c16-5567-459c-b46f-fb0f651064ea","name":"57848c16-5567-459c-b46f-fb0f651064ea","status":"Succeeded","startTime":"2023-10-29T14:28:59.7242163Z","endTime":"2023-10-29T14:29:03.4921568Z"}' @@ -3671,7 +3671,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -3721,7 +3721,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -3771,7 +3771,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -3821,7 +3821,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -3871,7 +3871,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"tx-enterprise.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","name":"vets-service","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-20T07:36:02.2982429Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-20T07:36:02.2982429Z"}}' @@ -3930,7 +3930,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -3938,7 +3938,7 @@ interactions: clinic"]}],"provisioningState":"Updating"},"type":"Microsoft.AppPlatform/Spring/gateways/routeConfigs","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route","name":"cli-route","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:28:42.4712926Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:29:22.5711091Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/ca307abc-6edf-465d-afb7-25185d314f30?api-version=2024-01-01-preview&t=638341865641805209&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBA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sMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=NTD9gbMnW8DG6DhqPFxu0b9mYWL74XHvNLVLw6OqZj5YYYTVYmlbprmDJgb1LysmzDFLGenf1mBW5Tcb9PZW9iy9ICwSUXschX1_oBdhMCtQba90KmwjfANWc5SqXR4XwQ4_AjXOplyf_7B8hZXChhB2gUPHgSqOvCHBFgHVI4nN0lwWNGHoapOnZKp-tXYYAPl3WsN5yIuPGPBjIBY8u-zUU1tIl1vGZncG0ZybhPPgY0n_zBW7jC0OrUArkQOjsiem0vFDrTELSWkSH3v5ahM9tN1k7uXjxBDZO5uHmVkeR43V2KM2UmpeMotM5Qu9RXZ5Y6jrib13sBQVigIvGg&h=SqbTiIZGsEcd8B8hnGLQ3J17Ove1dylIA47yZWYzXAg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/ca307abc-6edf-465d-afb7-25185d314f30?api-version=2024-05-01-preview&t=638341865641805209&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0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QYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=NTD9gbMnW8DG6DhqPFxu0b9mYWL74XHvNLVLw6OqZj5YYYTVYmlbprmDJgb1LysmzDFLGenf1mBW5Tcb9PZW9iy9ICwSUXschX1_oBdhMCtQba90KmwjfANWc5SqXR4XwQ4_AjXOplyf_7B8hZXChhB2gUPHgSqOvCHBFgHVI4nN0lwWNGHoapOnZKp-tXYYAPl3WsN5yIuPGPBjIBY8u-zUU1tIl1vGZncG0ZybhPPgY0n_zBW7jC0OrUArkQOjsiem0vFDrTELSWkSH3v5ahM9tN1k7uXjxBDZO5uHmVkeR43V2KM2UmpeMotM5Qu9RXZ5Y6jrib13sBQVigIvGg&h=SqbTiIZGsEcd8B8hnGLQ3J17Ove1dylIA47yZWYzXAg cache-control: - no-cache content-length: @@ -3950,7 +3950,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/ca307abc-6edf-465d-afb7-25185d314f30/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341865641805209&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyL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-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=UNDzecC5srJD_ycdr6ClNeggyrD_9jVjcCWOmtfhLK6ov153FJctBnNrezDFnZzqWjWXP8law4hw9fRQJ-u1XreXwsvzDnWPO3iNxa_8of4ZNPxN3FqPmZ_qw6i0xzALQA7GkSbwE4Lcm0ykUd6YDpiYOOrULIaaPcAk43WNZkLbV0tAjS7NnPpd1reGpfkppU_fX7xbUDC_zGfLx7uEhxxW9p3io2iJ8DABuYNmbuYaZzS_UwME4DUfMG6V2dfSr_jzhFvElHScTk9K7hq4otmUtrR7eubhbV5e32r8jzWCPiwJTGtsuLSmLC7mVfrsI9jreTf6Ol65376QUnmx0A&h=qUlflsP8Iyl8XawseeQ9HQ94TyyetLmmJGfzWE7jEM8 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/ca307abc-6edf-465d-afb7-25185d314f30/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341865641805209&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAt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nNrezDFnZzqWjWXP8law4hw9fRQJ-u1XreXwsvzDnWPO3iNxa_8of4ZNPxN3FqPmZ_qw6i0xzALQA7GkSbwE4Lcm0ykUd6YDpiYOOrULIaaPcAk43WNZkLbV0tAjS7NnPpd1reGpfkppU_fX7xbUDC_zGfLx7uEhxxW9p3io2iJ8DABuYNmbuYaZzS_UwME4DUfMG6V2dfSr_jzhFvElHScTk9K7hq4otmUtrR7eubhbV5e32r8jzWCPiwJTGtsuLSmLC7mVfrsI9jreTf6Ol65376QUnmx0A&h=qUlflsP8Iyl8XawseeQ9HQ94TyyetLmmJGfzWE7jEM8 pragma: - no-cache request-context: @@ -3982,7 +3982,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/ca307abc-6edf-465d-afb7-25185d314f30?api-version=2024-01-01-preview&t=638341865641805209&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9M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NGHoapOnZKp-tXYYAPl3WsN5yIuPGPBjIBY8u-zUU1tIl1vGZncG0ZybhPPgY0n_zBW7jC0OrUArkQOjsiem0vFDrTELSWkSH3v5ahM9tN1k7uXjxBDZO5uHmVkeR43V2KM2UmpeMotM5Qu9RXZ5Y6jrib13sBQVigIvGg&h=SqbTiIZGsEcd8B8hnGLQ3J17Ove1dylIA47yZWYzXAg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/ca307abc-6edf-465d-afb7-25185d314f30?api-version=2024-05-01-preview&t=638341865641805209&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwC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3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/ca307abc-6edf-465d-afb7-25185d314f30","name":"ca307abc-6edf-465d-afb7-25185d314f30","status":"Succeeded","startTime":"2023-10-29T14:29:23.9868908Z","endTime":"2023-10-29T14:29:24.2168572Z"}' @@ -4030,7 +4030,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -4080,7 +4080,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -4130,7 +4130,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"appResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/apps/vets-service","protocol":"HTTPS","openApi":{"uri":"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.json"},"ssoEnabled":true,"predicates":["Path=/api/echo2"],"filters":["StripPrefix=1"],"routes":[{"title":"Customers @@ -4180,7 +4180,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -4232,13 +4232,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/c2a5784c-63bb-417a-a374-18ecf3354fc5?api-version=2024-01-01-preview&t=638341865762606474&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHM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SMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=d3Hwqh2UjBCWdneDcoFqC0kUrERBY5vwXjCDiSWPWVcIVWRw_Nmm4Iom8IXOVVd_Di0FPNeuSIbGdJa9k3-x0sdK4pBtoBlg_m68sFeQURYxCgcxu1v0ESJmhAo_WbC8F_BPNNn8UrAxdGPhB0-vyv-VsJ1Eof1gJDQZQfX-2l66jqcMUQe-BLI796FYG3jWamtEkmjep345k3X5rXmOgIxpMKXsCeGQuz0eWp2-SwWJZPDpx1SZJChN9j-RIzsti544dYjOuq-hRMmsQak9NqQK6W6tgh7X9HaIuQV-JySVMFox2Fxlf1eBKOoveF4WNVpG1gsh2BFi74Dyu6dM4A&h=Vlol5NW8C-tFm1Fj_5059m2kAjA5GnlIqKXX6OWeLsQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/c2a5784c-63bb-417a-a374-18ecf3354fc5?api-version=2024-05-01-preview&t=638341865762606474&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGR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G-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=d3Hwqh2UjBCWdneDcoFqC0kUrERBY5vwXjCDiSWPWVcIVWRw_Nmm4Iom8IXOVVd_Di0FPNeuSIbGdJa9k3-x0sdK4pBtoBlg_m68sFeQURYxCgcxu1v0ESJmhAo_WbC8F_BPNNn8UrAxdGPhB0-vyv-VsJ1Eof1gJDQZQfX-2l66jqcMUQe-BLI796FYG3jWamtEkmjep345k3X5rXmOgIxpMKXsCeGQuz0eWp2-SwWJZPDpx1SZJChN9j-RIzsti544dYjOuq-hRMmsQak9NqQK6W6tgh7X9HaIuQV-JySVMFox2Fxlf1eBKOoveF4WNVpG1gsh2BFi74Dyu6dM4A&h=Vlol5NW8C-tFm1Fj_5059m2kAjA5GnlIqKXX6OWeLsQ cache-control: - no-cache content-length: @@ -4248,7 +4248,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/c2a5784c-63bb-417a-a374-18ecf3354fc5/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341865762762716&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW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k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=HdSdXkNcJCxupwT35-g-CvEPeCscxkbvlqfL42nWjzUz1P37dRp0z0MYs4zD2-TLBVKkwlSPocW8gQJFjwJdpi_ZXgwNQeXIXZ8mLLdZ2MYFeOEAbj6wzo-f16v9SKfq49WJuhOKz4Mt390fnEJfeU7h4K67fSLZtd-OLxaYCJkoZaSFir3a9PxxXbpmksNQVqYFSiBUWqDx23g7aXsDIt9nLTe38P0NwlDZcRTyRZlY0W-68DNrlaEW1n4sUkqwbGF2YzGf5LpakjyS_zZlDoOgYgPnQ5m_Bo_pdF5xRJlpRYq9vqV_JPlCYEA8_l_Cez2RxpnDDaX-XuBkzn801A&h=dA6QCISZVfCkrmIxZPVQrq_ZFWYLrajEgom2xWrKsqs + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/c2a5784c-63bb-417a-a374-18ecf3354fc5/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341865762762716&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMf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BUWqDx23g7aXsDIt9nLTe38P0NwlDZcRTyRZlY0W-68DNrlaEW1n4sUkqwbGF2YzGf5LpakjyS_zZlDoOgYgPnQ5m_Bo_pdF5xRJlpRYq9vqV_JPlCYEA8_l_Cez2RxpnDDaX-XuBkzn801A&h=dA6QCISZVfCkrmIxZPVQrq_ZFWYLrajEgom2xWrKsqs pragma: - no-cache request-context: @@ -4280,7 +4280,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/c2a5784c-63bb-417a-a374-18ecf3354fc5?api-version=2024-01-01-preview&t=638341865762606474&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYx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KOoveF4WNVpG1gsh2BFi74Dyu6dM4A&h=Vlol5NW8C-tFm1Fj_5059m2kAjA5GnlIqKXX6OWeLsQ + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/c2a5784c-63bb-417a-a374-18ecf3354fc5?api-version=2024-05-01-preview&t=638341865762606474&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQ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2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=d3Hwqh2UjBCWdneDcoFqC0kUrERBY5vwXjCDiSWPWVcIVWRw_Nmm4Iom8IXOVVd_Di0FPNeuSIbGdJa9k3-x0sdK4pBtoBlg_m68sFeQURYxCgcxu1v0ESJmhAo_WbC8F_BPNNn8UrAxdGPhB0-vyv-VsJ1Eof1gJDQZQfX-2l66jqcMUQe-BLI796FYG3jWamtEkmjep345k3X5rXmOgIxpMKXsCeGQuz0eWp2-SwWJZPDpx1SZJChN9j-RIzsti544dYjOuq-hRMmsQak9NqQK6W6tgh7X9HaIuQV-JySVMFox2Fxlf1eBKOoveF4WNVpG1gsh2BFi74Dyu6dM4A&h=Vlol5NW8C-tFm1Fj_5059m2kAjA5GnlIqKXX6OWeLsQ response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/c2a5784c-63bb-417a-a374-18ecf3354fc5","name":"c2a5784c-63bb-417a-a374-18ecf3354fc5","status":"Succeeded","startTime":"2023-10-29T14:29:36.0767341Z","endTime":"2023-10-29T14:29:36.3432355Z"}' @@ -4328,7 +4328,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -4378,7 +4378,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/routeConfigs/cli-route?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"Spring Cloud Gateway Route Config @@ -4423,7 +4423,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -4473,7 +4473,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":true,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Succeeded","httpsOnly":true,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"apiMetadataProperties":{"title":"Pet @@ -4527,13 +4527,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"tx-enterprise-gateway-fd0c7.svc.azuremicroservices.io","provisioningState":"Updating","httpsOnly":false,"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:10:40.0148147Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:29:46.5472023Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCs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UyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2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kPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 cache-control: - no-cache content-length: @@ -4545,7 +4545,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7ed7dec9-d699-4996-8792-bdbf5a0d0f36/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341865881409785&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAM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gLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=ZK4wxsefrJvi_--Ho6EynKuYIQgAKUGxcSNKY10GSk-Eqll8S6KB1opbIUtP_ZieQKoC-jy7yquWOT_geVu6T7XnHEbCcmdIUem6FC6Tq08N9uqPiJiJLq5EIH5TzBbrCklZG7R3L7zscCfUh570SuteBp06u64y99jDZQdLlmKULom2HRlTfT4_LJPNDXpHc2zmYmUSckxXvcjq5QsuvGkteUQosb90WtkJMMleLG_wx7mJRy-fvQQ4GTpOaZSsCpsFYVdcPs05E26MeG8t4Dnr0zXBLOZhKD8uQpry89n6KvUjwNfcanmVsWEsjpW7RATiQaLc5TXDCNm2DiK5jQ&h=Y9WskBQ99J5VlGlIEEo7169CqH8fK9W0evXxkAiEcug + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/7ed7dec9-d699-4996-8792-bdbf5a0d0f36/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341865881409785&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-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uteBp06u64y99jDZQdLlmKULom2HRlTfT4_LJPNDXpHc2zmYmUSckxXvcjq5QsuvGkteUQosb90WtkJMMleLG_wx7mJRy-fvQQ4GTpOaZSsCpsFYVdcPs05E26MeG8t4Dnr0zXBLOZhKD8uQpry89n6KvUjwNfcanmVsWEsjpW7RATiQaLc5TXDCNm2DiK5jQ&h=Y9WskBQ99J5VlGlIEEo7169CqH8fK9W0evXxkAiEcug pragma: - no-cache request-context: @@ -4577,7 +4577,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6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nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZ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DIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4625,7 +4625,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgY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ourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JM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l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4673,7 +4673,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3Js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cGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTAN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N7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4721,7 +4721,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version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PVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2W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VhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4769,7 +4769,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9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515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4817,7 +4817,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJ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qwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWf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mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4865,7 +4865,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnD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OPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCA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g7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4913,7 +4913,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd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alEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQ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C5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -4961,7 +4961,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCN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5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMj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BQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Running","startTime":"2023-10-29T14:29:47.9588901Z"}' @@ -5009,7 +5009,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-01-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5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N3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36?api-version=2024-05-01-preview&t=638341865881253419&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQY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HzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W7PfThbT_eYsQGHy0dZqnKqPFQGyHeitjwZ51QCtIAgvcbCoH4pNUW7515Ufsln69LLVl81SG0ccItUPh0sxyCOK1X4Ie_ZZ2RhYKCsQqvnNaba2JaDHYyqkIncoDRmCQBBex9aiTotCpxpOPoQtayK1grAKpHi3w7MMDWS7T8Ys8zsvHyIYUH5lF3Ab6yqoyn6jn96BjMATPsrqi3e5Mdy8xh3-XFE7nP6L_K9PWaqvKT_W7IAK0vgWBQcaR1ozmhW0YUsAtUG7nTyAkC_CU2RhijaFSl1ExgwKvuGalEtoUkAI5smU4m45m0z3sjUpeky_unubYHYs-y-T92qg3A&h=oeZFthkLYVMzMCScNku8hnc9_y6gg7P3nYB0ZZv4Ty0 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/7ed7dec9-d699-4996-8792-bdbf5a0d0f36","name":"7ed7dec9-d699-4996-8792-bdbf5a0d0f36","status":"Succeeded","startTime":"2023-10-29T14:29:47.9588901Z","endTime":"2023-10-29T14:31:32.8606532Z"}' @@ -5057,7 +5057,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":[{"name":"asc-scg-default-0","status":"Running"},{"name":"asc-scg-default-1","status":"Running"}],"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":[{"name":"scg-operator-75674bfdc8-4pt26","status":"Running"}]},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:10:40.0148147Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:29:46.5472023Z"}}' @@ -5105,7 +5105,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -5157,13 +5157,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4210766a-9d82-4608-b30b-971451108c25?api-version=2024-01-01-preview&t=638341867021291092&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQ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uT1LQdI2sqNxH6bp0QkYJBluT4w62slsWxsNDGyNrWiXvOMgdM8G7mqcHFkXRIQiAyjxSUuHSFyYRGcdlJX1rkoZ18Z6dHo4Wpi45lsJPAqEOdO6XWlAODfAwZA8QzVVJR0OibFEKG4wOGoAWdtq_JOeYWJfS71oLjvSRwRXj89QlAyhC0P14VaJJUqNHkpL2WrR0MzIOFWH2G8dwJSX7n_TwJcNGocUXbweZzFMvRB3WPcF6OVvcp-Cyxp_xxNXaAkhjisPZKvK9e41eSszNMo8jIm7ii2Ec0R9EqDF1GzPgkOAmnM0BlFSKOM3rPSgJHzZO8-G5w&h=3IQ9EfDn4pqmH0KZTNbvz_jtmYMTKMDqcwI9tIIY70I + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4210766a-9d82-4608-b30b-971451108c25?api-version=2024-05-01-preview&t=638341867021291092&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svV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FMvRB3WPcF6OVvcp-Cyxp_xxNXaAkhjisPZKvK9e41eSszNMo8jIm7ii2Ec0R9EqDF1GzPgkOAmnM0BlFSKOM3rPSgJHzZO8-G5w&h=3IQ9EfDn4pqmH0KZTNbvz_jtmYMTKMDqcwI9tIIY70I cache-control: - no-cache content-length: @@ -5173,7 +5173,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4210766a-9d82-4608-b30b-971451108c25/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341867021447326&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCg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DIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W2cJdVEQzAVDLAf5DI4TGlyOgx4QdGtMCmCpQhUJuwDu95UWr7p1TU5_0hhgWrlXPvhjRHnyIAEZ3oAg_ln-2Z7pfy00Cli0dGvwjQVOO7yXTHle0gD3E6d0D4MOgMun4b1oE1XYTbC4KD_OIFYAN3xh_pyVfC6y1lm4Ku4szIShzdaacW1m1IBpKpsK3f9l1quJJA80uAolHMC0_msPJsH7awUO4FMUxWaeitn66I8A6pnDwd_s0vX9YKZ4C-oLWEws23NxEh0dzucVF3OqTOyW2623rMAbluvy-5z9N4LBM6rcJitvRRMa39xtkkWKiYKQsKWv4WhfiKFi8txKjA&h=ahnW7Q3VrUUS6adEmezffwAf5hr4aztL4tfH2EHBoIE + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/4210766a-9d82-4608-b30b-971451108c25/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341867021447326&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJ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EFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W2cJdVEQzAVDLAf5DI4TGlyOgx4QdGtMCmCpQhUJuwDu95UWr7p1TU5_0hhgWrlXPvhjRHnyIAEZ3oAg_ln-2Z7pfy00Cli0dGvwjQVOO7yXTHle0gD3E6d0D4MOgMun4b1oE1XYTbC4KD_OIFYAN3xh_pyVfC6y1lm4Ku4szIShzdaacW1m1IBpKpsK3f9l1quJJA80uAolHMC0_msPJsH7awUO4FMUxWaeitn66I8A6pnDwd_s0vX9YKZ4C-oLWEws23NxEh0dzucVF3OqTOyW2623rMAbluvy-5z9N4LBM6rcJitvRRMa39xtkkWKiYKQsKWv4WhfiKFi8txKjA&h=ahnW7Q3VrUUS6adEmezffwAf5hr4aztL4tfH2EHBoIE pragma: - no-cache request-context: @@ -5205,7 +5205,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4210766a-9d82-4608-b30b-971451108c25?api-version=2024-01-01-preview&t=638341867021291092&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4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VAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=nnFqTw07qKXiuT1LQdI2sqNxH6bp0QkYJBluT4w62slsWxsNDGyNrWiXvOMgdM8G7mqcHFkXRIQiAyjxSUuHSFyYRGcdlJX1rkoZ18Z6dHo4Wpi45lsJPAqEOdO6XWlAODfAwZA8QzVVJR0OibFEKG4wOGoAWdtq_JOeYWJfS71oLjvSRwRXj89QlAyhC0P14VaJJUqNHkpL2WrR0MzIOFWH2G8dwJSX7n_TwJcNGocUXbweZzFMvRB3WPcF6OVvcp-Cyxp_xxNXaAkhjisPZKvK9e41eSszNMo8jIm7ii2Ec0R9EqDF1GzPgkOAmnM0BlFSKOM3rPSgJHzZO8-G5w&h=3IQ9EfDn4pqmH0KZTNbvz_jtmYMTKMDqcwI9tIIY70I + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4210766a-9d82-4608-b30b-971451108c25?api-version=2024-05-01-preview&t=638341867021291092&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZp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YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=nnFqTw07qKXiuT1LQdI2sqNxH6bp0QkYJBluT4w62slsWxsNDGyNrWiXvOMgdM8G7mqcHFkXRIQiAyjxSUuHSFyYRGcdlJX1rkoZ18Z6dHo4Wpi45lsJPAqEOdO6XWlAODfAwZA8QzVVJR0OibFEKG4wOGoAWdtq_JOeYWJfS71oLjvSRwRXj89QlAyhC0P14VaJJUqNHkpL2WrR0MzIOFWH2G8dwJSX7n_TwJcNGocUXbweZzFMvRB3WPcF6OVvcp-Cyxp_xxNXaAkhjisPZKvK9e41eSszNMo8jIm7ii2Ec0R9EqDF1GzPgkOAmnM0BlFSKOM3rPSgJHzZO8-G5w&h=3IQ9EfDn4pqmH0KZTNbvz_jtmYMTKMDqcwI9tIIY70I response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/4210766a-9d82-4608-b30b-971451108c25","name":"4210766a-9d82-4608-b30b-971451108c25","status":"Succeeded","startTime":"2023-10-29T14:31:41.906224Z","endTime":"2023-10-29T14:31:42.340448Z"}' @@ -5253,7 +5253,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -5303,7 +5303,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -5357,13 +5357,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"provisioningState":"Creating","httpsOnly":false,"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:31:48.1402989Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:31:48.1402989Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQ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W-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwT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gprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 cache-control: - no-cache content-length: @@ -5375,7 +5375,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/a2fdff4b-4566-4551-926f-3807de71a245/Spring/tx-enterprise?api-version=2024-01-01-preview&t=638341867095934983&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slV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Wx10DbiRpE8-tjSruplvfHrtJ4ldpeWunuCwZhvlvEZfqyoZ8Xk5KH_4hBZpKH0l9B5y-4P5dQDbXWXqhmIE4nhmGSIY0ptOif5ATTxCd3eptNmXjiPUeA&h=dyPZGT6zcLCZkN-F8YvrBZvqEL5I6SF350Zme_S6ofQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationResults/a2fdff4b-4566-4551-926f-3807de71a245/Spring/tx-enterprise?api-version=2024-05-01-preview&t=638341867095934983&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxU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azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQU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BJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z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Awgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5455,7 +5455,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=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VVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4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r6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5503,7 +5503,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ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gLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibv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6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5551,7 +5551,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC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snOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphr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ZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5599,7 +5599,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgD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tAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHA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ceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5647,7 +5647,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQH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eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmE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ATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5695,7 +5695,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCs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UyMENBJTIwMDIoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGV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q64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5743,7 +5743,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?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GOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjB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kKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5791,7 +5791,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcm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I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYY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D6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5839,7 +5839,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC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b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrO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H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5887,7 +5887,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafp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yJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBB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356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Running","startTime":"2023-10-29T14:31:49.3826329Z"}' @@ -5935,7 +5935,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-01-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBA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vBT8eeo4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245?api-version=2024-05-01-preview&t=638341867095777984&c=MIIHHjCCBgagAwIBAgITfwHPGb2PGVTN4z3FUwAEAc8ZvTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjMwODAyMDYzNjM2WhcNMjQwNzI3MDYzNjM2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALA8WMmmEO1CwTnKvAtvibQoh9fKt-nYVdbvRtzIlm4z19BYYfDibvj6l1viYhNR3bs53c9d8fIWknmMKcHdJpnnDk-sfLAVWjMNWlp_buwQ0wqnDDMi-_nqhutQ0ONUbruFxD0-bGPA3RLD9MxnV3XQGNGjXFzj7hqAQauMfHafpxwgDIEYAcWfBtE32aGB9_bxZrY8E2slVewgeS6yws88svVeMAmGPQEGqIrOrqphrXLbmWMcWg6Ixey-FyuliVC6n2ECOpeUOnI3zd3u2YXwLZrTeYxh6zaRuU-ht2zLmkisse4EaaJvcnYB1ET9IBE-LI8SxLbutQtDAe4kiSkCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5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N3sBATAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAD3Zm_z6dHneGOQPVVe1FxHrV2xvtqbjaKZAuH5rSpWUw_DJdOSV4cWnP6mHzxkPNq64LVAwgyif18NOtR825NodQN7r_Il0fGIykE4rt-M_xIqddJaoXHzIGUQ0uCofzHWG-wdvSYVhlbFFtTckqYtEA9-qW-eTU2K1wu1OQ8ry_XahL8OpgJsribT6ANlH0I5odhgLdzGhwvBWfM1-xaqN8ieQA5l7FdmYeOrZYwzX4Lc-478HHPVhkKgLr6pn1L-WJJ1mMn_PPXo4c6q34Uw6i0kyVgPeot9rO0FSHhj-YxHTde4eXuk4k1VEx6v56KK89p9N2LCqwkWf75r3Vdk&s=W98QY7JDA36j1UoxjCEz_mL0b9qnsnOxGNJ37Fh_kcXgprJVeuYkXsgIqMSQjp5Xr5wIej7rFK_73qD6fd6cZ6Y79HBUKgj-CJUc-E56Y7euOxepx5OcO7_JylC-J3dXmR18WIoAiUBDv9cTSIhyLozpJzfSAkDAbp8FzotUpaTdvnjHWJmaW1iDWRP1uLOmWJDgte9YyyJlPtAQ6qUF6zl0yaWjJZGL4YcCPIhVFzczfUkCWuZulru5yU_rNakD26H52NgZpPC0lPNYETOAos1xWnQHQ_MnisgJNTQS5qiyAc8KKtS7htu7jIh-SjKFgwCqJUejyDIeWh7GkoN-2w&h=lsAUKWF3nfmxP2k_4o0X8k2SKsYcEcsv-w-vBT8eeo4 response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/tx/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/tx-enterprise/operationId/a2fdff4b-4566-4551-926f-3807de71a245","name":"a2fdff4b-4566-4551-926f-3807de71a245","status":"Succeeded","startTime":"2023-10-29T14:31:49.3826329Z","endTime":"2023-10-29T14:33:52.7522243Z"}' @@ -5983,7 +5983,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":[{"name":"asc-scg-default-0","status":"Running"},{"name":"asc-scg-default-1","status":"Running"}],"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":[{"name":"scg-operator-75674bfdc8-m84jh","status":"Running"}]},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":2},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default","name":"default","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:31:48.1402989Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:31:48.1402989Z"}}' @@ -6031,7 +6031,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://testabcd.vault.azure.net","keyVaultCertName":"cli-unittest","certVersion":"511533f2f943413b9c67a77b545eafe2","excludePrivateKey":true,"autoSync":"Disabled","thumbprint":"64eb989a87a4283519e7ad0ca0da0f04c9808280","issuer":"ss.com","expirationDate":"2024-05-20T07:56:57.000+00:00","activateDate":"2023-05-20T07:46:57.000+00:00","subjectName":"ss.com","dnsNames":[],"provisioningState":"Succeeded","type":"KeyVaultCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-20T07:57:13.5509102Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-20T07:57:13.5509102Z"}}' @@ -6079,7 +6079,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -6133,7 +6133,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":""},"type":"Microsoft.AppPlatform/Spring/gateways/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net","name":"gateway-cli.azdmss-test.net","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:34:07.0895584Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:34:07.0895584Z"}}' @@ -6183,7 +6183,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -6233,7 +6233,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":""},"type":"Microsoft.AppPlatform/Spring/gateways/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net","name":"gateway-cli.azdmss-test.net","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:34:07.0895584Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:34:07.0895584Z"}}' @@ -6281,7 +6281,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"9051f81cee754cacaa66254b59a9735d","networkProfile":{"outboundIPs":{"publicIPs":["20.81.113.166","20.81.115.78"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2023-05-19T16:33:16.6578123Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-05-19T16:33:16.6578123Z"}}' @@ -6331,7 +6331,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"thumbprint":""},"type":"Microsoft.AppPlatform/Spring/gateways/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net","name":"gateway-cli.azdmss-test.net","systemData":{"createdBy":"ninpan@microsoft.com","createdByType":"User","createdAt":"2023-10-29T14:34:07.0895584Z","lastModifiedBy":"ninpan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-29T14:34:07.0895584Z"}}]}' @@ -6379,7 +6379,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"901491e641cf4c0fbcedeeced84919f4","networkProfile":{"outboundIPs":{"publicIPs":["20.246.169.224","20.246.170.4"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"xiading@microsoft.com","createdByType":"User","createdAt":"2022-11-01T05:28:28.6663306Z","lastModifiedBy":"xiading@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-01T05:28:28.6663306Z"}}' @@ -6429,7 +6429,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/certificates/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"vaultUri":"https://integration-test-prod.vault.azure.net","keyVaultCertName":"pfx-cert","certVersion":"012850b3685548edb418696a491c6d72","excludePrivateKey":false,"type":"KeyVaultCertificate","thumbprint":"6695512ed53e0c46817348b78411876a9a9c3396","issuer":"Microsoft @@ -6483,7 +6483,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"6695512ed53e0c46817348b78411876a9a9c3396"},"type":"Microsoft.AppPlatform/Spring/gateways/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net","name":"gateway-cli.azdmss-test.net"}' @@ -6533,7 +6533,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"901491e641cf4c0fbcedeeced84919f4","networkProfile":{"outboundIPs":{"publicIPs":["20.246.169.224","20.246.170.4"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"xiading@microsoft.com","createdByType":"User","createdAt":"2022-11-01T05:28:28.6663306Z","lastModifiedBy":"xiading@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-01T05:28:28.6663306Z"}}' @@ -6583,7 +6583,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"6695512ed53e0c46817348b78411876a9a9c3396"},"type":"Microsoft.AppPlatform/Spring/gateways/domains","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net","name":"gateway-cli.azdmss-test.net"}' @@ -6629,7 +6629,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-05-01-preview response: body: string: '' @@ -6675,7 +6675,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"901491e641cf4c0fbcedeeced84919f4","networkProfile":{"outboundIPs":{"publicIPs":["20.246.169.224","20.246.170.4"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"tx-enterprise.asc-test.net"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise","name":"tx-enterprise","systemData":{"createdBy":"xiading@microsoft.com","createdByType":"User","createdAt":"2022-11-01T05:28:28.6663306Z","lastModifiedBy":"xiading@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-11-01T05:28:28.6663306Z"}}' @@ -6725,7 +6725,7 @@ interactions: User-Agent: - AZURECLI/2.41.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.0 (Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tx/providers/Microsoft.AppPlatform/Spring/tx-enterprise/gateways/default/domains/gateway-cli.azdmss-test.net?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"EntityNotFound","message":"CustomDomain ''gateway-cli.azdmss-test.net'' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_generate_deployment_dump.yaml b/src/spring/azext_spring/tests/latest/recordings/test_generate_deployment_dump.yaml index 7a16050a661..fadcac18f23 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_generate_deployment_dump.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_generate_deployment_dump.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"},"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-dump-default-23-75bf876455-xz892","status":"Running","discoveryStatus":"UP","startTime":"2022-01-17T21:05:40Z"}]},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default","name":"default","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2022-01-17T21:05:09.7194765Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2022-01-17T21:05:27.4994709Z"}}' @@ -67,7 +67,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"},"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-dump-default-23-75bf876455-xz892","status":"Running","discoveryStatus":"UP","startTime":"2022-01-17T21:05:40Z"}]},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default","name":"default","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2022-01-17T21:05:09.7194765Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2022-01-17T21:05:27.4994709Z"}}' @@ -124,13 +124,13 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default/generateHeapDump?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app-dump/deployments/default/generateHeapDump?api-version=2024-05-01-preview response: body: string: '{"appInstance":"test-app-dump-default-23-75bf876455-xz892","filePath":"C:UsersyuwzhoAppDataLocalTempdumpfile.txt","duration":"60s"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -174,7 +174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -224,7 +224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -274,7 +274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -324,7 +324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -374,7 +374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -424,7 +424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -474,7 +474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -524,7 +524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -574,7 +574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -624,7 +624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -674,7 +674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -724,7 +724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -774,7 +774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -824,7 +824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -874,7 +874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -924,7 +924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -974,7 +974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1024,7 +1024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1074,7 +1074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1124,7 +1124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1174,7 +1174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1224,7 +1224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1274,7 +1274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1324,7 +1324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1374,7 +1374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1424,7 +1424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1474,7 +1474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1524,7 +1524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1574,7 +1574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1624,7 +1624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1674,7 +1674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1724,7 +1724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1774,7 +1774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1824,7 +1824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1874,7 +1874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1924,7 +1924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -1974,7 +1974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2024,7 +2024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2074,7 +2074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2124,7 +2124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2174,7 +2174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2224,7 +2224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2274,7 +2274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2324,7 +2324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2374,7 +2374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2424,7 +2424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2474,7 +2474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2524,7 +2524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2574,7 +2574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2624,7 +2624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2674,7 +2674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2724,7 +2724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2774,7 +2774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2824,7 +2824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2874,7 +2874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2924,7 +2924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -2974,7 +2974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3024,7 +3024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3074,7 +3074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3124,7 +3124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3174,7 +3174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3224,7 +3224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3274,7 +3274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3324,7 +3324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3374,7 +3374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3424,7 +3424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3474,7 +3474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3524,7 +3524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3574,7 +3574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3624,7 +3624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3674,7 +3674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3724,7 +3724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3774,7 +3774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3824,7 +3824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3874,7 +3874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3924,7 +3924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -3974,7 +3974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4024,7 +4024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4074,7 +4074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4124,7 +4124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4174,7 +4174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4224,7 +4224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4274,7 +4274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4324,7 +4324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4374,7 +4374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4424,7 +4424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4474,7 +4474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4524,7 +4524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4574,7 +4574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4624,7 +4624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4674,7 +4674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4724,7 +4724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4774,7 +4774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4824,7 +4824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4874,7 +4874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4924,7 +4924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -4974,7 +4974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5024,7 +5024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5074,7 +5074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5124,7 +5124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5174,7 +5174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5224,7 +5224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5274,7 +5274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5324,7 +5324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5374,7 +5374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5424,7 +5424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5474,7 +5474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5524,7 +5524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5574,7 +5574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5624,7 +5624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5674,7 +5674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5724,7 +5724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5774,7 +5774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5824,7 +5824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5874,7 +5874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5924,7 +5924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -5974,7 +5974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6024,7 +6024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6074,7 +6074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6124,7 +6124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6174,7 +6174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6224,7 +6224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6274,7 +6274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6324,7 +6324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6374,7 +6374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6424,7 +6424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6474,7 +6474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6524,7 +6524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6574,7 +6574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6624,7 +6624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6674,7 +6674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6724,7 +6724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6774,7 +6774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6824,7 +6824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6874,7 +6874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6924,7 +6924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -6974,7 +6974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7024,7 +7024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7074,7 +7074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7124,7 +7124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7174,7 +7174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7224,7 +7224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7274,7 +7274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7324,7 +7324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7374,7 +7374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7424,7 +7424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7474,7 +7474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7524,7 +7524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7574,7 +7574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7624,7 +7624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7674,7 +7674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7724,7 +7724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7774,7 +7774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7824,7 +7824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7874,7 +7874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7924,7 +7924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -7974,7 +7974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8024,7 +8024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8074,7 +8074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8124,7 +8124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8174,7 +8174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8224,7 +8224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8274,7 +8274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8324,7 +8324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8374,7 +8374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8424,7 +8424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8474,7 +8474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8524,7 +8524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8574,7 +8574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8624,7 +8624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8674,7 +8674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8724,7 +8724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8774,7 +8774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8824,7 +8824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8874,7 +8874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8924,7 +8924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -8974,7 +8974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9024,7 +9024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9074,7 +9074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9124,7 +9124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9174,7 +9174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9224,7 +9224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9274,7 +9274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9324,7 +9324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9374,7 +9374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9424,7 +9424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9474,7 +9474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9524,7 +9524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9574,7 +9574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9624,7 +9624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9674,7 +9674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9724,7 +9724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9774,7 +9774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9824,7 +9824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9874,7 +9874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9924,7 +9924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -9974,7 +9974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10024,7 +10024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10074,7 +10074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10124,7 +10124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10174,7 +10174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10224,7 +10224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10274,7 +10274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10324,7 +10324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10374,7 +10374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10424,7 +10424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10474,7 +10474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10524,7 +10524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10574,7 +10574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10624,7 +10624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10674,7 +10674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10724,7 +10724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10774,7 +10774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10824,7 +10824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10874,7 +10874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10924,7 +10924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -10974,7 +10974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11024,7 +11024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11074,7 +11074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11124,7 +11124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11174,7 +11174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11224,7 +11224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11274,7 +11274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11324,7 +11324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11374,7 +11374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11424,7 +11424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11474,7 +11474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11524,7 +11524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11574,7 +11574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11624,7 +11624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11674,7 +11674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11724,7 +11724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11774,7 +11774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11824,7 +11824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11874,7 +11874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11924,7 +11924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -11974,7 +11974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12024,7 +12024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12074,7 +12074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12124,7 +12124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12174,7 +12174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12224,7 +12224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12274,7 +12274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12324,7 +12324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12374,7 +12374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12424,7 +12424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12474,7 +12474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12524,7 +12524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12574,7 +12574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12624,7 +12624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12674,7 +12674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12724,7 +12724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12774,7 +12774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12824,7 +12824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12874,7 +12874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12924,7 +12924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -12974,7 +12974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13024,7 +13024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13074,7 +13074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13124,7 +13124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13174,7 +13174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13224,7 +13224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13274,7 +13274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13324,7 +13324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13374,7 +13374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13424,7 +13424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13474,7 +13474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13524,7 +13524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13574,7 +13574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13624,7 +13624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13674,7 +13674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13724,7 +13724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13774,7 +13774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13824,7 +13824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13874,7 +13874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13924,7 +13924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -13974,7 +13974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14024,7 +14024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14074,7 +14074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14124,7 +14124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14174,7 +14174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14224,7 +14224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14274,7 +14274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14324,7 +14324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14374,7 +14374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14424,7 +14424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14474,7 +14474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14524,7 +14524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14574,7 +14574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14624,7 +14624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14674,7 +14674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14724,7 +14724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14774,7 +14774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14824,7 +14824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14874,7 +14874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14924,7 +14924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -14974,7 +14974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15024,7 +15024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15074,7 +15074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15124,7 +15124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15174,7 +15174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15224,7 +15224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15274,7 +15274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15324,7 +15324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15374,7 +15374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15424,7 +15424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15474,7 +15474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15524,7 +15524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15574,7 +15574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15624,7 +15624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15674,7 +15674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15724,7 +15724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15774,7 +15774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15824,7 +15824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15874,7 +15874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15924,7 +15924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -15974,7 +15974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16024,7 +16024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16074,7 +16074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16124,7 +16124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16174,7 +16174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16224,7 +16224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16274,7 +16274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16324,7 +16324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16374,7 +16374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16424,7 +16424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16474,7 +16474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16524,7 +16524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16574,7 +16574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16624,7 +16624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16674,7 +16674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16724,7 +16724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16774,7 +16774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16824,7 +16824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16874,7 +16874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16924,7 +16924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -16974,7 +16974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17024,7 +17024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17074,7 +17074,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17124,7 +17124,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17174,7 +17174,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17224,7 +17224,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17274,7 +17274,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17324,7 +17324,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17374,7 +17374,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17424,7 +17424,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17474,7 +17474,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17524,7 +17524,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17574,7 +17574,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17624,7 +17624,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17674,7 +17674,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17724,7 +17724,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17774,7 +17774,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17824,7 +17824,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17874,7 +17874,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17924,7 +17924,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -17974,7 +17974,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Running","startTime":"2022-01-19T03:28:30.1744848Z"}' @@ -18024,7 +18024,7 @@ interactions: User-Agent: - AZURECLI/2.32.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/eastus2euap/operationStatus/default/operationId/a0429aa1-0799-4855-a144-a245ad21685f","name":"a0429aa1-0799-4855-a144-a245ad21685f","status":"Succeeded","startTime":"2022-01-19T03:28:30.1744848Z"}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_list_support_server_versions.yaml b/src/spring/azext_spring/tests/latest/recordings/test_list_support_server_versions.yaml index 514c8b110ce..65b5e02cffb 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_list_support_server_versions.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_list_support_server_versions.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"f3e78acffa71431ead83bbae71e87580","networkProfile":{"outboundIPs":{"publicIPs":["172.166.83.242","172.166.84.66"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:25:07.4605629Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:25:07.4605629Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"maintenanceScheduleConfiguration":{"frequency":"Weekly","day":"Friday","hour":10,"duration":"PT8H"},"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:04:09.4581287Z"}}' headers: cache-control: - no-cache content-length: - - '829' + - '919' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:31:36 GMT + - Mon, 15 Apr 2024 07:04:24 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: D15AA923D11E4332AFA7E4071816B394 Ref B: MAA201060514009 Ref C: 2024-04-15T07:04:23Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -63,9 +63,9 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/supportedServerVersions?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/supportedServerVersions?api-version=2024-05-01-preview response: body: string: '{"value":[{"value":"Tomcat_9","server":"Tomcat","version":"9"},{"value":"Tomcat_10","server":"Tomcat","version":"10"}]}' @@ -75,9 +75,9 @@ interactions: content-length: - '119' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:31:38 GMT + - Mon, 15 Apr 2024 07:04:25 GMT expires: - '-1' pragma: @@ -86,14 +86,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 812E6C426921499B9AB0F5FC8EC8417D Ref B: MAA201060515029 Ref C: 2024-04-15T07:04:25Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_live_view.yaml b/src/spring/azext_spring/tests/latest/recordings/test_live_view.yaml index 53848e154ea..3ca719442ef 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_live_view.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_live_view.yaml @@ -18,39 +18,43 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","public":true,"components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:17:56.4189877Z"}}' + string: '{"properties":{"provisioningState":"Creating","public":true,"components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:00:22.0340514Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50?api-version=2024-01-01-preview&t=638411446771846712&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4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3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11?api-version=2024-05-01-preview&t=638487612228153034&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpD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i8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=DnX8CoHZMdiVQfC4T-bCEp0g6KFO0lR6FS6GsWXlGSQ8o0ECJAKe2fu9friFvLKdTNa_xZOHU6qq-pAEWr7bhojunoVN7uXmn365dJCz6W4bv42KI466iOkizy2xYZ0lo45ccuAxh5XiB74x76yrGyWqMwiszEShTQPt6kmvo-ylXObl0zlI4ts6r6JhxhydxCoIhrus6UfTvG69bKrB8Ohuc7pKz-Cl-L3pLafifIpG42T-Fas01pR5K0Ky7V0CdNX9G2BAOPW2sJ4MfhT5i0Hl1TZK9wGGGkawgxtTf9fYQvMMTwIart0LoRCh9zMQ_bCj-ew0ynZcNIaIAT3_lQ&h=gkiST4mTeHJ8bUOZngewPQ7Bd-wpDp7UHRspLp36Udk cache-control: - no-cache content-length: - - '783' + - '769' content-type: - application/json date: - - Thu, 18 Jan 2024 03:17:56 GMT + - Mon, 15 Apr 2024 07:00:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/2f4157ca-6d29-4dd1-aa7a-66bc04058f50/Spring/clitest000002?api-version=2024-01-01-preview&t=638411446772002447&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0Ew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urvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=b3-b2UA2egtO10UmklgWQjnG5G1GjB90IQist3WxrqhM6pU2p6e6xRWbNV3pV6YCk3IQlH6rW67rsOQkHyQ0kFdhmcG8d70XX-HplQVG5yIiNHtUvVMyHG3tDSfTKTyu4q7dcwp1U2l542vN9McjIaCPuUQ4y7TLvhe7vqJekZziVPVkZqkrXn6b4KtDUwbSqA0eHTjvuu896tCR2p8vssG36lyT6VaOE6NvgbZZLDBzfh09zgMoHTpCLJ5BdYPRv8AsdOIt5EScqn5jFM0IXweI0xOiW9cBPWQTKvqziVkH9P2mCWdE6SwcHBzKZOPnkTLuxD6UrKOeWSu38cd2tw&h=lCfvHhfZhwnfnppza48cdc38ekezqNUvRMlF8JwVUJY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11/Spring/clitest000002?api-version=2024-05-01-preview&t=638487612228309270&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1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2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=PHx6h5HvdChP4sFMCHdHy4nJY95U4FMq8oCW1VtzhmBpmsxe0fL4bKPySE4O9fNu8wNVhPfhrTXpKRahRiEzRw4wjFAdbQhklZIP8Plc9HCWaed3egqxdUImqbx16_ND2pMFZzoBazouJXQC3WrLDi74qO_-qxyfixHU0YNyI2jKtGjajo-6EopGWUy7yBOQl78_SKek5eXbxdoL-mTO8Pi3D1f43t5n86O77IYw8HMWRfzy75_ZlZNXgYGaj-LRCnVyWWTAD1U9KWqTUjBkXVyRJfMgH1RfRUn_u_weyj-Ihg5hLl7jS0irJVDHpJ1g1Mgg8BanYONd8GefO9qDnA&h=uSDayktBUyE-mx7AT50WdUq1ryE7y0MprYa7RrdnVRw pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: E4D34E399EA744D4AF675E178EFC21AF Ref B: MAA201060513027 Ref C: 2024-04-15T07:00:21Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -68,12 +72,12 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50?api-version=2024-01-01-preview&t=638411446771846712&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX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AdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Kz5qEGyBBXHpsft98MWxEjBSJenZKJ1zXc03jgR922DZae0PBK_Uz3MxkyOPTpravuWc1U76bZeqReigRF11pPiEa8STN_D4PeZsChUV-Vvu_dqgEhmtJfA50JItNfXrWScmgoNIYIzhhh2Mee1ErDAe_352KIkaxLVHZn9qOKiWCatp02wYAgYXD6mpRIe3tmg_NHhKBuV5BvcNsFRoZfGVAW9UvUl-ow7XMnoGjNoUrZvemY_Kbw3jEIPfBdEdf3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11?api-version=2024-05-01-preview&t=638487612228153034&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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NTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=DnX8CoHZMdiVQfC4T-bCEp0g6KFO0lR6FS6GsWXlGSQ8o0ECJAKe2fu9friFvLKdTNa_xZOHU6qq-pAEWr7bhojunoVN7uXmn365dJCz6W4bv42KI466iOkizy2xYZ0lo45ccuAxh5XiB74x76yrGyWqMwiszEShTQPt6kmvo-ylXObl0zlI4ts6r6JhxhydxCoIhrus6UfTvG69bKrB8Ohuc7pKz-Cl-L3pLafifIpG42T-Fas01pR5K0Ky7V0CdNX9G2BAOPW2sJ4MfhT5i0Hl1TZK9wGGGkawgxtTf9fYQvMMTwIart0LoRCh9zMQ_bCj-ew0ynZcNIaIAT3_lQ&h=gkiST4mTeHJ8bUOZngewPQ7Bd-wpDp7UHRspLp36Udk response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50","name":"2f4157ca-6d29-4dd1-aa7a-66bc04058f50","status":"Running","startTime":"2024-01-18T03:17:57.0717575Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","name":"f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","status":"Running","startTime":"2024-04-15T07:00:22.6905665Z"}' headers: cache-control: - no-cache @@ -82,7 +86,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:17:57 GMT + - Mon, 15 Apr 2024 07:00:22 GMT expires: - '-1' pragma: @@ -91,14 +95,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9FF586F5E32B4F8D81CDEEA5B2A8852C Ref B: MAA201060513027 Ref C: 2024-04-15T07:00:22Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -116,12 +120,12 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50?api-version=2024-01-01-preview&t=638411446771846712&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6V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ErDAe_352KIkaxLVHZn9qOKiWCatp02wYAgYXD6mpRIe3tmg_NHhKBuV5BvcNsFRoZfGVAW9UvUl-ow7XMnoGjNoUrZvemY_Kbw3jEIPfBdEdf3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11?api-version=2024-05-01-preview&t=638487612228153034&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAw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3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50","name":"2f4157ca-6d29-4dd1-aa7a-66bc04058f50","status":"Running","startTime":"2024-01-18T03:17:57.0717575Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","name":"f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","status":"Running","startTime":"2024-04-15T07:00:22.6905665Z"}' headers: cache-control: - no-cache @@ -130,7 +134,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:07 GMT + - Mon, 15 Apr 2024 07:00:33 GMT expires: - '-1' pragma: @@ -139,14 +143,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A5CCD62A8D4149EB92C27576DD682ECB Ref B: MAA201060513027 Ref C: 2024-04-15T07:00:33Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -164,12 +168,12 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uks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QcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Kz5qEGyBBXHpsft98MWxEjBSJenZKJ1zXc03jgR922DZae0PBK_Uz3MxkyOPTpravuWc1U76bZeqReigRF11pPiEa8STN_D4PeZsChUV-Vvu_dqgEhmtJfA50JItNfXrWScmgoNIYIzhhh2Mee1ErDAe_352KIkaxLVHZn9qOKiWCatp02wYAgYXD6mpRIe3tmg_NHhKBuV5BvcNsFRoZfGVAW9UvUl-ow7XMnoGjNoUrZvemY_Kbw3jEIPfBdEdf3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11?api-version=2024-05-01-preview&t=638487612228153034&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDY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WU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=DnX8CoHZMdiVQfC4T-bCEp0g6KFO0lR6FS6GsWXlGSQ8o0ECJAKe2fu9friFvLKdTNa_xZOHU6qq-pAEWr7bhojunoVN7uXmn365dJCz6W4bv42KI466iOkizy2xYZ0lo45ccuAxh5XiB74x76yrGyWqMwiszEShTQPt6kmvo-ylXObl0zlI4ts6r6JhxhydxCoIhrus6UfTvG69bKrB8Ohuc7pKz-Cl-L3pLafifIpG42T-Fas01pR5K0Ky7V0CdNX9G2BAOPW2sJ4MfhT5i0Hl1TZK9wGGGkawgxtTf9fYQvMMTwIart0LoRCh9zMQ_bCj-ew0ynZcNIaIAT3_lQ&h=gkiST4mTeHJ8bUOZngewPQ7Bd-wpDp7UHRspLp36Udk response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50","name":"2f4157ca-6d29-4dd1-aa7a-66bc04058f50","status":"Running","startTime":"2024-01-18T03:17:57.0717575Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","name":"f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","status":"Running","startTime":"2024-04-15T07:00:22.6905665Z"}' headers: cache-control: - no-cache @@ -178,7 +182,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:17 GMT + - Mon, 15 Apr 2024 07:00:44 GMT expires: - '-1' pragma: @@ -187,14 +191,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7E6B21AF5A85435AA61650214614AF62 Ref B: MAA201060513027 Ref C: 2024-04-15T07:00:44Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -212,12 +216,12 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50?api-version=2024-01-01-preview&t=638411446771846712&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvG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wYAgYXD6mpRIe3tmg_NHhKBuV5BvcNsFRoZfGVAW9UvUl-ow7XMnoGjNoUrZvemY_Kbw3jEIPfBdEdf3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11?api-version=2024-05-01-preview&t=638487612228153034&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgj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ceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50","name":"2f4157ca-6d29-4dd1-aa7a-66bc04058f50","status":"Running","startTime":"2024-01-18T03:17:57.0717575Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","name":"f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","status":"Running","startTime":"2024-04-15T07:00:22.6905665Z"}' headers: cache-control: - no-cache @@ -226,7 +230,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:28 GMT + - Mon, 15 Apr 2024 07:00:55 GMT expires: - '-1' pragma: @@ -235,14 +239,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 2C2CE04615D741C0AB7BAB988AE85C3E Ref B: MAA201060513027 Ref C: 2024-04-15T07:00:55Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -260,21 +264,21 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca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ZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Kz5qEGyBBXHpsft98MWxEjBSJenZKJ1zXc03jgR922DZae0PBK_Uz3MxkyOPTpravuWc1U76bZeqReigRF11pPiEa8STN_D4PeZsChUV-Vvu_dqgEhmtJfA50JItNfXrWScmgoNIYIzhhh2Mee1ErDAe_352KIkaxLVHZn9qOKiWCatp02wYAgYXD6mpRIe3tmg_NHhKBuV5BvcNsFRoZfGVAW9UvUl-ow7XMnoGjNoUrZvemY_Kbw3jEIPfBdEdf3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11?api-version=2024-05-01-preview&t=638487612228153034&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcN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t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=DnX8CoHZMdiVQfC4T-bCEp0g6KFO0lR6FS6GsWXlGSQ8o0ECJAKe2fu9friFvLKdTNa_xZOHU6qq-pAEWr7bhojunoVN7uXmn365dJCz6W4bv42KI466iOkizy2xYZ0lo45ccuAxh5XiB74x76yrGyWqMwiszEShTQPt6kmvo-ylXObl0zlI4ts6r6JhxhydxCoIhrus6UfTvG69bKrB8Ohuc7pKz-Cl-L3pLafifIpG42T-Fas01pR5K0Ky7V0CdNX9G2BAOPW2sJ4MfhT5i0Hl1TZK9wGGGkawgxtTf9fYQvMMTwIart0LoRCh9zMQ_bCj-ew0ynZcNIaIAT3_lQ&h=gkiST4mTeHJ8bUOZngewPQ7Bd-wpDp7UHRspLp36Udk response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50","name":"2f4157ca-6d29-4dd1-aa7a-66bc04058f50","status":"Running","startTime":"2024-01-18T03:17:57.0717575Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","name":"f2e51d6c-50e2-4bb9-ac76-6e1d91e3ec11","status":"Succeeded","startTime":"2024-04-15T07:00:22.6905665Z","endTime":"2024-04-15T07:01:06.3176512Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '371' content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:39 GMT + - Mon, 15 Apr 2024 07:01:06 GMT expires: - '-1' pragma: @@ -283,14 +287,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 37ACCC58873144088C115551F3EB3782 Ref B: MAA201060513027 Ref C: 2024-04-15T07:01:06Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -308,21 +312,21 @@ interactions: ParameterSetName: - -g -s --assign-endpoint User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50?api-version=2024-01-01-preview&t=638411446771846712&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgsp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D6mpRIe3tmg_NHhKBuV5BvcNsFRoZfGVAW9UvUl-ow7XMnoGjNoUrZvemY_Kbw3jEIPfBdEdf3_0HGTlGwJzKd4rOMxZIVnrtckfYF-H3PG2rUjUFaNu5v--0x6BbM9rYV15406RJFmIykWxedSUx-_4S8WROg&h=amziF2roXcgGhvT4Yjz5axVAgfV1rZsVbeCOzTufX-M + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/2f4157ca-6d29-4dd1-aa7a-66bc04058f50","name":"2f4157ca-6d29-4dd1-aa7a-66bc04058f50","status":"Succeeded","startTime":"2024-01-18T03:17:57.0717575Z","endTime":"2024-01-18T03:18:40.3819749Z"}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-f4c647bfc-74xvh","status":"Running"},{"name":"server-f4c647bfc-c7j8t","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:00:22.0340514Z"}}' headers: cache-control: - no-cache content-length: - - '371' + - '958' content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:49 GMT + - Mon, 15 Apr 2024 07:01:07 GMT expires: - '-1' pragma: @@ -331,14 +335,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: DAA5E9020A4541BA855E2A604C45B8E5 Ref B: MAA201060513027 Ref C: 2024-04-15T07:01:07Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -346,31 +350,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - spring dev-tool create + - spring application-live-view create Connection: - keep-alive ParameterSetName: - - -g -s --assign-endpoint + - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-bf788.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-584cdc8d8f-28x5g","status":"Running"},{"name":"server-584cdc8d8f-tlmdf","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:17:56.4189877Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"dafcaa27ecd040f78c59f92261884e23","networkProfile":{"outboundIPs":{"publicIPs":["4.158.76.123","4.158.77.98"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:56:16.624952Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:16.624952Z"}}' headers: cache-control: - no-cache content-length: - - '974' + - '930' content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:50 GMT + - Mon, 15 Apr 2024 07:01:09 GMT expires: - '-1' pragma: @@ -379,19 +383,21 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + x-msedge-ref: + - 'Ref A: EEC79173ADA54A3C976614D1454AFE66 Ref B: MAA201060513045 Ref C: 2024-04-15T07:01:09Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - application/json @@ -401,24 +407,82 @@ interactions: - spring application-live-view create Connection: - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g -s + User-Agent: + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default?api-version=2024-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Creating","components":[{"name":"app-live-view-connector","resourceRequests":{"cpu":"500m","memory":"512Mi","instanceCount":1},"instances":[]},{"name":"app-live-view-server","resourceRequests":{"cpu":"1","memory":"1Gi","instanceCount":1},"instances":[]}]},"type":"Microsoft.AppPlatform/Spring/applicationLiveViews","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:01:11.1144905Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:01:11.1144905Z"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250?api-version=2024-05-01-preview&t=638487612718957968&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBG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WY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=QfLcnRdoUoZAaneNqh6b9Zc1kJ3aEAsCwGpbRhE37d9q_qLtwMEpk9gk4qWSHKj4udBZI_fv4V9yFmfGRPxjLx9ICDU2mBt3E3D3yyypxPIllb_XmL0isF5rs1GgGMpa9l5BgU7dwafKO0CMQtFetFUr-uoR-8DgWXRyO3xc-XDkeEQep_vv_RBvZnGy-l6RipjgPGcrGhX5fxC9pcelxxNLlbx2PebacaKFs5dpKNckSWBtO30v-TursKfP_RjjRcM-S1WN_bqw-GlJz5G-ObKYHlXcF6XuBnkIFef9PEY2v47T66-C5jeIynPec3ZXobiaEAfIq9AnRFaiums0Uw&h=iVzmqmqN7wQ9cS-cW633plIaOJvShJL8UTbvaLWTZQo + cache-control: + - no-cache + content-length: + - '771' + content-type: + - application/json + date: + - Mon, 15 Apr 2024 07:01:11 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/557bc60f-db15-4cdd-9c3c-bc1f24106250/Spring/clitest000002?api-version=2024-05-01-preview&t=638487612718957968&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50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V8at-N2ovXTN7mh5iq9IlD4hx2WK08TNbedsH8pmbJHgdSevILMle5yfOaT0mJMibxsXRH6wCB5mqIUuD10HRlyqrLIIM4KrW7dh1jh-JoRLy7ZDy-51t3UPl0H83yIxRdkt55UbfcWSSWC4wPc8eEgaGSTPLE5OVbnWjKkgPn31ADlwgho25-GLbtR-tsa-OESnboplj6Efb7CCQ8Qv6-J6trw2ecK5mCIJDwX7GdG2wjhQ_fJZgV0Xh26KlS6x0pdBVLY8V3C10Q_Q45KB_huRk1ByxZOkBrhl0nIDmeCTz2JjHGLhx7iEFYbnTKWR463QwvSzlP5YA&h=mlp8tvqXWNC0YPW_dfpiueOdf7bGsOhYiUKq5MhoIVQ + pragma: + - no-cache + request-context: + - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-msedge-ref: + - 'Ref A: BB1AE5A744714CFF9A29D1E623A4D1C4 Ref B: MAA201060513025 Ref C: 2024-04-15T07:01:10Z' + x-rp-server-mvid: + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - spring application-live-view create + Connection: + - keep-alive ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250?api-version=2024-05-01-preview&t=638487612718957968&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAw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ggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=QfLcnRdoUoZAaneNqh6b9Zc1kJ3aEAsCwGpbRhE37d9q_qLtwMEpk9gk4qWSHKj4udBZI_fv4V9yFmfGRPxjLx9ICDU2mBt3E3D3yyypxPIllb_XmL0isF5rs1GgGMpa9l5BgU7dwafKO0CMQtFetFUr-uoR-8DgWXRyO3xc-XDkeEQep_vv_RBvZnGy-l6RipjgPGcrGhX5fxC9pcelxxNLlbx2PebacaKFs5dpKNckSWBtO30v-TursKfP_RjjRcM-S1WN_bqw-GlJz5G-ObKYHlXcF6XuBnkIFef9PEY2v47T66-C5jeIynPec3ZXobiaEAfIq9AnRFaiums0Uw&h=iVzmqmqN7wQ9cS-cW633plIaOJvShJL8UTbvaLWTZQo response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"75c52bf6356c480fb636e63a527b46f9","networkProfile":{"outboundIPs":{"publicIPs":["172.166.10.27","172.166.10.48"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:11:37.6555287Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:11:37.6555287Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250","name":"557bc60f-db15-4cdd-9c3c-bc1f24106250","status":"Running","startTime":"2024-04-15T07:01:11.7602265Z"}' headers: cache-control: - no-cache content-length: - - '949' + - '328' content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:51 GMT + - Mon, 15 Apr 2024 07:01:12 GMT expires: - '-1' pragma: @@ -427,21 +491,19 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + x-msedge-ref: + - 'Ref A: C87909F691B74FB8B604481CA865BB9C Ref B: MAA201060513025 Ref C: 2024-04-15T07:01:12Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: - body: '{}' + body: null headers: Accept: - application/json @@ -451,49 +513,43 @@ interactions: - spring application-live-view create Connection: - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default?api-version=2024-01-01-preview + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","components":[{"name":"app-live-view-connector","resourceRequests":{"cpu":"500m","memory":"512Mi","instanceCount":1},"instances":[]},{"name":"app-live-view-server","resourceRequests":{"cpu":"1","memory":"1Gi","instanceCount":1},"instances":[]}]},"type":"Microsoft.AppPlatform/Spring/applicationLiveViews","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:53.0863117Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:53.0863117Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-f4c647bfc-74xvh","status":"Running"},{"name":"server-f4c647bfc-c7j8t","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:00:22.0340514Z"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463?api-version=2024-01-01-preview&t=638411447339925894&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzA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DEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DEZ0BrQFRnzS2-iVJ5rzfIbWk2LiMxK19I0RgNwQYw1bvcAvoBwQq-V1W5B_X2zcGbN9Pcic0RkbLsEv9zWKTopHq2BefKmpOubCb5vkuzyFeAa0B9XXgxJ5aRwI8QKxIUuqq4DsFNT3fNkq6kHO0361PzEVRrL6RPhsiPFm3yl0hWZtpkceaYYGOkWptNcWj5g5znnppOxaOyiAvelkYlOqhVq3swEhpleL0LttFEIWcPDH_plmvmNEK12gheewevY7IJG3ACe5WF4F6NHnIRkarwRZmqYjhqLH0xVnlIFWsDi77mX5MzEcD2y7D3yR76NwH3Z9LYOFLsLLk_tdxA&h=My5VeCXp-dpSvqypAK_ms3uVJIucXLqj6KyVU56Sdgc cache-control: - no-cache content-length: - - '785' + - '958' content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:53 GMT + - Mon, 15 Apr 2024 07:01:13 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/3b32c4c8-70e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wIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=nG2a2lXBLi3BRmHWFSP1RXXE2uYhX4-Lh6dcBULXLGdhDcmP9ffBx2Fa1ehSHyqekp5vVH0P9Fxt5lHZmQHNXqO9eJogJ_Hj0VxZ-JbJgNyAngPmr7izRX-XjN8my5JqjMCSVpKi6nHStHrYIKszEPTcVL0yGOu4zBdxJ8DOz7iq-QksZuaVRv2MYbvVg_w7Mbhq_SWpoQZajIQYpiYv9iBSrgryVxgvmqSrstd9LfiCHzUTbQswjhg_d7b6sNu08YNW6to4-J5LAczR8R1ycgVFvnYB8TZ4DKTglhUn8Hv2twJcGqRgP6rMeLvdxabhmmaMlUvuVseYVEcOVYzeww&h=1_RCdmiPDU882lALLpE-iZDMP6k7EadkVJWiwqvKEoY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' + x-msedge-ref: + - 'Ref A: 65AB3095796B4487BE937F3B415C367D Ref B: MAA201060514037 Ref C: 2024-04-15T07:01:12Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -508,12 +564,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463?api-version=2024-01-01-preview&t=638411447339925894&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKw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UyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DEZ0BrQFRnzS2-iVJ5rzfIbWk2LiMxK19I0RgNwQYw1bvcAvoBwQq-V1W5B_X2zcGbN9Pcic0RkbLsEv9zWKTopHq2BefKmpOubCb5vkuzyFeAa0B9XXgxJ5aRwI8QKxIUuqq4DsFNT3fNkq6kHO0361PzEVRrL6RPhsiPFm3yl0hWZtpkceaYYGOkWptNcWj5g5znnppOxaOyiAvelkYlOqhVq3swEhpleL0LttFEIWcPDH_plmvmNEK12gheewevY7IJG3ACe5WF4F6NHnIRkarwRZmqYjhqLH0xVnlIFWsDi77mX5MzEcD2y7D3yR76NwH3Z9LYOFLsLLk_tdxA&h=My5VeCXp-dpSvqypAK_ms3uVJIucXLqj6KyVU56Sdgc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250?api-version=2024-05-01-preview&t=638487612718957968&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTU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AQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=QfLcnRdoUoZAaneNqh6b9Zc1kJ3aEAsCwGpbRhE37d9q_qLtwMEpk9gk4qWSHKj4udBZI_fv4V9yFmfGRPxjLx9ICDU2mBt3E3D3yyypxPIllb_XmL0isF5rs1GgGMpa9l5BgU7dwafKO0CMQtFetFUr-uoR-8DgWXRyO3xc-XDkeEQep_vv_RBvZnGy-l6RipjgPGcrGhX5fxC9pcelxxNLlbx2PebacaKFs5dpKNckSWBtO30v-TursKfP_RjjRcM-S1WN_bqw-GlJz5G-ObKYHlXcF6XuBnkIFef9PEY2v47T66-C5jeIynPec3ZXobiaEAfIq9AnRFaiums0Uw&h=iVzmqmqN7wQ9cS-cW633plIaOJvShJL8UTbvaLWTZQo response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463","name":"3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463","status":"Running","startTime":"2024-01-18T03:18:53.8046618Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250","name":"557bc60f-db15-4cdd-9c3c-bc1f24106250","status":"Running","startTime":"2024-04-15T07:01:11.7602265Z"}' headers: cache-control: - no-cache @@ -522,7 +578,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:18:53 GMT + - Mon, 15 Apr 2024 07:01:23 GMT expires: - '-1' pragma: @@ -531,14 +587,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 40E12AF816D540C282CC0E7023475441 Ref B: MAA201060514037 Ref C: 2024-04-15T07:01:22Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -556,12 +612,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463?api-version=2024-01-01-preview&t=638411447339925894&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQ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MVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DEZ0BrQFRnzS2-iVJ5rzfIbWk2LiMxK19I0RgNwQYw1bvcAvoBwQq-V1W5B_X2zcGbN9Pcic0RkbLsEv9zWKTopHq2BefKmpOubCb5vkuzyFeAa0B9XXgxJ5aRwI8QKxIUuqq4DsFNT3fNkq6kHO0361PzEVRrL6RPhsiPFm3yl0hWZtpkceaYYGOkWptNcWj5g5znnppOxaOyiAvelkYlOqhVq3swEhpleL0LttFEIWcPDH_plmvmNEK12gheewevY7IJG3ACe5WF4F6NHnIRkarwRZmqYjhqLH0xVnlIFWsDi77mX5MzEcD2y7D3yR76NwH3Z9LYOFLsLLk_tdxA&h=My5VeCXp-dpSvqypAK_ms3uVJIucXLqj6KyVU56Sdgc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250?api-version=2024-05-01-preview&t=638487612718957968&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXU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v_RBvZnGy-l6RipjgPGcrGhX5fxC9pcelxxNLlbx2PebacaKFs5dpKNckSWBtO30v-TursKfP_RjjRcM-S1WN_bqw-GlJz5G-ObKYHlXcF6XuBnkIFef9PEY2v47T66-C5jeIynPec3ZXobiaEAfIq9AnRFaiums0Uw&h=iVzmqmqN7wQ9cS-cW633plIaOJvShJL8UTbvaLWTZQo response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463","name":"3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463","status":"Running","startTime":"2024-01-18T03:18:53.8046618Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250","name":"557bc60f-db15-4cdd-9c3c-bc1f24106250","status":"Running","startTime":"2024-04-15T07:01:11.7602265Z"}' headers: cache-control: - no-cache @@ -570,7 +626,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:05 GMT + - Mon, 15 Apr 2024 07:01:34 GMT expires: - '-1' pragma: @@ -579,14 +635,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E378D45BB66D429CBEF59114E5D1EE63 Ref B: MAA201060514037 Ref C: 2024-04-15T07:01:33Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -604,12 +660,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463?api-version=2024-01-01-preview&t=638411447339925894&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgY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2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DEZ0BrQFRnzS2-iVJ5rzfIbWk2LiMxK19I0RgNwQYw1bvcAvoBwQq-V1W5B_X2zcGbN9Pcic0RkbLsEv9zWKTopHq2BefKmpOubCb5vkuzyFeAa0B9XXgxJ5aRwI8QKxIUuqq4DsFNT3fNkq6kHO0361PzEVRrL6RPhsiPFm3yl0hWZtpkceaYYGOkWptNcWj5g5znnppOxaOyiAvelkYlOqhVq3swEhpleL0LttFEIWcPDH_plmvmNEK12gheewevY7IJG3ACe5WF4F6NHnIRkarwRZmqYjhqLH0xVnlIFWsDi77mX5MzEcD2y7D3yR76NwH3Z9LYOFLsLLk_tdxA&h=My5VeCXp-dpSvqypAK_ms3uVJIucXLqj6KyVU56Sdgc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest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Miiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=QfLcnRdoUoZAaneNqh6b9Zc1kJ3aEAsCwGpbRhE37d9q_qLtwMEpk9gk4qWSHKj4udBZI_fv4V9yFmfGRPxjLx9ICDU2mBt3E3D3yyypxPIllb_XmL0isF5rs1GgGMpa9l5BgU7dwafKO0CMQtFetFUr-uoR-8DgWXRyO3xc-XDkeEQep_vv_RBvZnGy-l6RipjgPGcrGhX5fxC9pcelxxNLlbx2PebacaKFs5dpKNckSWBtO30v-TursKfP_RjjRcM-S1WN_bqw-GlJz5G-ObKYHlXcF6XuBnkIFef9PEY2v47T66-C5jeIynPec3ZXobiaEAfIq9AnRFaiums0Uw&h=iVzmqmqN7wQ9cS-cW633plIaOJvShJL8UTbvaLWTZQo response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463","name":"3b32c4c8-70e5-41f9-9a6c-5d6f9d2f2463","status":"Succeeded","startTime":"2024-01-18T03:18:53.8046618Z","endTime":"2024-01-18T03:19:14.6282293Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/557bc60f-db15-4cdd-9c3c-bc1f24106250","name":"557bc60f-db15-4cdd-9c3c-bc1f24106250","status":"Succeeded","startTime":"2024-04-15T07:01:11.7602265Z","endTime":"2024-04-15T07:01:42.9145817Z"}' headers: cache-control: - no-cache @@ -618,7 +674,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:15 GMT + - Mon, 15 Apr 2024 07:01:44 GMT expires: - '-1' pragma: @@ -627,14 +683,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: AFD598FD62CD47088B5F2647449E2B12 Ref B: MAA201060514037 Ref C: 2024-04-15T07:01:44Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -652,21 +708,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","components":[{"name":"app-live-view-connector","resourceRequests":{"cpu":"500m","memory":"512Mi","instanceCount":1},"instances":[{"name":"application-live-view-connector-846f8fbfc9-82zpv","status":"Running"}]},{"name":"app-live-view-server","resourceRequests":{"cpu":"1","memory":"1Gi","instanceCount":1},"instances":[{"name":"application-live-view-server-6c9487c54b-57qvm","status":"Running"}]}]},"type":"Microsoft.AppPlatform/Spring/applicationLiveViews","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:18:53.0863117Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:18:53.0863117Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","components":[{"name":"app-live-view-connector","resourceRequests":{"cpu":"500m","memory":"512Mi","instanceCount":1},"instances":[{"name":"application-live-view-connector-848d67d7c5-4t9w7","status":"Running"}]},{"name":"app-live-view-server","resourceRequests":{"cpu":"1","memory":"1Gi","instanceCount":1},"instances":[{"name":"application-live-view-server-548468f9b7-7w8q2","status":"Running"}]}]},"type":"Microsoft.AppPlatform/Spring/applicationLiveViews","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:01:11.1144905Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:01:11.1144905Z"}}' headers: cache-control: - no-cache content-length: - - '939' + - '925' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:15 GMT + - Mon, 15 Apr 2024 07:01:46 GMT expires: - '-1' pragma: @@ -675,14 +731,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8148C967568E49DC87882BFD10600082 Ref B: MAA201060514037 Ref C: 2024-04-15T07:01:45Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -700,21 +756,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"75c52bf6356c480fb636e63a527b46f9","networkProfile":{"outboundIPs":{"publicIPs":["172.166.10.27","172.166.10.48"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:11:37.6555287Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:11:37.6555287Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"dafcaa27ecd040f78c59f92261884e23","networkProfile":{"outboundIPs":{"publicIPs":["4.158.76.123","4.158.77.98"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:56:16.624952Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:16.624952Z"}}' headers: cache-control: - no-cache content-length: - - '949' + - '930' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:20 GMT + - Mon, 15 Apr 2024 07:01:49 GMT expires: - '-1' pragma: @@ -723,16 +779,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 3404149DF0264580A5B476577B0211DF Ref B: MAA201060513027 Ref C: 2024-04-15T07:01:49Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -750,21 +806,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-bf788.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-584cdc8d8f-28x5g","status":"Running"},{"name":"server-584cdc8d8f-tlmdf","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:17:56.4189877Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-f4c647bfc-74xvh","status":"Running"},{"name":"server-f4c647bfc-c7j8t","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:00:22.0340514Z"}}' headers: cache-control: - no-cache content-length: - - '974' + - '958' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:21 GMT + - Mon, 15 Apr 2024 07:01:50 GMT expires: - '-1' pragma: @@ -773,14 +829,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8BDA5DE1960F446C8B95F3A97E4436B3 Ref B: MAA201060515045 Ref C: 2024-04-15T07:01:51Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -798,21 +854,21 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"75c52bf6356c480fb636e63a527b46f9","networkProfile":{"outboundIPs":{"publicIPs":["172.166.10.27","172.166.10.48"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:11:37.6555287Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:11:37.6555287Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"dafcaa27ecd040f78c59f92261884e23","networkProfile":{"outboundIPs":{"publicIPs":["4.158.76.123","4.158.77.98"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:56:16.624952Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:16.624952Z"}}' headers: cache-control: - no-cache content-length: - - '949' + - '930' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:23 GMT + - Mon, 15 Apr 2024 07:01:52 GMT expires: - '-1' pragma: @@ -821,16 +877,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 338E80A7D3D04D69B363F378070B7E40 Ref B: MAA201060513039 Ref C: 2024-04-15T07:01:52Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -850,37 +906,41 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationLiveViews/default?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda?api-version=2024-01-01-preview&t=638411447659466687&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASI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s=jqY2ygyTmi8ws5tQ99Xb7NjDLLgOsBCiS4WiFNnyXPD2_yRP03RmF2GLvg9WS8NZUMmBN_IF-IPiE2u6lZyodHsJNCqolkgoy8c1AZdqdt6pv2rqj6jnBzG7oPJ3WTPvPNMxI9RMqb3sYRRWCEBi_8G2zV_x38TfjwcGnzIwuUT0jUo07gQdgymnUok3H_A0pa0tM-g9KxI8MfV8E4lpsQY33fV87n5l87vFrrjdY8_ng2IEAWkdImhDFFifQUKlynRb64Y2b2HODKTu49_Uax4oU_QEmdL-ILmzorAfxKTJ_dTnYDI8rBQvNsElhNPzzAQmmLCVtwsQ3-PcsJ8LBQ&h=5qb7VnCKU0om4pdynJhnCoO0AMRzZIxcj0IVCrZaUCA + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04?api-version=2024-05-01-preview&t=638487613153057616&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt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MhmmcOT8ADtAY5kPGIayjNyjaOwviGiq6SO0A2VsbdeVR_2Vjg9YtyOfKkRIaHzlb0iEuICO1J6cjw&h=Z-KFYpgoIHep44pPw19hwGuuW6eEZIz8PVbfxUhkG0Y cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 03:19:25 GMT + - Mon, 15 Apr 2024 07:01:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/5da835ec-5d49-4c3e-8dbf-6516befc1cda/Spring/clitest000002?api-version=2024-01-01-preview&t=638411447659622939&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBg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com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/3187e299-f5bf-478f-b68d-0046ec145b04/Spring/clitest000002?api-version=2024-05-01-preview&t=638487613153057616&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMv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BgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=lNQZ6B6UvhdfI6EQuju7Flbbd8akiNhtrAcOXYB7C6HbHMy2MRqhMFsTGhmkxRyADORQER3JdPyY66prTeW5t_nZnIGNzRFXLYH7enbahn7QfXyh7cQTgtkgQfktbsODgt4EfWSxEzX0H_6hc8jl7heSs8QeM-uiMdODFP0GSEAZjkXkMBjiB8VtlPfgCv97o-bbwW1A1KManWjQn2auEFLIES8GNEE9pVeI7KAoU2mpSj2GO2eLrZaU0gp0GE5qYdw5_Ic6j48HrYGmBRnH28zPs62GEv9D-z-MrrW6hSFGxvziF7-lUNSxz7Tk-TvoVFakjT8Pnok1Un1C0qs7yA&h=cyaUe8bIB0yYw--6-y8tz_D1NsJUR4bOn4ppz8C678k pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' + x-msedge-ref: + - 'Ref A: 625973B344BC44D4BE7819F181914E4F Ref B: MAA201060513035 Ref C: 2024-04-15T07:01:54Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -898,12 +958,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda?api-version=2024-01-01-preview&t=638411447659466687&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjc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scriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04?api-version=2024-05-01-preview&t=638487613153057616&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQk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NVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=aeTeETeVFpNp0OibYmrrfVfokFA-SSHztcMUETU4wSkNmAWLlaEojLaovR698xDOhaT6ME1plUaPu50bGjqi_7ygSamz2S1F8ay23Nxq5Iv0t2WymTRo8ZTSi9wjo8Opq6R1QS5URlte9vBkwOMOIjW5s9o6L5IygVsckXh8FpgxqJcDxX6g-7hH3w7sCRDZSz9WQUxFLCW_fd2aneC5OF41YB7PLLPVnE-VpXinwJq1Qq2W8b3QaJ8i_V56Q5NyXbOyD3LfMhmmcOT8ADtAY5kPGIayjNyjaOwviGiq6SO0A2VsbdeVR_2Vjg9YtyOfKkRIaHzlb0iEuICO1J6cjw&h=Z-KFYpgoIHep44pPw19hwGuuW6eEZIz8PVbfxUhkG0Y response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda","name":"5da835ec-5d49-4c3e-8dbf-6516befc1cda","status":"Running","startTime":"2024-01-18T03:19:25.7616609Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04","name":"3187e299-f5bf-478f-b68d-0046ec145b04","status":"Running","startTime":"2024-04-15T07:01:55.1667372Z"}' headers: cache-control: - no-cache @@ -912,7 +972,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:25 GMT + - Mon, 15 Apr 2024 07:01:56 GMT expires: - '-1' pragma: @@ -921,14 +981,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 0EBD36CFD8E9496A9B236E66F4971561 Ref B: MAA201060513035 Ref C: 2024-04-15T07:01:55Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -946,21 +1006,21 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-bf788.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-584cdc8d8f-28x5g","status":"Running"},{"name":"server-584cdc8d8f-tlmdf","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:17:56.4189877Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-f4c647bfc-74xvh","status":"Running"},{"name":"server-f4c647bfc-c7j8t","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Enabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:00:22.0340514Z"}}' headers: cache-control: - no-cache content-length: - - '974' + - '958' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:26 GMT + - Mon, 15 Apr 2024 07:01:56 GMT expires: - '-1' pragma: @@ -969,14 +1029,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D843BFF293DF4FDABD30B020EEDE38E6 Ref B: MAA201060514039 Ref C: 2024-04-15T07:01:55Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -999,39 +1059,43 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Updating","public":true,"url":"clitest000002-devtoolportal-bf788.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Disabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:19:27.6608248Z"}}' + string: '{"properties":{"provisioningState":"Updating","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2}}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Disabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:01:57.4242436Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_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bydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBB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3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=nv80yge_O1C8kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ cache-control: - no-cache content-length: - - '852' + - '838' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:27 GMT + - Mon, 15 Apr 2024 07:01:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/a672183d-094d-458a-83cd-a9621bb548b8/Spring/clitest000002?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ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PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LWq9i65mr48ZzT4_7AgAjPvc1l3K4w2OVRV683UDFymQ3Y2Zrm4F3xxlnONl6MNGiuQ0llz4wGlnLfO45owWNqy5V4Ube0McsIbvJMvkwEZo6ZFf_idfJM4uB_OchqXmJ0LVQPz0M_OpHzMTFeJbo12euLr5JQcsaLbjSV7zUDnySwlXbbMTbtR2h3NheG3HRCNI3RChy8fQkBRV8IhGLLgqCQGbsAbiL6wFZz4t43hytoJv2pJHjyPf85XzWD3LiFce6b4Kvyjy0Dmk0GrJIA1h9r6MlakrrwBKPxuSB6V2HwQRxWfhGFP9YKDF_CJXK-qXVsMMomgesW0U5jQ0Ng&h=KLbNYJSVYDrLaDxJCjvdfLkL-AI5xZCFGLUnoLJWHMc + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/514cd85d-ef3d-441a-94cc-5c418b7dce7c/Spring/clitest000002?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPy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Da3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=rIfUA6M1XLzeg-VUL6Nq00ERlOH2Uib7dJCeb6MmTPIro-Qrl74b615i5RJ1IEmjpbAzSnaSUbFIzakZ53L5u1PZDSDUtM8UhOQzfeoE6DcIpvP-kBNrArBAJv0cBPj1sCakNq6kCL-_gyvcZm_PhiDISFhkMD4HAXf43qm43Gc3XUWAFh21vowyZd3H1s7TGAOM6OVugG1Y92wTokFgYYawFF1CdEM2ARka2VePokkoM-qgNXs04dTEJgZY2xrfpRXFUJdBgBWY4QVHR-sElwuxAExWfnEz9ZR0__DaLWGxiF8HM-PRVK4RvI62E_ClbX6LSCVUku3ULUHmwvHFAw&h=Q4nPx0BbLGfrdAkNUt1Se3v0Sg6touRbRlleyBVMctI pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 094B3DE3E0624E87A68D8F43F86BC44F Ref B: MAA201060514039 Ref C: 2024-04-15T07:01:56Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -1049,12 +1113,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTU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ileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=pP8OX5jgaeoYHGAOxFS9_LyJIliKqDtdiyJIrKdlRrvzOWl2nU7GhnWNaTJiJ7bER3kpfB5LdK7keaDQC8Rt2dZyUrFcY59atrFNKfHZQ_j6vQHZkkU3A3W8JA6uJx6ov0Jcq5dOV3MJVxLDcNFGqj9fJaHrSqejLg7T4jNXqEIIyvtb3Y1HIV9NRoB4CPNoClQ9JFVuImIIpXHI9Fs6pOZzIRixuuaX4cJRB_Y-xY5WdqWjr7CbydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGR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QrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=nv80yge_O1C8kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Running","startTime":"2024-01-18T03:19:27.9482289Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c","name":"514cd85d-ef3d-441a-94cc-5c418b7dce7c","status":"Running","startTime":"2024-04-15T07:01:58.1533362Z"}' headers: cache-control: - no-cache @@ -1063,7 +1127,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:27 GMT + - Mon, 15 Apr 2024 07:01:59 GMT expires: - '-1' pragma: @@ -1072,14 +1136,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B486092D348841DF9F6B6B40FFA41A63 Ref B: MAA201060514039 Ref C: 2024-04-15T07:01:58Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1097,12 +1161,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda?api-version=2024-01-01-preview&t=638411447659466687&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvze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YRRWCEBi_8G2zV_x38TfjwcGnzIwuUT0jUo07gQdgymnUok3H_A0pa0tM-g9KxI8MfV8E4lpsQY33fV87n5l87vFrrjdY8_ng2IEAWkdImhDFFifQUKlynRb64Y2b2HODKTu49_Uax4oU_QEmdL-ILmzorAfxKTJ_dTnYDI8rBQvNsElhNPzzAQmmLCVtwsQ3-PcsJ8LBQ&h=5qb7VnCKU0om4pdynJhnCoO0AMRzZIxcj0IVCrZaUCA + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04?api-version=2024-05-01-preview&t=638487613153057616&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf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/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda","name":"5da835ec-5d49-4c3e-8dbf-6516befc1cda","status":"Running","startTime":"2024-01-18T03:19:25.7616609Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04","name":"3187e299-f5bf-478f-b68d-0046ec145b04","status":"Running","startTime":"2024-04-15T07:01:55.1667372Z"}' headers: cache-control: - no-cache @@ -1111,7 +1175,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:36 GMT + - Mon, 15 Apr 2024 07:02:07 GMT expires: - '-1' pragma: @@ -1120,14 +1184,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B7DC1366542E470F8A273F25FDB1F540 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:06Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1145,12 +1209,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000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wDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=pP8OX5jgaeoYHGAOxFS9_LyJIliKqDtdiyJIrKdlRrvzOWl2nU7GhnWNaTJiJ7bER3kpfB5LdK7keaDQC8Rt2dZyUrFcY59atrFNKfHZQ_j6vQHZkkU3A3W8JA6uJx6ov0Jcq5dOV3MJVxLDcNFGqj9fJaHrSqejLg7T4jNXqEIIyvtb3Y1HIV9NRoB4CPNoClQ9JFVuImIIpXHI9Fs6pOZzIRixuuaX4cJRB_Y-xY5WdqWjr7CbydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcN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XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=nv80yge_O1C8kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Running","startTime":"2024-01-18T03:19:27.9482289Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c","name":"514cd85d-ef3d-441a-94cc-5c418b7dce7c","status":"Running","startTime":"2024-04-15T07:01:58.1533362Z"}' headers: cache-control: - no-cache @@ -1159,7 +1223,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:38 GMT + - Mon, 15 Apr 2024 07:02:09 GMT expires: - '-1' pragma: @@ -1168,14 +1232,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 58199D9EA21A4D028B6CF85E69EBF8D3 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:09Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1193,21 +1257,21 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda?api-version=2024-01-01-preview&t=638411447659466687&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhj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3H_A0pa0tM-g9KxI8MfV8E4lpsQY33fV87n5l87vFrrjdY8_ng2IEAWkdImhDFFifQUKlynRb64Y2b2HODKTu49_Uax4oU_QEmdL-ILmzorAfxKTJ_dTnYDI8rBQvNsElhNPzzAQmmLCVtwsQ3-PcsJ8LBQ&h=5qb7VnCKU0om4pdynJhnCoO0AMRzZIxcj0IVCrZaUCA + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04?api-version=2024-05-01-preview&t=638487613153057616&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCg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001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/5da835ec-5d49-4c3e-8dbf-6516befc1cda","name":"5da835ec-5d49-4c3e-8dbf-6516befc1cda","status":"Succeeded","startTime":"2024-01-18T03:19:25.7616609Z","endTime":"2024-01-18T03:19:46.0576684Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04","name":"3187e299-f5bf-478f-b68d-0046ec145b04","status":"Running","startTime":"2024-04-15T07:01:55.1667372Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '328' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:46 GMT + - Mon, 15 Apr 2024 07:02:18 GMT expires: - '-1' pragma: @@ -1216,14 +1280,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5474C913B2FC465880A60B72B61127C6 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:17Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1241,12 +1305,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621b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wStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=pP8OX5jgaeoYHGAOxFS9_LyJIliKqDtdiyJIrKdlRrvzOWl2nU7GhnWNaTJiJ7bER3kpfB5LdK7keaDQC8Rt2dZyUrFcY59atrFNKfHZQ_j6vQHZkkU3A3W8JA6uJx6ov0Jcq5dOV3MJVxLDcNFGqj9fJaHrSqejLg7T4jNXqEIIyvtb3Y1HIV9NRoB4CPNoClQ9JFVuImIIpXHI9Fs6pOZzIRixuuaX4cJRB_Y-xY5WdqWjr7CbydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwM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clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=nv80yge_O1C8kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Running","startTime":"2024-01-18T03:19:27.9482289Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c","name":"514cd85d-ef3d-441a-94cc-5c418b7dce7c","status":"Running","startTime":"2024-04-15T07:01:58.1533362Z"}' headers: cache-control: - no-cache @@ -1255,7 +1319,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:48 GMT + - Mon, 15 Apr 2024 07:02:20 GMT expires: - '-1' pragma: @@ -1264,14 +1328,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 98E67347CD2A4749BB7850C80E0866BF Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:20Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1289,21 +1353,21 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9W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IRixuuaX4cJRB_Y-xY5WdqWjr7CbydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04?api-version=2024-05-01-preview&t=638487613153057616&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQY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UlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=aeTeETeVFpNp0OibYmrrfVfokFA-SSHztcMUETU4wSkNmAWLlaEojLaovR698xDOhaT6ME1plUaPu50bGjqi_7ygSamz2S1F8ay23Nxq5Iv0t2WymTRo8ZTSi9wjo8Opq6R1QS5URlte9vBkwOMOIjW5s9o6L5IygVsckXh8FpgxqJcDxX6g-7hH3w7sCRDZSz9WQUxFLCW_fd2aneC5OF41YB7PLLPVnE-VpXinwJq1Qq2W8b3QaJ8i_V56Q5NyXbOyD3LfMhmmcOT8ADtAY5kPGIayjNyjaOwviGiq6SO0A2VsbdeVR_2Vjg9YtyOfKkRIaHzlb0iEuICO1J6cjw&h=Z-KFYpgoIHep44pPw19hwGuuW6eEZIz8PVbfxUhkG0Y response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Running","startTime":"2024-01-18T03:19:27.9482289Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/3187e299-f5bf-478f-b68d-0046ec145b04","name":"3187e299-f5bf-478f-b68d-0046ec145b04","status":"Succeeded","startTime":"2024-04-15T07:01:55.1667372Z","endTime":"2024-04-15T07:02:25.4742266Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '371' content-type: - application/json date: - - Thu, 18 Jan 2024 03:19:59 GMT + - Mon, 15 Apr 2024 07:02:28 GMT expires: - '-1' pragma: @@ -1312,14 +1376,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F2C506BD708344708A154543D8155959 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:28Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1337,12 +1401,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIB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3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=pP8OX5jgaeoYHGAOxFS9_LyJIliKqDtdiyJIrKdlRrvzOWl2nU7GhnWNaTJiJ7bER3kpfB5LdK7keaDQC8Rt2dZyUrFcY59atrFNKfHZQ_j6vQHZkkU3A3W8JA6uJx6ov0Jcq5dOV3MJVxLDcNFGqj9fJaHrSqejLg7T4jNXqEIIyvtb3Y1HIV9NRoB4CPNoClQ9JFVuImIIpXHI9Fs6pOZzIRixuuaX4cJRB_Y-xY5WdqWjr7CbydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlv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N5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=nv80yge_O1C8kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Running","startTime":"2024-01-18T03:19:27.9482289Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c","name":"514cd85d-ef3d-441a-94cc-5c418b7dce7c","status":"Running","startTime":"2024-04-15T07:01:58.1533362Z"}' headers: cache-control: - no-cache @@ -1351,7 +1415,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:20:09 GMT + - Mon, 15 Apr 2024 07:02:31 GMT expires: - '-1' pragma: @@ -1360,14 +1424,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5CB66EA6D7734BB5BBEBA8173C419395 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:31Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1385,12 +1449,12 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKh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5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDY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Y3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=nv80yge_O1C8kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Running","startTime":"2024-01-18T03:19:27.9482289Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c","name":"514cd85d-ef3d-441a-94cc-5c418b7dce7c","status":"Running","startTime":"2024-04-15T07:01:58.1533362Z"}' headers: cache-control: - no-cache @@ -1399,7 +1463,7 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:20:19 GMT + - Mon, 15 Apr 2024 07:02:42 GMT expires: - '-1' pragma: @@ -1408,14 +1472,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7ADFD2DC1D7F4924AEBF0D21543B3B61 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:41Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1433,21 +1497,21 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8?api-version=2024-01-01-preview&t=638411447680827112&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BA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3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=pP8OX5jgaeoYHGAOxFS9_LyJIliKqDtdiyJIrKdlRrvzOWl2nU7GhnWNaTJiJ7bER3kpfB5LdK7keaDQC8Rt2dZyUrFcY59atrFNKfHZQ_j6vQHZkkU3A3W8JA6uJx6ov0Jcq5dOV3MJVxLDcNFGqj9fJaHrSqejLg7T4jNXqEIIyvtb3Y1HIV9NRoB4CPNoClQ9JFVuImIIpXHI9Fs6pOZzIRixuuaX4cJRB_Y-xY5WdqWjr7CbydlQaL_U3s3AMVg5zHxGms2enxYCF1IEQIK6Wvp7HONEW89DztAyHPGVEQ16tg0PKHohsUDy8BR6jd05ipxQIJ5a8LEv1t71Gg&h=46GKaDCrqZlM0QnZUXayp_TN27-b5SossqwDn71gLrc + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c?api-version=2024-05-01-preview&t=638487613182836413&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50L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kixr0LQIBGQYQ9mqrosH-ibbh0I1pnKIKwX7gyT9pdb3A4HrbEhpm6BNHGcQoDC-56XZjHJCrwU4y5PR5DWtjAGy9p8PctRpM4fUP7TH4xme18D6JxsYJVG1vaTq4__0F3_q77HGofysolDAvgpowdbkAmRlRK06ekugm2bSnE_H1sS5aL7SIELO4dzZd5-gZQmgJd0yn8G9bmZc4ZJRo_RXaXFQeg-gQMAzgKoe0bXw-RJs1Ir5vqO3JWG9OxunI4QVnns0JWdju_1RITxLcaDDMghva_cta5BKlW6eKmypk9DrZgXH2MtPt2QnrpXc9d94FDf8YA&h=vDWj5wd8OXBAXscOUA7zoCTBQ5ZXWHbVpIqAqA2kzWQ response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/a672183d-094d-458a-83cd-a9621bb548b8","name":"a672183d-094d-458a-83cd-a9621bb548b8","status":"Succeeded","startTime":"2024-01-18T03:19:27.9482289Z","endTime":"2024-01-18T03:20:29.6229503Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/514cd85d-ef3d-441a-94cc-5c418b7dce7c","name":"514cd85d-ef3d-441a-94cc-5c418b7dce7c","status":"Succeeded","startTime":"2024-04-15T07:01:58.1533362Z","endTime":"2024-04-15T07:02:50.760567Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Thu, 18 Jan 2024 03:20:30 GMT + - Mon, 15 Apr 2024 07:02:53 GMT expires: - '-1' pragma: @@ -1456,14 +1520,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8E1495B391C647D69945C9EED3FE02A8 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:52Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1481,21 +1545,21 @@ interactions: ParameterSetName: - -g -s -y User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-bf788.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-584cdc8d8f-tlmdf","status":"Running"},{"name":"server-5d56d9755d-bgs9r","status":"Running"},{"name":"server-5d56d9755d-fqsq9","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Disabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:19:27.6608248Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7f8df697f4-l6xg8","status":"Running"},{"name":"server-7f8df697f4-prglq","status":"Running"},{"name":"server-f4c647bfc-c7j8t","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Disabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:01:57.4242436Z"}}' headers: cache-control: - no-cache content-length: - - '1029' + - '1014' content-type: - application/json date: - - Thu, 18 Jan 2024 03:20:30 GMT + - Mon, 15 Apr 2024 07:02:54 GMT expires: - '-1' pragma: @@ -1504,14 +1568,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 3D163AE6B7454E31BBDC7CBFB2E45AE9 Ref B: MAA201060514039 Ref C: 2024-04-15T07:02:53Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1529,21 +1593,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"75c52bf6356c480fb636e63a527b46f9","networkProfile":{"outboundIPs":{"publicIPs":["172.166.10.27","172.166.10.48"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:11:37.6555287Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:11:37.6555287Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"dafcaa27ecd040f78c59f92261884e23","networkProfile":{"outboundIPs":{"publicIPs":["4.158.76.123","4.158.77.98"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T06:56:16.624952Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:56:16.624952Z"}}' headers: cache-control: - no-cache content-length: - - '949' + - '930' content-type: - application/json date: - - Thu, 18 Jan 2024 03:20:34 GMT + - Mon, 15 Apr 2024 07:02:59 GMT expires: - '-1' pragma: @@ -1552,16 +1616,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: C150451DBDAC4C099877C6B8939AA985 Ref B: MAA201060513011 Ref C: 2024-04-15T07:02:59Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1579,21 +1643,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/DevToolPortals/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-bf788.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-584cdc8d8f-tlmdf","status":"Running"},{"name":"server-5d56d9755d-bgs9r","status":"Running"},{"name":"server-5d56d9755d-fqsq9","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Disabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T03:17:56.4189877Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T03:19:27.6608248Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","public":true,"url":"clitest000002-devtoolportal-52135.svc.azuremicroservices.io","components":[{"name":"server","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"server-7f8df697f4-l6xg8","status":"Running"},{"name":"server-7f8df697f4-prglq","status":"Running"},{"name":"server-f4c647bfc-c7j8t","status":"Running"}]}],"features":{"applicationAccelerator":{"state":"Enabled","route":"create"},"applicationLiveView":{"state":"Disabled","route":"app-live-view"}}},"type":"Microsoft.AppPlatform/Spring/devToolPortals","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/devToolPortals/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-15T07:00:22.0340514Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T07:01:57.4242436Z"}}' headers: cache-control: - no-cache content-length: - - '1029' + - '1014' content-type: - application/json date: - - Thu, 18 Jan 2024 03:20:34 GMT + - Mon, 15 Apr 2024 07:03:00 GMT expires: - '-1' pragma: @@ -1602,14 +1666,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 60882195548F4B05954F9B1CB334B31C Ref B: MAA201060513039 Ref C: 2024-04-15T07:03:00Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_load_public_cert_to_app.yaml b/src/spring/azext_spring/tests/latest/recordings/test_load_public_cert_to_app.yaml index 06dd1b871f7..9cd7e046f68 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_load_public_cert_to_app.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_load_public_cert_to_app.yaml @@ -19,13 +19,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","type":"ContentCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","name":"digi-cert","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:06.3639286Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:06.3639286Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -37,7 +37,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/a7bfbcad-fb49-40a4-8fcc-25519c992638/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/a7bfbcad-fb49-40a4-8fcc-25519c992638/Spring/clitest000002?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -69,7 +69,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638","name":"a7bfbcad-fb49-40a4-8fcc-25519c992638","status":"Running","startTime":"2023-04-14T03:25:07.7245134Z"}' @@ -117,7 +117,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/a7bfbcad-fb49-40a4-8fcc-25519c992638","name":"a7bfbcad-fb49-40a4-8fcc-25519c992638","status":"Succeeded","startTime":"2023-04-14T03:25:07.7245134Z","endTime":"2023-04-14T03:25:14.9270075Z"}' @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"a8985d3a65e5e5c4b2d7d66d40c6dd2fb19c5436","issuer":"DigiCert @@ -219,13 +219,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Creating","type":"ContentCertificate"},"type":"Microsoft.AppPlatform/Spring/certificates","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","name":"balti-cert","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:20.4136958Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:20.4136958Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -237,7 +237,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/d0c10ca0-05b3-4617-94c9-364da8de53d5/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/d0c10ca0-05b3-4617-94c9-364da8de53d5/Spring/clitest000002?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -269,7 +269,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5","name":"d0c10ca0-05b3-4617-94c9-364da8de53d5","status":"Running","startTime":"2023-04-14T03:25:21.2034813Z"}' @@ -317,7 +317,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000002/operationId/d0c10ca0-05b3-4617-94c9-364da8de53d5","name":"d0c10ca0-05b3-4617-94c9-364da8de53d5","status":"Succeeded","startTime":"2023-04-14T03:25:21.2034813Z","endTime":"2023-04-14T03:25:27.4106766Z"}' @@ -365,7 +365,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"d4de20d05e66fc53fe1a50882c78db2852cae474","issuer":"Baltimore @@ -415,7 +415,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"a8985d3a65e5e5c4b2d7d66d40c6dd2fb19c5436","issuer":"DigiCert @@ -465,7 +465,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"d4de20d05e66fc53fe1a50882c78db2852cae474","issuer":"Baltimore @@ -515,7 +515,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"thumbprint":"d4de20d05e66fc53fe1a50882c78db2852cae474","issuer":"Baltimore @@ -567,7 +567,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -613,7 +613,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"56e88126a961459ca367bb6223cf4a16","networkProfile":{"outboundIPs":{"publicIPs":["20.219.181.209","20.219.183.20"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-03-23T02:52:58.6146926Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-23T02:57:49.439147Z"}}' @@ -663,7 +663,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"d4de20d05e66fc53fe1a50882c78db2852cae474","issuer":"Baltimore @@ -720,13 +720,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:40.7713272Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -738,7 +738,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/999de4d4-5ced-483b-b7e4-61982dc1eeba/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/999de4d4-5ced-483b-b7e4-61982dc1eeba/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -770,7 +770,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba","name":"999de4d4-5ced-483b-b7e4-61982dc1eeba","status":"Running","startTime":"2023-04-14T03:25:41.2897341Z"}' @@ -818,7 +818,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/999de4d4-5ced-483b-b7e4-61982dc1eeba","name":"999de4d4-5ced-483b-b7e4-61982dc1eeba","status":"Succeeded","startTime":"2023-04-14T03:25:41.2897341Z","endTime":"2023-04-14T03:25:47.809398Z"}' @@ -866,7 +866,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:40.7713272Z"}}' @@ -923,13 +923,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:56.5213725Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:56.5213725Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -941,7 +941,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/3581d157-c68e-4f87-a35b-7586ebe9e1e7/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/3581d157-c68e-4f87-a35b-7586ebe9e1e7/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -973,7 +973,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7","name":"3581d157-c68e-4f87-a35b-7586ebe9e1e7","status":"Running","startTime":"2023-04-14T03:25:57.2657182Z"}' @@ -1021,7 +1021,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7","name":"3581d157-c68e-4f87-a35b-7586ebe9e1e7","status":"Running","startTime":"2023-04-14T03:25:57.2657182Z"}' @@ -1069,7 +1069,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7","name":"3581d157-c68e-4f87-a35b-7586ebe9e1e7","status":"Running","startTime":"2023-04-14T03:25:57.2657182Z"}' @@ -1117,7 +1117,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7","name":"3581d157-c68e-4f87-a35b-7586ebe9e1e7","status":"Running","startTime":"2023-04-14T03:25:57.2657182Z"}' @@ -1165,7 +1165,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/3581d157-c68e-4f87-a35b-7586ebe9e1e7","name":"3581d157-c68e-4f87-a35b-7586ebe9e1e7","status":"Succeeded","startTime":"2023-04-14T03:25:57.2657182Z","endTime":"2023-04-14T03:26:32.9586574Z"}' @@ -1213,7 +1213,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5cbcb778d-tmnwm","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-14T03:26:07Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:56.5213725Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:56.5213725Z"}}' @@ -1263,7 +1263,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:40.7713272Z"}}' @@ -1313,7 +1313,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-5cbcb778d-tmnwm","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-14T03:26:07Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:56.5213725Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:56.5213725Z"}}]}' @@ -1363,7 +1363,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:25:40.7713272Z"}}' @@ -1413,7 +1413,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"a8985d3a65e5e5c4b2d7d66d40c6dd2fb19c5436","issuer":"DigiCert @@ -1474,13 +1474,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true},{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:26:52.8766837Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1492,7 +1492,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1524,7 +1524,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce","name":"fe6faa93-ad5d-44ca-a8da-e8e00820b0ce","status":"Running","startTime":"2023-04-14T03:26:53.3040472Z"}' @@ -1572,7 +1572,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce","name":"fe6faa93-ad5d-44ca-a8da-e8e00820b0ce","status":"Running","startTime":"2023-04-14T03:26:53.3040472Z"}' @@ -1620,7 +1620,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/fe6faa93-ad5d-44ca-a8da-e8e00820b0ce","name":"fe6faa93-ad5d-44ca-a8da-e8e00820b0ce","status":"Succeeded","startTime":"2023-04-14T03:26:53.3040472Z","endTime":"2023-04-14T03:27:06.1060011Z"}' @@ -1668,7 +1668,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true},{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:26:52.8766837Z"}}' @@ -1718,7 +1718,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true},{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:26:52.8766837Z"}}' @@ -1768,7 +1768,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true},{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:26:52.8766837Z"}},{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-04-04T08:09:12.0763562Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-04T08:09:29.6027945Z"}},{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-04-04T08:16:30.7030333Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-04T08:16:47.4997784Z"}}]}' @@ -1818,7 +1818,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"a8985d3a65e5e5c4b2d7d66d40c6dd2fb19c5436","issuer":"DigiCert @@ -1868,7 +1868,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true},{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:26:52.8766837Z"}},{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/test-custom-domain","name":"test-custom-domain","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-04-04T08:09:12.0763562Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-04T08:09:29.6027945Z"}},{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-04-04T08:16:30.7030333Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-04T08:16:47.4997784Z"}}]}' @@ -1918,7 +1918,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert?api-version=2024-05-01-preview response: body: string: '{"properties":{"thumbprint":"a8985d3a65e5e5c4b2d7d66d40c6dd2fb19c5436","issuer":"DigiCert @@ -1968,7 +1968,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"loadedCertificates":[{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/balti-cert","loadTrustStore":true},{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/certificates/digi-cert","loadTrustStore":true}],"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-14T03:25:40.7713272Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-14T03:26:52.8766837Z"}}' @@ -2020,13 +2020,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -2036,7 +2036,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/ef5d3f48-a4d8-4078-aff9-13537d7eda3f/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/ef5d3f48-a4d8-4078-aff9-13537d7eda3f/Spring/clitest000003?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -2068,7 +2068,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f","name":"ef5d3f48-a4d8-4078-aff9-13537d7eda3f","status":"Running","startTime":"2023-04-14T03:27:24.4109217Z"}' @@ -2116,7 +2116,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f","name":"ef5d3f48-a4d8-4078-aff9-13537d7eda3f","status":"Running","startTime":"2023-04-14T03:27:24.4109217Z"}' @@ -2164,7 +2164,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 (MSI) azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/clitest000003/operationId/ef5d3f48-a4d8-4078-aff9-13537d7eda3f","name":"ef5d3f48-a4d8-4078-aff9-13537d7eda3f","status":"Succeeded","startTime":"2023-04-14T03:27:24.4109217Z","endTime":"2023-04-14T03:27:45.8325438Z"}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_persistent_storage.yaml b/src/spring/azext_spring/tests/latest/recordings/test_persistent_storage.yaml index 3b8967c5f4c..b9dc7165585 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_persistent_storage.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_persistent_storage.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.56.0 azsdk-python-azure-mgmt-storage/21.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2023-01-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2024-01-18T03:11:34.2146963Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2024-01-18T03:11:34.2146963Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2024-04-15T07:03:52.0428303Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2024-04-15T07:03:52.0428303Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,23 +29,21 @@ interactions: content-type: - application/json date: - - Thu, 18 Jan 2024 03:14:29 GMT + - Mon, 15 Apr 2024 07:04:16 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: FEC1BC647E4E413A84A0C777F5866E2E Ref B: MAA201060516011 Ref C: 2024-04-15T07:04:16Z' status: code: 200 message: OK @@ -68,39 +66,43 @@ interactions: ParameterSetName: - --name --storage-type --account-name --account-key -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/storages","properties":{"accountName":"clitest000002","storageType":"StorageAccount"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name","name":"test-storage-name"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/test-storage-name/operationId/d4290642-cb73-4530-9cf2-16729d312914?api-version=2024-01-01-preview&t=638411444717192034&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwE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rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=UTnYmit5MQeWGquA9S_iPRCTShfQkYFuzD7VgkSb1SwvdZqcMhLKCUYCrGRAv6Jaw8jfUNyvVRC4QoltAf6YrfLs3tcpe1d6X_e4CRgcPsS4ww2FzHpcTPHlnmGHTYt3945qB37jv1vb_kqCXmwWqv0fumTGfNQDwpWyFOpnVZvu70ELDiblEKkFFfeORloc_qb0lj10yypOwZG-apsAOhf_Iu3dd3duRFr7MBC-Jfcp6KjFwS199Rk_5S8vlXFWCG3v8w2Muqrkl7KFKj3-M4N9oCfD2dpvXL-t0SCGZLeq-Io_IErz6WBL44W6qEeOmaOTPvHvFsWtrirsx075eg&h=Gc4ynTGLDBkKjINvdqKQUWNpBzKbJnPQQP3W8r1V6A0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-storage-name/operationId/93adcc26-5240-4c41-be41-031912ca2a49?api-version=2024-05-01-preview&t=638487614596848728&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQY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9k7xFAoEocdetGdyAXfy0FTZtKACMF4VG1X3k1gBPbnPIrFWNN3Zv5oiOZSHBOla08VhbW3nY9mzA68HtgxKpBjf2q4JNHH5DtEzebrFfazdo-38WFzQvjk1VipVAK2dNcZgEzn3jtEtmDOWcjlGmgP1D7SIx-I8ESiL6IMBUuYV3WngEO9dhVaMHkOWGTNELu0VBvoN4UW_y3SE_un_05EqwpMUdzgn8HKe-KvQPt3rLEhnOJnfjvIJoZVq8-6wulJnBsnhlOwSxfLELVgnFKdi0yIR2x8FHu5Le9ERdKVI1fmHGb2PQ&h=2St28Xx_CjUPxvIR94T1DHLKSy7CFNaFAO-0UJDnweE cache-control: - no-cache content-length: - '322' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:31 GMT + - Mon, 15 Apr 2024 07:04:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/d4290642-cb73-4530-9cf2-16729d312914/Spring/test-storage-name?api-version=2024-01-01-preview&t=638411444717348758&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8A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7drZMS-Bs4Z69oxtjbYJMS-WzgZAfy4ZHDHeTY8Is8kAl7o84bdrcPxE6LbRmZMug65gymqyK-Q6ipFQfJXbMqN6BEjkuLJelVKeFyVf4N9AzsSMrBZKuLcEzYn4iP_CZ7EN-RQRE9mbwGXYOi_2rRuqi5mKPJq0yVVpVmIejihQuQI-cGATIw7zA&h=Mx02j_9xCUdBq9yKEzZUqAcuPHVr-jEBwgML-jvpAZ0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/93adcc26-5240-4c41-be41-031912ca2a49/Spring/test-storage-name?api-version=2024-05-01-preview&t=638487614597004253&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-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497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: FF756157438C486FB939BC13E35BB256 Ref B: MAA201060515017 Ref C: 2024-04-15T07:04:18Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 201 message: Created @@ -118,21 +120,21 @@ interactions: ParameterSetName: - --name --storage-type --account-name --account-key -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/test-storage-name/operationId/d4290642-cb73-4530-9cf2-16729d312914?api-version=2024-01-01-preview&t=638411444717192034&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtd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pWyFOpnVZvu70ELDiblEKkFFfeORloc_qb0lj10yypOwZG-apsAOhf_Iu3dd3duRFr7MBC-Jfcp6KjFwS199Rk_5S8vlXFWCG3v8w2Muqrkl7KFKj3-M4N9oCfD2dpvXL-t0SCGZLeq-Io_IErz6WBL44W6qEeOmaOTPvHvFsWtrirsx075eg&h=Gc4ynTGLDBkKjINvdqKQUWNpBzKbJnPQQP3W8r1V6A0 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-storage-name/operationId/93adcc26-5240-4c41-be41-031912ca2a49?api-version=2024-05-01-preview&t=638487614596848728&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCc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0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/test-storage-name/operationId/d4290642-cb73-4530-9cf2-16729d312914","name":"d4290642-cb73-4530-9cf2-16729d312914","status":"Succeeded","startTime":"2024-01-18T03:14:31.6284829Z","endTime":"2024-01-18T03:14:31.9390459Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-storage-name/operationId/93adcc26-5240-4c41-be41-031912ca2a49","name":"93adcc26-5240-4c41-be41-031912ca2a49","status":"Succeeded","startTime":"2024-04-15T07:04:19.5403068Z","endTime":"2024-04-15T07:04:20.1104446Z"}' headers: cache-control: - no-cache content-length: - - '375' + - '380' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:31 GMT + - Mon, 15 Apr 2024 07:04:19 GMT expires: - '-1' pragma: @@ -141,14 +143,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B48CDBBCB16C48498C78A5104AA59F05 Ref B: MAA201060515017 Ref C: 2024-04-15T07:04:19Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -166,9 +168,9 @@ interactions: ParameterSetName: - --name --storage-type --account-name --account-key -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/storages","properties":{"accountName":"clitest000002","storageType":"StorageAccount"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name","name":"test-storage-name"}' @@ -178,9 +180,9 @@ interactions: content-length: - '322' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:32 GMT + - Mon, 15 Apr 2024 07:04:20 GMT expires: - '-1' pragma: @@ -189,14 +191,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 3448651E58A249C594E8D2BBA2C67DB9 Ref B: MAA201060515017 Ref C: 2024-04-15T07:04:20Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -214,9 +216,9 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/storages","properties":{"accountName":"clitest000002","storageType":"StorageAccount"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name","name":"test-storage-name"}' @@ -226,9 +228,9 @@ interactions: content-length: - '322' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:33 GMT + - Mon, 15 Apr 2024 07:04:22 GMT expires: - '-1' pragma: @@ -237,14 +239,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6E2C592072F0450EA011680D0403F45D Ref B: MAA201060515051 Ref C: 2024-04-15T07:04:22Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -262,9 +264,9 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages?api-version=2024-05-01-preview response: body: string: '{"value":[{"type":"Microsoft.AppPlatform/Spring/storages","properties":{"accountName":"clitest000002","storageType":"StorageAccount"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name","name":"test-storage-name"}]}' @@ -274,9 +276,9 @@ interactions: content-length: - '334' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:35 GMT + - Mon, 15 Apr 2024 07:04:24 GMT expires: - '-1' pragma: @@ -285,14 +287,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E5E505F331614A709D968CDBB0DDD057 Ref B: MAA201060516019 Ref C: 2024-04-15T07:04:23Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -310,9 +312,9 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-05-01-preview response: body: string: '{"type":"Microsoft.AppPlatform/Spring/storages","properties":{"accountName":"clitest000002","storageType":"StorageAccount"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name","name":"test-storage-name"}' @@ -322,9 +324,9 @@ interactions: content-length: - '322' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:38 GMT + - Mon, 15 Apr 2024 07:04:25 GMT expires: - '-1' pragma: @@ -333,14 +335,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D98B164C1F2E458883B0FED582D4EF5F Ref B: MAA201060514029 Ref C: 2024-04-15T07:04:25Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -360,37 +362,41 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/test-storage-name/operationId/20315243-0418-4e36-9f97-5a9721f38aa5?api-version=2024-01-01-preview&t=638411444814743639&c=MIIHHjCCBgagAwIBAgITOgI9LlF5j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d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sW58M1oIP86UAONphkhwSEd9rAGYdTAq3GQUmAAVEF17CHbXyxRguG8Pnj-9vIlHYaGlPlJAKMYQFVUlziARC_UnaLdIvp2A5VG3vzJVB-VF-2eaNADgpnQDxeQ0oCTX2Igu3_mmBSPVILPmNXBXAlUiLeCY2aL-x-1308I3nDK0EgAaj4kPwt_RFtTLQvVYl3H39a1ojefekBF5yLgX1BP8ldhmohU4bh4IyLx5wHBpwpBWtmhGKrPA4uQe0IBP-j07kFw47I3gIvg4icS4Jfv0n38RA7474gzMmH07dJQClr_mQoWR-_3DEUQ8TIKbzg--FPbcKxAP-8du3_WjQA&h=Jiz7W5CGWr_0FEVmKXjUvnAmgP1nPDOWTX85AQXgedw + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-storage-name/operationId/5f7a2961-c070-4573-91f9-942c8f355c51?api-version=2024-05-01-preview&t=638487614672969418&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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Fmzk&s=MV91W--N-OShxNCDwOGblJAUSDRN9ckh-ptd5FZ-pVcF0LbeG1T4IiAXE42O8vrX27idip4cE6ff_l-IFaMvmn2Kp2tQZwMBZ-QiRRQtYiUQl2YbjYYmB7_9AIwHgADRi76lkHk9rlYXngebGZ2xqi7BLu90wwX01XZRzKdJU1h0dO4yNm98rbMIFVdBLS0EG2BUCE1jT9HagiAMgmJIhQo-MV9KTYr3nmWOMc9dDFyKJ0tXZO0Xn0pKkibSjCloOHmA8RJVdON3Tw3bTUpNYl3B7TnEOZGgvvhPoHAgMPBQ3irjWFMc4vQrIKrTeDwfXiMqUO1IG1Tpgcxoxx4oCA&h=iylWhFtb9IU_pJUYSHRhxxfqZPzNArb9bqGIf58lQ-8 cache-control: - no-cache content-length: - '0' date: - - Thu, 18 Jan 2024 03:14:41 GMT + - Mon, 15 Apr 2024 07:04:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/20315243-0418-4e36-9f97-5a9721f38aa5/Spring/test-storage-name?api-version=2024-01-01-preview&t=638411444814899863&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTX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sZ6rXvtCzB02XzgJWY4jwSmOHgUXWjBmRwz8EYOtM6K2SW2vnLF_NEtvKMjXabmKoOdHHja7Y4jgOJy83GdcPqXYHl3PbIDYuxH3ri8In7izAtIEb6_D2g1RBwgMHJtem9VdflhrPvY0ZxEmsMxs_fo7-jqeSTvCxsAjIf7DEOHMVhEkdM9m3LcnMP3_KKM1Ru7_46W2BmiHA&h=EnGZkcHCqZAVv9Z6K4IS05lfp7VAZpHqWmrA6ntxNVg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/5f7a2961-c070-4573-91f9-942c8f355c51/Spring/test-storage-name?api-version=2024-05-01-preview&t=638487614672969418&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3S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-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-msedge-ref: + - 'Ref A: C94F792B58A64109A2C43F7D140E61D5 Ref B: MAA201060514029 Ref C: 2024-04-15T07:04:26Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 202 message: Accepted @@ -408,21 +414,21 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/test-storage-name/operationId/20315243-0418-4e36-9f97-5a9721f38aa5?api-version=2024-01-01-preview&t=638411444814743639&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJn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NXBXAlUiLeCY2aL-x-1308I3nDK0EgAaj4kPwt_RFtTLQvVYl3H39a1ojefekBF5yLgX1BP8ldhmohU4bh4IyLx5wHBpwpBWtmhGKrPA4uQe0IBP-j07kFw47I3gIvg4icS4Jfv0n38RA7474gzMmH07dJQClr_mQoWR-_3DEUQ8TIKbzg--FPbcKxAP-8du3_WjQA&h=Jiz7W5CGWr_0FEVmKXjUvnAmgP1nPDOWTX85AQXgedw + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-storage-name/operationId/5f7a2961-c070-4573-91f9-942c8f355c51?api-version=2024-05-01-preview&t=638487614672969418&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEA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ions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/test-storage-name/operationId/20315243-0418-4e36-9f97-5a9721f38aa5","name":"20315243-0418-4e36-9f97-5a9721f38aa5","status":"Succeeded","startTime":"2024-01-18T03:14:41.3745145Z","endTime":"2024-01-18T03:14:41.5051124Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-storage-name/operationId/5f7a2961-c070-4573-91f9-942c8f355c51","name":"5f7a2961-c070-4573-91f9-942c8f355c51","status":"Succeeded","startTime":"2024-04-15T07:04:27.2310862Z","endTime":"2024-04-15T07:04:28.2391939Z"}' headers: cache-control: - no-cache content-length: - - '375' + - '380' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:48 GMT + - Mon, 15 Apr 2024 07:04:27 GMT expires: - '-1' pragma: @@ -431,14 +437,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 5B213E8FE7644AC9904E320168F1A2C8 Ref B: MAA201060514029 Ref C: 2024-04-15T07:04:27Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 200 message: OK @@ -456,9 +462,9 @@ interactions: ParameterSetName: - --name -g -s User-Agent: - - AZURECLI/2.56.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.6 (macOS-14.2.1-arm64-arm-64bit) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000003/storages/test-storage-name?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"Storage ''test-storage-name'' @@ -469,9 +475,9 @@ interactions: content-length: - '109' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 18 Jan 2024 03:14:50 GMT + - Mon, 15 Apr 2024 07:04:29 GMT expires: - '-1' pragma: @@ -480,10 +486,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: EDDA3A05542C44498965416ADC9A356B Ref B: MAA201060513031 Ref C: 2024-04-15T07:04:29Z' x-rp-server-mvid: - - e87f36cc-a007-45c6-8900-a43a2150612d + - 4c93324c-8d05-4614-bf23-e41ef7c9c1f7 status: code: 404 message: Not Found diff --git a/src/spring/azext_spring/tests/latest/recordings/test_predefined_accelerator.yaml b/src/spring/azext_spring/tests/latest/recordings/test_predefined_accelerator.yaml index 8604814e098..cba9c063e83 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_predefined_accelerator.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_predefined_accelerator.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:17 GMT + - Mon, 15 Apr 2024 06:57:19 GMT expires: - '-1' pragma: @@ -36,16 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 13F78064DE364A46B2323E41900AE56B Ref B: MAA201060515027 Ref C: 2024-04-15T06:57:19Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -63,9 +63,9 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"provisioningState":"Succeeded","displayName":"Acme @@ -80,9 +80,9 @@ interactions: content-length: - '2116' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:19 GMT + - Mon, 15 Apr 2024 06:57:21 GMT expires: - '-1' pragma: @@ -91,14 +91,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 41034C04D2B74A309B03A0A790C4D4AE Ref B: MAA201060515019 Ref C: 2024-04-15T06:57:20Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -116,21 +116,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:22 GMT + - Mon, 15 Apr 2024 06:57:23 GMT expires: - '-1' pragma: @@ -139,16 +139,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: B2D81EBA292542348F8F3E2CB5A5EFDE Ref B: MAA201060513035 Ref C: 2024-04-15T06:57:23Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -166,9 +166,9 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","displayName":"Tanzu @@ -179,9 +179,9 @@ interactions: content-length: - '446' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:24 GMT + - Mon, 15 Apr 2024 06:57:25 GMT expires: - '-1' pragma: @@ -190,14 +190,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 25D074386FF94BD4847005972B9376CE Ref B: MAA201060515029 Ref C: 2024-04-15T06:57:24Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -215,21 +215,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:27 GMT + - Mon, 15 Apr 2024 06:57:28 GMT expires: - '-1' pragma: @@ -238,16 +238,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11997' + x-msedge-ref: + - 'Ref A: A5DF74AB616A486DA5C2061EC117014C Ref B: MAA201060514051 Ref C: 2024-04-15T06:57:27Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -267,40 +267,44 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service/disable?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service/disable?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","displayName":"Tanzu - Java Restful Web App","state":"Enabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:28.4783055Z"}}' + Java Restful Web App","state":"Enabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:57:29.0395664Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/26c7694e-4684-4950-8c0a-02da9fd961ce?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eda132c5-4c66-4198-9c44-a5e598309d85?api-version=2024-05-01-preview&t=638487610496801990&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMi5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0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QELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=REIozrDThC1ZY6ATp2Em5u-N3JAO_-u40i1vIOvfW0CPbrLXa_siG65JvmCYf6X5P-gg2gnwlC7j1D2GZuVqpNBqpmlZrAlDSf1c-F4dttLa8RH8DNLIKzCG6F9f9dh_NEtSEn2GAc3PGx3MAMGruNqZ0j0oBel6o48h479JuGTnWQgFJfZlcxAHwPm5vpf8x9g3rwCboVt4drOl9-LnQzYxckyixkosVLVdRGaxB61U5Mg9rO-1KncYLeAeqFry7aA1YeL3QoyCOwbMQF7TlayJKx2HSURuM8SK6Rs6tgI0KD_HwsKNgXailVH-5dV4w8YjBMxpne2iPJzPdN5iNw&h=ioFHk4XazUBSJ5FjBdF7cur1XPVajyXejc8M6z2YUUM cache-control: - no-cache content-length: - - '631' + - '630' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:28 GMT + - Mon, 15 Apr 2024 06:57:28 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/26c7694e-4684-4950-8c0a-02da9fd961ce/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/eda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iiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=fxYJohnBDy2ilLXvr6bjOPq5pK92SU1ERvuZv53zFdT-XhFNT8_X5MDOAuKf1ZETzqSrVbpE_c3erMdlnak-6Qdx13q4QmJ4wu5DMJN3NtOR9ppmHLPvoRMnxEnQvQOaqWO7mOzclwgQqRvTeu1zw7W4MMzJfeu2AY3X2PdiHxzKmbtiXE4dAhXTlAD-YPPLbvWw-HUV0TvTZBop-lwMTeEbJE-SyEUQ_yOX8d6C_Kl3FhdgpN3aW4w92EnoQXyKnl8N0XcLB7bo4tpbOY_i2v-d5dRyZuOed4JlsUAY-j4YAxn91oAEeBlGlpOx2NmdGQ6jY6Cq7lMB0xN_JTeh6w&h=BhrCXpLBfAxhoRwAlJzHIs4fUReEoC1P2vqA-AXOueY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 504F322B64474C918FBDAB7D58E85F63 Ref B: MAA201060514049 Ref C: 2024-04-15T06:57:28Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -318,69 +322,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/26c7694e-4684-4950-8c0a-02da9fd961ce?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/26c7694e-4684-4950-8c0a-02da9fd961ce","name":"26c7694e-4684-4950-8c0a-02da9fd961ce","status":"Running","startTime":"2023-03-24T06:01:28.992642Z"}' - headers: - cache-control: - - no-cache - content-length: - - '336' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 24 Mar 2023 06:01:28 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator predefined-accelerator disable - Connection: - - keep-alive - ParameterSetName: - - -n -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/26c7694e-4684-4950-8c0a-02da9fd961ce?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eda132c5-4c66-4198-9c44-a5e598309d85?api-version=2024-05-01-preview&t=638487610496801990&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20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PwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=REIozrDThC1ZY6ATp2Em5u-N3JAO_-u40i1vIOvfW0CPbrLXa_siG65JvmCYf6X5P-gg2gnwlC7j1D2GZuVqpNBqpmlZrAlDSf1c-F4dttLa8RH8DNLIKzCG6F9f9dh_NEtSEn2GAc3PGx3MAMGruNqZ0j0oBel6o48h479JuGTnWQgFJfZlcxAHwPm5vpf8x9g3rwCboVt4drOl9-LnQzYxckyixkosVLVdRGaxB61U5Mg9rO-1KncYLeAeqFry7aA1YeL3QoyCOwbMQF7TlayJKx2HSURuM8SK6Rs6tgI0KD_HwsKNgXailVH-5dV4w8YjBMxpne2iPJzPdN5iNw&h=ioFHk4XazUBSJ5FjBdF7cur1XPVajyXejc8M6z2YUUM response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/26c7694e-4684-4950-8c0a-02da9fd961ce","name":"26c7694e-4684-4950-8c0a-02da9fd961ce","status":"Succeeded","startTime":"2023-03-24T06:01:28.992642Z","endTime":"2023-03-24T06:01:35.1005912Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/eda132c5-4c66-4198-9c44-a5e598309d85","name":"eda132c5-4c66-4198-9c44-a5e598309d85","status":"Succeeded","startTime":"2024-04-15T06:57:29.5387781Z","endTime":"2024-04-15T06:57:29.7586889Z"}' headers: cache-control: - no-cache content-length: - - '379' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:38 GMT + - Mon, 15 Apr 2024 06:57:30 GMT expires: - '-1' pragma: @@ -389,14 +345,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: CD1E485F0CEA430AB84E1DB2F69DDA94 Ref B: MAA201060514049 Ref C: 2024-04-15T06:57:29Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -414,9 +370,9 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/26c7694e-4684-4950-8c0a-02da9fd961ce/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/eda132c5-4c66-4198-9c44-a5e598309d85/Spring/clitest000002?api-version=2024-05-01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taOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=fxYJohnBDy2ilLXvr6bjOPq5pK92SU1ERvuZv53zFdT-XhFNT8_X5MDOAuKf1ZETzqSrVbpE_c3erMdlnak-6Qdx13q4QmJ4wu5DMJN3NtOR9ppmHLPvoRMnxEnQvQOaqWO7mOzclwgQqRvTeu1zw7W4MMzJfeu2AY3X2PdiHxzKmbtiXE4dAhXTlAD-YPPLbvWw-HUV0TvTZBop-lwMTeEbJE-SyEUQ_yOX8d6C_Kl3FhdgpN3aW4w92EnoQXyKnl8N0XcLB7bo4tpbOY_i2v-d5dRyZuOed4JlsUAY-j4YAxn91oAEeBlGlpOx2NmdGQ6jY6Cq7lMB0xN_JTeh6w&h=BhrCXpLBfAxhoRwAlJzHIs4fUReEoC1P2vqA-AXOueY response: body: string: '' @@ -426,7 +382,7 @@ interactions: content-length: - '0' date: - - Fri, 24 Mar 2023 06:01:39 GMT + - Mon, 15 Apr 2024 06:57:31 GMT expires: - '-1' pragma: @@ -435,10 +391,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A413F7C0B65543B3BDEAC8651A8E5611 Ref B: MAA201060514049 Ref C: 2024-04-15T06:57:31Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -456,21 +416,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:43 GMT + - Mon, 15 Apr 2024 06:57:33 GMT expires: - '-1' pragma: @@ -479,16 +439,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: A29C2A63FACC4A62843DA3B0C6CD13D5 Ref B: MAA201060514017 Ref C: 2024-04-15T06:57:33Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -506,22 +466,22 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","displayName":"Tanzu - Java Restful Web App","state":"Disabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:28.4783055Z"}}' + Java Restful Web App","state":"Disabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:57:29.0395664Z"}}' headers: cache-control: - no-cache content-length: - - '633' + - '632' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:46 GMT + - Mon, 15 Apr 2024 06:57:35 GMT expires: - '-1' pragma: @@ -530,14 +490,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 80335510D5004BA7ABACAD3692CE0CCE Ref B: MAA201060516049 Ref C: 2024-04-15T06:57:34Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -555,21 +515,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:48 GMT + - Mon, 15 Apr 2024 06:57:38 GMT expires: - '-1' pragma: @@ -578,16 +538,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 5A096446A1AE4FEFB9E0EED383F8B606 Ref B: MAA201060515011 Ref C: 2024-04-15T06:57:37Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -607,40 +567,44 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service/enable?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service/enable?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","displayName":"Tanzu - Java Restful Web App","state":"Disabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:49.9604248Z"}}' + Java Restful Web App","state":"Disabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:57:38.9079451Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/e64deded-a237-4e53-9192-95113ee59d6c?api-version=2024-05-01-preview&t=638487610597829506&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2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UlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=PvU777lQRut0cPKcoVyi-BwLDolzBKjfTFwO0lT1-00GqPjTaJVfViToUx3k0tS7-45Y8z-PWum9lfHqh7UHCRRLQYfth2YR4fayTTYEmZWjjAISBXPoUsYr9xDUVb4tdyeGpi8V6xgZZBqvELHtahjVljf4xMPM2KzOVYluywBGEfB1neRfFVLmSqFt4JAwHv7tIf7vs-nZulrh9lXwaA9V4yj3RJegn0_OcdrJiwYms76Np8Q_khmZSNIWbktSyI5MgUraL_2biWX5hnP9912CU-Cymg9Pj4Q32icdSrdkzs9qv-sVTl9N6mbvURAQnwwPY_ZtP9Gv-4ZhRR1MDQ&h=z4FoVepn1Ly9Uj_ILH8Ohtq2jyP3CWuSRdd9zrsAWsQ cache-control: - no-cache content-length: - - '632' + - '631' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:01:52 GMT + - Mon, 15 Apr 2024 06:57:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/d0cf98f4-3b80-4e85-b507-777417ba7f0d/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/e64deded-a237-4e53-9192-95113ee59d6c/Spring/clitest000002?api-version=2024-05-01-preview&t=638487610597829506&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggH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BJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BAmnChwmM9pgDf2puL7AsaHYlpOn9Khb4wpaf1iu4GMuuKSumQA3LGwVxlPMI3vsLWW8mEVnnCq5KSeuIG0bodJRSHjB-5Clp8uQa4q5O-jPPlK-cR-775BaMCPG6im1g7eZnELCTncwdLe1eeDGBUYomdePlJotsxrg5Z2sLrD-vYNQHvsBw3Kxmaa74gJbLOh8FmQrmVjpk9AFIl9kx6dl8rCS4Ik2Qj7hZuoKqAdgbIH-HozFOPTnQBriZS7hb6wbRNpGW8OMLhHTvooG0LeSG4e5pnQGX9-U66HqIRt4RwPo-vQABRzIS5mdWhbW2Ltw5l5YqFe6FxJROiWEsw&h=3flWwLwwNNjZYLDXbbPIsW1odkw5mtArICVpNwma-uI pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 71CFDF9B09C849D38917E0C2B2DFCB57 Ref B: MAA201060515035 Ref C: 2024-04-15T06:57:38Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -658,69 +622,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d","name":"d0cf98f4-3b80-4e85-b507-777417ba7f0d","status":"Running","startTime":"2023-03-24T06:01:52.5993435Z"}' - headers: - cache-control: - - no-cache - content-length: - - '337' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 24 Mar 2023 06:01:52 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring application-accelerator predefined-accelerator enable - Connection: - - keep-alive - ParameterSetName: - - -n -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/e64deded-a237-4e53-9192-95113ee59d6c?api-version=2024-05-01-preview&t=638487610597829506&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKw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2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=PvU777lQRut0cPKcoVyi-BwLDolzBKjfTFwO0lT1-00GqPjTaJVfViToUx3k0tS7-45Y8z-PWum9lfHqh7UHCRRLQYfth2YR4fayTTYEmZWjjAISBXPoUsYr9xDUVb4tdyeGpi8V6xgZZBqvELHtahjVljf4xMPM2KzOVYluywBGEfB1neRfFVLmSqFt4JAwHv7tIf7vs-nZulrh9lXwaA9V4yj3RJegn0_OcdrJiwYms76Np8Q_khmZSNIWbktSyI5MgUraL_2biWX5hnP9912CU-Cymg9Pj4Q32icdSrdkzs9qv-sVTl9N6mbvURAQnwwPY_ZtP9Gv-4ZhRR1MDQ&h=z4FoVepn1Ly9Uj_ILH8Ohtq2jyP3CWuSRdd9zrsAWsQ response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d","name":"d0cf98f4-3b80-4e85-b507-777417ba7f0d","status":"Running","startTime":"2023-03-24T06:01:52.5993435Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/e64deded-a237-4e53-9192-95113ee59d6c","name":"e64deded-a237-4e53-9192-95113ee59d6c","status":"Running","startTime":"2024-04-15T06:57:39.6314369Z"}' headers: cache-control: - no-cache content-length: - - '337' + - '327' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:03 GMT + - Mon, 15 Apr 2024 06:57:40 GMT expires: - '-1' pragma: @@ -729,14 +645,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 09426141260847049339528A8E818154 Ref B: MAA201060515035 Ref C: 2024-04-15T06:57:39Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -754,21 +670,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/e64deded-a237-4e53-9192-95113ee59d6c?api-version=2024-05-01-preview&t=638487610597829506&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEt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EFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=PvU777lQRut0cPKcoVyi-BwLDolzBKjfTFwO0lT1-00GqPjTaJVfViToUx3k0tS7-45Y8z-PWum9lfHqh7UHCRRLQYfth2YR4fayTTYEmZWjjAISBXPoUsYr9xDUVb4tdyeGpi8V6xgZZBqvELHtahjVljf4xMPM2KzOVYluywBGEfB1neRfFVLmSqFt4JAwHv7tIf7vs-nZulrh9lXwaA9V4yj3RJegn0_OcdrJiwYms76Np8Q_khmZSNIWbktSyI5MgUraL_2biWX5hnP9912CU-Cymg9Pj4Q32icdSrdkzs9qv-sVTl9N6mbvURAQnwwPY_ZtP9Gv-4ZhRR1MDQ&h=z4FoVepn1Ly9Uj_ILH8Ohtq2jyP3CWuSRdd9zrsAWsQ response: body: - string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationStatus/clitest000002/operationId/d0cf98f4-3b80-4e85-b507-777417ba7f0d","name":"d0cf98f4-3b80-4e85-b507-777417ba7f0d","status":"Succeeded","startTime":"2023-03-24T06:01:52.5993435Z","endTime":"2023-03-24T06:02:09.087329Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/e64deded-a237-4e53-9192-95113ee59d6c","name":"e64deded-a237-4e53-9192-95113ee59d6c","status":"Succeeded","startTime":"2024-04-15T06:57:39.6314369Z","endTime":"2024-04-15T06:57:49.7559745Z"}' headers: cache-control: - no-cache content-length: - - '379' + - '370' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:13 GMT + - Mon, 15 Apr 2024 06:57:51 GMT expires: - '-1' pragma: @@ -777,14 +693,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 9F850B6EC9A642BFA217DCAA0FFE6175 Ref B: MAA201060515035 Ref C: 2024-04-15T06:57:51Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -802,9 +718,9 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/switzerlandnorth/operationResults/d0cf98f4-3b80-4e85-b507-777417ba7f0d/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/e64deded-a237-4e53-9192-95113ee59d6c/Spring/clitest000002?api-version=2024-05-01-preview&t=638487610597829506&c=MIIHADC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jMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=BAmnChwmM9pgDf2puL7AsaHYlpOn9Khb4wpaf1iu4GMuuKSumQA3LGwVxlPMI3vsLWW8mEVnnCq5KSeuIG0bodJRSHjB-5Clp8uQa4q5O-jPPlK-cR-775BaMCPG6im1g7eZnELCTncwdLe1eeDGBUYomdePlJotsxrg5Z2sLrD-vYNQHvsBw3Kxmaa74gJbLOh8FmQrmVjpk9AFIl9kx6dl8rCS4Ik2Qj7hZuoKqAdgbIH-HozFOPTnQBriZS7hb6wbRNpGW8OMLhHTvooG0LeSG4e5pnQGX9-U66HqIRt4RwPo-vQABRzIS5mdWhbW2Ltw5l5YqFe6FxJROiWEsw&h=3flWwLwwNNjZYLDXbbPIsW1odkw5mtArICVpNwma-uI response: body: string: '' @@ -814,7 +730,7 @@ interactions: content-length: - '0' date: - - Fri, 24 Mar 2023 06:02:13 GMT + - Mon, 15 Apr 2024 06:57:52 GMT expires: - '-1' pragma: @@ -823,10 +739,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 6FF4929E265949158F54395D6A7706EC Ref B: MAA201060515035 Ref C: 2024-04-15T06:57:52Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -844,21 +764,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"da917f7f53cd43678329f6da8b91a661","networkProfile":{"outboundIPs":{"publicIPs":["20.250.56.238","20.250.57.103"]},"ingressConfig":{"readTimeoutInSeconds":300},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"switzerlandnorth","tags":{"__asc_mt_enable_big_app":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","createdByType":"Application","createdAt":"2023-03-24T02:22:49.7533513Z","lastModifiedBy":"3462cf92-dc17-43c5-8c7e-e50c11a1c181","lastModifiedByType":"Application","lastModifiedAt":"2023-03-24T02:22:49.7533513Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '1067' + - '948' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:17 GMT + - Mon, 15 Apr 2024 06:57:54 GMT expires: - '-1' pragma: @@ -867,16 +787,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: B68513E3314948A2A163B9CD9BCBF2A9 Ref B: MAA201060513045 Ref C: 2024-04-15T06:57:54Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -894,22 +814,22 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","displayName":"Tanzu - Java Restful Web App","state":"Enabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-24T06:01:49.9604248Z"}}' + Java Restful Web App","state":"Enabled"},"type":"Microsoft.AppPlatform/Spring/applicationAccelerators/predefinedAccelerators","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/applicationAccelerators/default/predefinedAccelerators/asa-java-rest-service","name":"asa-java-rest-service","systemData":{"createdBy":null,"createdByType":null,"createdAt":null,"lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-15T06:57:38.9079451Z"}}' headers: cache-control: - no-cache content-length: - - '632' + - '631' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 24 Mar 2023 06:02:18 GMT + - Mon, 15 Apr 2024 06:57:56 GMT expires: - '-1' pragma: @@ -918,14 +838,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 8295841F686B4C0BB4CAD70E671302D2 Ref B: MAA201060515017 Ref C: 2024-04-15T06:57:55Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_remote_debugging.yaml b/src/spring/azext_spring/tests/latest/recordings/test_remote_debugging.yaml index 88fa599ee48..b75d5ecb0b1 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_remote_debugging.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_remote_debugging.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"eda694a6857540c4bcddfabb1ad901f1","networkProfile":{"outboundIPs":{"publicIPs":["20.204.208.119","20.204.209.188"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralindia","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-16T07:45:44.6274471Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-16T07:52:32.2436727Z"}}' @@ -116,13 +116,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:41.8488992Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:41.8488992Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -134,7 +134,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/97ec0c42-dd83-4d9f-b9d8-446610a90a5c/Spring/test-remote-debugging?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/97ec0c42-dd83-4d9f-b9d8-446610a90a5c/Spring/test-remote-debugging?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -166,7 +166,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c","name":"97ec0c42-dd83-4d9f-b9d8-446610a90a5c","status":"Running","startTime":"2023-02-20T05:22:42.492275Z"}' @@ -214,7 +214,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/97ec0c42-dd83-4d9f-b9d8-446610a90a5c","name":"97ec0c42-dd83-4d9f-b9d8-446610a90a5c","status":"Succeeded","startTime":"2023-02-20T05:22:42.492275Z","endTime":"2023-02-20T05:22:48.8505043Z"}' @@ -262,7 +262,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:41.8488992Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:41.8488992Z"}}' @@ -319,13 +319,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/default","name":"default","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:57.6922841Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:57.6922841Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -337,7 +337,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -374,13 +374,13 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:41.8488992Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:59.0516331Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -392,7 +392,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/53357c98-4656-4126-96fd-6646f44f8f84/Spring/test-remote-debugging?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationResults/53357c98-4656-4126-96fd-6646f44f8f84/Spring/test-remote-debugging?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -424,7 +424,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84","name":"53357c98-4656-4126-96fd-6646f44f8f84","status":"Running","startTime":"2023-02-20T05:22:59.4953181Z"}' @@ -472,7 +472,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","name":"f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","status":"Running","startTime":"2023-02-20T05:22:58.8361318Z"}' @@ -520,7 +520,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/test-remote-debugging/operationId/53357c98-4656-4126-96fd-6646f44f8f84","name":"53357c98-4656-4126-96fd-6646f44f8f84","status":"Succeeded","startTime":"2023-02-20T05:22:59.4953181Z","endTime":"2023-02-20T05:23:05.8727167Z"}' @@ -568,7 +568,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:41.8488992Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:59.0516331Z"}}' @@ -618,7 +618,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","name":"f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","status":"Running","startTime":"2023-02-20T05:22:58.8361318Z"}' @@ -666,7 +666,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","name":"f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","status":"Running","startTime":"2023-02-20T05:22:58.8361318Z"}' @@ -714,7 +714,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","name":"f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","status":"Running","startTime":"2023-02-20T05:22:58.8361318Z"}' @@ -762,7 +762,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralindia/operationStatus/default/operationId/f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","name":"f8a91e79-ac7d-4f4b-b04f-59c3ca0e1e34","status":"Succeeded","startTime":"2023-02-20T05:22:58.8361318Z","endTime":"2023-02-20T05:23:47.7755069Z"}' @@ -810,7 +810,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-remote-debugging-default-21-5665854974-6szmp","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-02-20T05:23:04Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/default","name":"default","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:57.6922841Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:57.6922841Z"}}' @@ -860,7 +860,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralindia","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging","name":"test-remote-debugging","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:41.8488992Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:59.0516331Z"}}' @@ -910,7 +910,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-remote-debugging-default-21-5665854974-6szmp","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-02-20T05:23:04Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/default","name":"default","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:57.6922841Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:57.6922841Z"}}]}' @@ -960,7 +960,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-remote-debugging-default-21-5665854974-6szmp","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-02-20T05:23:04Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/default","name":"default","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:57.6922841Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:57.6922841Z"}}' @@ -1014,7 +1014,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment/enableRemoteDebugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment/enableRemoteDebugging?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"InvalidArgument","message":"You can not debug default @@ -1061,7 +1061,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-remote-debugging-default-21-5665854974-6szmp","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-02-20T05:23:04Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/default","name":"default","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:57.6922841Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:57.6922841Z"}}' @@ -1113,7 +1113,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment/disableRemoteDebugging?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment/disableRemoteDebugging?api-version=2024-05-01-preview response: body: string: '{"port":5005,"enabled":false}' @@ -1163,7 +1163,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-remote-debugging-default-21-5665854974-6szmp","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-02-20T05:23:04Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_11"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/default","name":"default","systemData":{"createdBy":"pensh@microsoft.com","createdByType":"User","createdAt":"2023-02-20T05:22:57.6922841Z","lastModifiedBy":"pensh@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-20T05:22:57.6922841Z"}}' @@ -1215,7 +1215,7 @@ interactions: User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.8.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment/getRemoteDebuggingConfig?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-remote-debugging/deployments/mock-deployment/getRemoteDebuggingConfig?api-version=2024-05-01-preview response: body: string: '{"port":5005,"enabled":false}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_response_cache.yaml b/src/spring/azext_spring/tests/latest/recordings/test_response_cache.yaml index ded68919e93..c5c8aa31107 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_response_cache.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_response_cache.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -75,14 +75,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T07:53:11.2684581Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQx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12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4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5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q cache-control: - no-cache content-length: @@ -94,7 +94,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/a5bd03a3-d5ad-458c-aacd-87be38309b05/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23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4C3Kgpl7hh0qa8dFrFbOyFMSaDQ35-AuqurBW5cd4NhWhW8V8isf-hSFxw&h=serLgOd6W431rZX1DVZssxvjE-C9hzQE1W3IpVYwOXs + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/a5bd03a3-d5ad-458c-aacd-87be38309b05/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdF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kuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=lr90C-uPoKi_tw-8DySbQ9VuP2USqB5cL4DPUUPyIDCWSj1xXvMnZLORtxz5QcpgPNEOGtuEnPo4jclEGLE6-dSm6-dXWJWXogUR59tZQ48Oi4WDv1_NPFPir6Z0KOMbwoCtlX-AW0HC0xBvHyqfhL3VRLpzttHCtm3m2EA0uPg1TSEpxU9HSA0GI52nGgF6IatehfkPRTW_TMUxkdh3TwPJQCOe7LQGKAJIH7fCp2xQvSps3AnXnkEIH1Zeb02HLkmYOFogZApSx3yfDeZpZPXsDsGO4C3Kgpl7hh0qa8dFrFbOyFMSaDQ35-AuqurBW5cd4NhWhW8V8isf-hSFxw&h=serLgOd6W431rZX1DVZssxvjE-C9hzQE1W3IpVYwOXs pragma: - no-cache request-context: @@ -126,7 +126,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5m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BATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKC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ru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -174,7 +174,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=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kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDV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nMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -222,7 +222,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUU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NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7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sCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -270,7 +270,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50L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ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCs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xJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -318,7 +318,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2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vEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZS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ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -366,7 +366,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtS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1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxU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BJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -414,7 +414,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCg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00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2V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HSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -462,7 +462,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQS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UUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCC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6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -510,7 +510,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/ji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wYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkE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vRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -558,7 +558,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYK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eru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlL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f3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -606,7 +606,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYD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BnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocT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vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -654,7 +654,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B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PsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5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kxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -702,7 +702,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipC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MxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCg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4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -750,7 +750,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZ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=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHI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kZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -798,7 +798,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNx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jBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia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wIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -846,7 +846,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2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VHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyL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v1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -894,7 +894,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjC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b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVh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akaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -942,7 +942,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUk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XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqsc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JXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -990,7 +990,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJl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ghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3o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ooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1038,7 +1038,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1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FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLg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8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1086,7 +1086,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhu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1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhp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kZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1134,7 +1134,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQ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000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2Vyd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SMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1182,7 +1182,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQ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TUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjC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b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1230,7 +1230,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus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YIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5G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l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1278,7 +1278,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRM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86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6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hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1326,7 +1326,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAM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48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Z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EsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1374,7 +1374,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDx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ZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvt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T1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1422,7 +1422,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHC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0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjc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ions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1470,7 +1470,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OH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mSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQ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ybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1518,7 +1518,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDA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2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/oper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cDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1566,7 +1566,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb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wYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADB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WvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1614,7 +1614,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview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IwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5W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_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1662,7 +1662,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwF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ggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2y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gYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1710,7 +1710,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0Z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yAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiH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X7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1758,7 +1758,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZ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CDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZd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JY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1806,7 +1806,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zI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i878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxU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UuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1854,7 +1854,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBA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6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29md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AYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1902,7 +1902,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SAC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3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-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XPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1950,7 +1950,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNR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NVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FM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odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -1998,7 +1998,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUT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sdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2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GPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2046,7 +2046,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5Whc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Ptz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVth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UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2094,7 +2094,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP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dZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYC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vYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2142,7 +2142,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtU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TrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAa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Zpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2190,7 +2190,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5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f-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4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i8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2238,7 +2238,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUH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RodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX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AdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2286,7 +2286,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi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JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj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HhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2334,7 +2334,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-a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EBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ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7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2382,7 +2382,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKC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vCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQ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TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2430,7 +2430,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNp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yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AW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S52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2478,7 +2478,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3o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KTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG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I2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2526,7 +2526,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7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Q0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYB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iec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2574,7 +2574,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKt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qRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodH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kuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2622,7 +2622,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys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MDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-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BQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2670,7 +2670,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5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ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2718,7 +2718,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI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V0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlv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9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2766,7 +2766,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwH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Si1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEV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YUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2814,7 +2814,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASI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s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_n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l3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2862,7 +2862,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6V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792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr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NmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2910,7 +2910,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6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lAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE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JTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -2958,7 +2958,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIK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000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEt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l2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3006,7 +3006,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIM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ZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAg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hJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3054,7 +3054,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastas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AwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgM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SLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3102,7 +3102,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZ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yQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbT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vlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3150,7 +3150,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQ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VmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrN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6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3198,7 +3198,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7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sCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5W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xY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3246,7 +3246,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ip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TMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwC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-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3294,7 +3294,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjt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A&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcww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BJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3342,7 +3342,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBB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TUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e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BQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3390,7 +3390,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5m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BATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKC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ru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Running","startTime":"2023-11-14T07:53:12.1737954Z"}' @@ -3438,7 +3438,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-01-01-preview&t=638355451922372924&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2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05?api-version=2024-05-01-preview&t=638355451922372924&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAY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MBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YFoe7f2Vybv2H1oL95TjDkdZ8kGPF-oJHll1x5sUOgYRJZivpB2aWOgPsCTQRSKJXGWV46mDcsCuYUmHKTjgWxuxdKOJrKx_vz81UQAlCDO5T5gTxVqRvQi-LUvEsX2FL20vz_6Drt792pKYdGy5tlcMLeu567LCPS52kWTrCnUHdespYQfOS4Q8YgX7_y0_iU47SytdYHTMxJbFQbhooUHC3dsydfnl3pVQ0KMbqvaF2rOfGuw_UvYbhi878hOOCm-_GKhNG5o3OahT1zt1EBVkkxY4zlAGqSp2kExW_ZxYb_FMI2lnf-qhdf1RQKY7xO6FBiMJY9XmSa-OUtOXmA&h=ZB01T8qAqWDtFnWNmjhqRrmJ_KLam8Zu9CTGlZpgv6Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/a5bd03a3-d5ad-458c-aacd-87be38309b05","name":"a5bd03a3-d5ad-458c-aacd-87be38309b05","status":"Succeeded","startTime":"2023-11-14T07:53:12.1737954Z","endTime":"2023-11-14T08:05:38.8450888Z"}' @@ -3486,7 +3486,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -3535,7 +3535,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"2d794c01d43b476b8c175f58b292dcfb","networkProfile":{"outboundIPs":{"publicIPs":["20.187.165.112","20.187.167.101"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"jiec-e-eastasia.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia","name":"jiec-e-eastasia","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:24:01.3574874Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-15T05:24:01.3574874Z"}}' @@ -3585,7 +3585,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -3634,7 +3634,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -3694,14 +3694,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:05:51.1777161Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-01-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_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8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-05-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUH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RodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=aIwiaR1jnfrAYkujFd_OPzyUkqbCMVWGrZNKrLCBuu7J6Vxi1ic68UQi6Ty3dhlK1F_XfKzI-aNRDJAK3BwOhukFeDHHUgsBFg26gQBm-fH85HEHU_cXoM5RGusjHuTUw9PVITw56D-JX6aBmMTDWbwAkg01VwknADceB-dKmUI5RQc_5KECJtVZgevObFWudlXBOOw0Cv8N0277-PFksUiWHZkM5yI8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 cache-control: - no-cache content-length: @@ -3713,7 +3713,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/953e6aa6-6ed5-49ad-876a-95844052ea5d/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ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NVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=M3CJCCszj73iQsyu-QiyidOkRPLn02IYnvmv_v2eI0Feav7PBaCpoBQJ1GsV4eOqUz28BFBMXpQ3sncv1TtzwXzbRlsXvaWFik5YUw-jPr9tS_UGa_kzUjFLNuyr3eEQzjmz8glcqNwg-MpPkOhRXFNQ8ifh2mO0r6o9f3Jr6wkalLZ_6wW9--vXR5oBfMT3G8Nm4jbBSzX1qeXzSl9gePZZDswz4Oq2WmjQxQfI10y5GCrJGdeX_hfouLWa-FZdsOs_90LwpKpMEN5pEEHkNVvoE_svOtgV1W-td-jNMj51haN5bfuRJKi4r4UlyvBWsXgNTDTnJtiB7-tKz7a5Vw&h=ObusA8Q_8a-QFoaykEFpRr5GdU9CqhTQLOAEa4CyoJ8 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/953e6aa6-6ed5-49ad-876a-95844052ea5d/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZP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Qmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=M3CJCCszj73iQsyu-QiyidOkRPLn02IYnvmv_v2eI0Feav7PBaCpoBQJ1GsV4eOqUz28BFBMXpQ3sncv1TtzwXzbRlsXvaWFik5YUw-jPr9tS_UGa_kzUjFLNuyr3eEQzjmz8glcqNwg-MpPkOhRXFNQ8ifh2mO0r6o9f3Jr6wkalLZ_6wW9--vXR5oBfMT3G8Nm4jbBSzX1qeXzSl9gePZZDswz4Oq2WmjQxQfI10y5GCrJGdeX_hfouLWa-FZdsOs_90LwpKpMEN5pEEHkNVvoE_svOtgV1W-td-jNMj51haN5bfuRJKi4r4UlyvBWsXgNTDTnJtiB7-tKz7a5Vw&h=ObusA8Q_8a-QFoaykEFpRr5GdU9CqhTQLOAEa4CyoJ8 pragma: - no-cache request-context: @@ -3745,7 +3745,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-01-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ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7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=aIwiaR1jnfrAYkujFd_OPzyUkqbCMVWGrZNKrLCBuu7J6Vxi1ic68UQi6Ty3dhlK1F_XfKzI-aNRDJAK3BwOhukFeDHHUgsBFg26gQBm-fH85HEHU_cXoM5RGusjHuTUw9PVITw56D-JX6aBmMTDWbwAkg01VwknADceB-dKmUI5RQc_5KECJtVZgevObFWudlXBOOw0Cv8N0277-PFksUiWHZkM5yI8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-05-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuw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QBm-fH85HEHU_cXoM5RGusjHuTUw9PVITw56D-JX6aBmMTDWbwAkg01VwknADceB-dKmUI5RQc_5KECJtVZgevObFWudlXBOOw0Cv8N0277-PFksUiWHZkM5yI8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d","name":"953e6aa6-6ed5-49ad-876a-95844052ea5d","status":"Running","startTime":"2023-11-14T08:05:51.8084133Z"}' @@ -3793,7 +3793,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-01-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB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rZNKrLCBuu7J6Vxi1ic68UQi6Ty3dhlK1F_XfKzI-aNRDJAK3BwOhukFeDHHUgsBFg26gQBm-fH85HEHU_cXoM5RGusjHuTUw9PVITw56D-JX6aBmMTDWbwAkg01VwknADceB-dKmUI5RQc_5KECJtVZgevObFWudlXBOOw0Cv8N0277-PFksUiWHZkM5yI8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-05-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfP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mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d","name":"953e6aa6-6ed5-49ad-876a-95844052ea5d","status":"Running","startTime":"2023-11-14T08:05:51.8084133Z"}' @@ -3841,7 +3841,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-01-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCW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XBOOw0Cv8N0277-PFksUiWHZkM5yI8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-05-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBg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ff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d","name":"953e6aa6-6ed5-49ad-876a-95844052ea5d","status":"Running","startTime":"2023-11-14T08:05:51.8084133Z"}' @@ -3889,7 +3889,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-01-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSS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Jup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d?api-version=2024-05-01-preview&t=638355459518652452&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGA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BJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=aIwiaR1jnfrAYkujFd_OPzyUkqbCMVWGrZNKrLCBuu7J6Vxi1ic68UQi6Ty3dhlK1F_XfKzI-aNRDJAK3BwOhukFeDHHUgsBFg26gQBm-fH85HEHU_cXoM5RGusjHuTUw9PVITw56D-JX6aBmMTDWbwAkg01VwknADceB-dKmUI5RQc_5KECJtVZgevObFWudlXBOOw0Cv8N0277-PFksUiWHZkM5yI8-XhhUksw8V6VBZUw8EPPyk3O_xQVT6yc6ftoxpDL8mYaHt7fgC40gtpTp2_jJkvRT9bkL9WXxijbbR2Ii5oXIOY-0QjG6oqV8eTofqgqTcorjNnPABEqDA&h=8jF2kJup3xyU9xcfJ035V2jvwfKDW7Ab0_zN22A-Q64 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/953e6aa6-6ed5-49ad-876a-95844052ea5d","name":"953e6aa6-6ed5-49ad-876a-95844052ea5d","status":"Succeeded","startTime":"2023-11-14T08:05:51.8084133Z","endTime":"2023-11-14T08:06:20.2491934Z"}' @@ -3937,7 +3937,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -3986,7 +3986,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -4035,7 +4035,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -4096,14 +4096,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"responseCacheType":"LocalCachePerRoute"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:06:31.0808258Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm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UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG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ZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM cache-control: - no-cache content-length: @@ -4115,7 +4115,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/663c89c8-0a14-4851-b94f-9eae3757b434/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29w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_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=ofMe5wz_15Uj4YOq7I7cPgMOowbpeTS17grjBxsUVkJ_1v6uqfcYjoD_hVBfeIGNQmJYohfR1UrqNwSIuM6cU-070tj6F7Nzz8GeZ-BV-xR1DpYBUmYbytHWprycG_HCuZ5QDzUm1boMI2JG_3Hxi2OtXZDGvSqjvcDCmlVuVZwntPrOXVUdIp8SFcsu1wXWrWKWaT3ah_liJvNLMK7-dSnbyTKBSWyCgUJpIPSTyTyK2mAFin-0XBaGE6f0VBI655by-kt66n5M8MbqzeXDFwz-Lg3VR3PCoPhrTHir9kUhVhcqyJot8KdsiZ0KvtJn1JuL3LHg-GF85sMwh96E0g&h=5nSRED9udam4c-XgBHot7QDG2CcgbKX26nEYec5NEow + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/663c89c8-0a14-4851-b94f-9eae3757b434/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8A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vSqjvcDCmlVuVZwntPrOXVUdIp8SFcsu1wXWrWKWaT3ah_liJvNLMK7-dSnbyTKBSWyCgUJpIPSTyTyK2mAFin-0XBaGE6f0VBI655by-kt66n5M8MbqzeXDFwz-Lg3VR3PCoPhrTHir9kUhVhcqyJot8KdsiZ0KvtJn1JuL3LHg-GF85sMwh96E0g&h=5nSRED9udam4c-XgBHot7QDG2CcgbKX26nEYec5NEow pragma: - no-cache request-context: @@ -4147,7 +4147,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt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lQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYT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UyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434","name":"663c89c8-0a14-4851-b94f-9eae3757b434","status":"Running","startTime":"2023-11-14T08:06:31.8684088Z"}' @@ -4195,7 +4195,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwY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000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5U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n_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434","name":"663c89c8-0a14-4851-b94f-9eae3757b434","status":"Running","startTime":"2023-11-14T08:06:31.8684088Z"}' @@ -4243,7 +4243,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFB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wMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe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UwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434","name":"663c89c8-0a14-4851-b94f-9eae3757b434","status":"Running","startTime":"2023-11-14T08:06:31.8684088Z"}' @@ -4291,7 +4291,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b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ggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5W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TahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434","name":"663c89c8-0a14-4851-b94f-9eae3757b434","status":"Running","startTime":"2023-11-14T08:06:31.8684088Z"}' @@ -4339,7 +4339,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQ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8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCgg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oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434","name":"663c89c8-0a14-4851-b94f-9eae3757b434","status":"Running","startTime":"2023-11-14T08:06:31.8684088Z"}' @@ -4387,7 +4387,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-01-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2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GPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=bH9dw_UYk4DQQXkrUWHdNm11rbFeT5oX1tnRleRfYc0adDynXNcVLlLqEmwHoM9W9DYb9t5MF63hJKzr1MzOgceHstYa931UF38Y6ozDpxhwZm_7URliFQTh2XcEqjZZebzyKjz8v6TN-Ge1TjLbuZJ-Ur_iP5m7BCmAD6-tZjGdA9wgdQGmsbfGnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434?api-version=2024-05-01-preview&t=638355459919246579&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCi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Gnt5v2QEUPo4cb9hVmd517LWOTHRoRIaeE9xaz3UDffxPx62SwKISIjaBq9qNWPbT-eEihd6JnjXjlaAaXzQYBkPLcdtlQIPNsAmVLFYKP6wgQwPyjoRc0WfR-ccCZ8oG3zY5AFqiTGWOPZSYHDicwKXtpFY1AA&h=u0ubn9vuUjadQGMo6xJeF4CP-Sy7sVt56rsQjFQ4imM response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/663c89c8-0a14-4851-b94f-9eae3757b434","name":"663c89c8-0a14-4851-b94f-9eae3757b434","status":"Succeeded","startTime":"2023-11-14T08:06:31.8684088Z","endTime":"2023-11-14T08:07:23.5923918Z"}' @@ -4435,7 +4435,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -4484,7 +4484,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"2d794c01d43b476b8c175f58b292dcfb","networkProfile":{"outboundIPs":{"publicIPs":["20.187.165.112","20.187.167.101"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"jiec-e-eastasia.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia","name":"jiec-e-eastasia","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:24:01.3574874Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-15T05:24:01.3574874Z"}}' @@ -4534,7 +4534,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -4583,7 +4583,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -4644,14 +4644,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"timeToLive":"10s","responseCacheType":"LocalCachePerRoute"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:07:35.0476503Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwI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RwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJ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BggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg cache-control: - no-cache content-length: @@ -4663,7 +4663,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/cd1ab337-6453-4d74-9fb5-ab8e86208179/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355460559070514&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMw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4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=G0L1JwY3QkTjhlkGIja8kwPbsHvJkrbbBnI9IC__1y0z_JUfqYvNLgltuwlgKo7SQ7L-B6lAZNaC_FMfjxk-bBFG1FJ1oabh2nOZD6txKTgL32z65jO6vQpHSpAp7t9y8Uoqwe-VI6zNBzqWLALR8PTGgPBARPaiP93ikzKvEnIZnFCjZ8gaW1npODJd1wMBUzsAIUqOTD6E6ai4veq31ZkkmskhVYq8rtO885AwZiGl07yjncATjSgpGRI6LHecylMalIYshEz6IhTLK7P9_JXX1LPYrtUaGRQGiUljksHjQyhUtLweyJRCnCMNkP487ZAt3J5yBvJfKwuwFF2dOw&h=d7xHIBrCfzoqRNLHZFSgb28vWBBFQep3-inXz4RyR5A + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/cd1ab337-6453-4d74-9fb5-ab8e86208179/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355460559070514&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQ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JkrbbBnI9IC__1y0z_JUfqYvNLgltuwlgKo7SQ7L-B6lAZNaC_FMfjxk-bBFG1FJ1oabh2nOZD6txKTgL32z65jO6vQpHSpAp7t9y8Uoqwe-VI6zNBzqWLALR8PTGgPBARPaiP93ikzKvEnIZnFCjZ8gaW1npODJd1wMBUzsAIUqOTD6E6ai4veq31ZkkmskhVYq8rtO885AwZiGl07yjncATjSgpGRI6LHecylMalIYshEz6IhTLK7P9_JXX1LPYrtUaGRQGiUljksHjQyhUtLweyJRCnCMNkP487ZAt3J5yBvJfKwuwFF2dOw&h=d7xHIBrCfzoqRNLHZFSgb28vWBBFQep3-inXz4RyR5A pragma: - no-cache request-context: @@ -4695,7 +4695,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvz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YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-l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shp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Running","startTime":"2023-11-14T08:07:35.8439805Z"}' @@ -4743,7 +4743,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5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jY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCA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5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Running","startTime":"2023-11-14T08:07:35.8439805Z"}' @@ -4791,7 +4791,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNx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WUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus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YIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Running","startTime":"2023-11-14T08:07:35.8439805Z"}' @@ -4839,7 +4839,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmE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fBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGR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_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Running","startTime":"2023-11-14T08:07:35.8439805Z"}' @@ -4887,7 +4887,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITO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vDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25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aIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Running","startTime":"2023-11-14T08:07:35.8439805Z"}' @@ -4935,7 +4935,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0O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SSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=LyZS4UBSmBXCKW6fMahnIDy8l7b999aPiCzrRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiu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pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Running","startTime":"2023-11-14T08:07:35.8439805Z"}' @@ -4983,7 +4983,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-01-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBA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rRuV2KB1xswlroih3kNBGP9wo1hFwqq_AR7PK3AhdBgAfwo3K0hj53d-684Ubjr8ubcWkf6pqFf5EC8cTiEJ1kUasnCRWDogXPtti25dT0vD4wb0k9YahgLlhG5y40k9PW_JgAw-7aV3Nr0PExyRa5YOp42xV_P05pPu8AXZu2NBaWS7O5ykyZTFntUVJTWMDAwIY2c77dsTB8e8wIzW6oUUSXsxBHrXZD3d1sV1f9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179?api-version=2024-05-01-preview&t=638355460558914345&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQv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9yLIS8Z2KpJcIiWH4GIxXkn4vKgtbnnFWViMwxITHjY6fOpcBGflXISc7YejCUc1qOm05uvDbA&h=931QjGLvzpr-9oUGJ3h_VR4WneQ3I1f5Jkshp80lvCg response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/cd1ab337-6453-4d74-9fb5-ab8e86208179","name":"cd1ab337-6453-4d74-9fb5-ab8e86208179","status":"Succeeded","startTime":"2023-11-14T08:07:35.8439805Z","endTime":"2023-11-14T08:08:37.1171101Z"}' @@ -5031,7 +5031,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -5080,7 +5080,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"2d794c01d43b476b8c175f58b292dcfb","networkProfile":{"outboundIPs":{"publicIPs":["20.187.165.112","20.187.167.101"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"jiec-e-eastasia.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia","name":"jiec-e-eastasia","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:24:01.3574874Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-15T05:24:01.3574874Z"}}' @@ -5130,7 +5130,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -5179,7 +5179,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -5240,14 +5240,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"size":"10KB","timeToLive":"10s","responseCacheType":"LocalCachePerInstance"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:08:48.5953066Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACA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JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=M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qzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po cache-control: - no-cache content-length: @@ -5259,7 +5259,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/e37d94f3-c376-469f-a007-13b24f165fad/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMj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7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=HCAJU8NSMQjHvaDYH4PiyaCKPCQFmZFPXaayg3urlgTXx7kPqPQ0MTxz008AkwCzBQCUeBjASJdq0qhfIZcb4gP1LaBlCHhvJMuxAE4U5plVhcp6BAhwh06q0qy-mG0pYmoGNOzpx5ki0OWGHTJGQ8x_jtXIzbuYmC9SYaSKpRtJLJ78dVUy0qUoJyezJ2SX0sSHkliwEdwwlnvlIpXhnZlqBkzjLGB9jejazuHUHjVfb4B0pSzEllxgWx9ZSM8K0UJbuPK-B9bS-gmk2s3Y_9B_x1IMruaEtIKemlkHuMkQ1mn3VI8NpKRSUKdx8Kckc2EoWRGtgTA3Rsv0gGF2Zw&h=s8icfZUz-DLgumQ27tUDpi8tv42eRtGKfNyMLN4DSZs + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/e37d94f3-c376-469f-a007-13b24f165fad/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuw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U5plVhcp6BAhwh06q0qy-mG0pYmoGNOzpx5ki0OWGHTJGQ8x_jtXIzbuYmC9SYaSKpRtJLJ78dVUy0qUoJyezJ2SX0sSHkliwEdwwlnvlIpXhnZlqBkzjLGB9jejazuHUHjVfb4B0pSzEllxgWx9ZSM8K0UJbuPK-B9bS-gmk2s3Y_9B_x1IMruaEtIKemlkHuMkQ1mn3VI8NpKRSUKdx8Kckc2EoWRGtgTA3Rsv0gGF2Zw&h=s8icfZUz-DLgumQ27tUDpi8tv42eRtGKfNyMLN4DSZs pragma: - no-cache request-context: @@ -5291,7 +5291,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3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NqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwY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Y3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad","name":"e37d94f3-c376-469f-a007-13b24f165fad","status":"Running","startTime":"2023-11-14T08:08:49.4997894Z"}' @@ -5339,7 +5339,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAa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https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtp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CN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad","name":"e37d94f3-c376-469f-a007-13b24f165fad","status":"Running","startTime":"2023-11-14T08:08:49.4997894Z"}' @@ -5387,7 +5387,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwgg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JTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jG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72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad","name":"e37d94f3-c376-469f-a007-13b24f165fad","status":"Running","startTime":"2023-11-14T08:08:49.4997894Z"}' @@ -5435,7 +5435,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165f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drsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5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n_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad","name":"e37d94f3-c376-469f-a007-13b24f165fad","status":"Running","startTime":"2023-11-14T08:08:49.4997894Z"}' @@ -5483,7 +5483,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5G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l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=JDB19y76YB-dtedHXUB5AeHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEV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IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad","name":"e37d94f3-c376-469f-a007-13b24f165fad","status":"Running","startTime":"2023-11-14T08:08:49.4997894Z"}' @@ -5531,7 +5531,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-01-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD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eHO1kjfrZEI2yNwUHu6mC879y4VC93LJo-6nWUm5I_E2ekqMi8e7OwO0s_IFIh-HRS5e6Ah5TjOTi77QZu1UhInq6I_bC-xWkyCsL3UYkjetrEWHP7jD5McupLoRsNJ3DAF_gsXhDm1tBiKd5DFr1_F2XubffCAL6Npwtp94IaMKlrXg5ietXpUDpspJUZNqWdQVzUH5pRAua-EHvEexXzcV9yu8XD8FUz0L-EdyHWGvV44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad?api-version=2024-05-01-preview&t=638355461295641087&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_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44xDPYfQUKvfjaGkc6Jq9Zt3098icnjbbQwbUVsL661M3TCAPv1HRMSDICRCAQoqaQWFz1fCd0t558wfhbfw&h=tWOgugQ3MP1gXKbAkNMb4WxASvirYfOVizH4KnMH8Po response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/e37d94f3-c376-469f-a007-13b24f165fad","name":"e37d94f3-c376-469f-a007-13b24f165fad","status":"Succeeded","startTime":"2023-11-14T08:08:49.4997894Z","endTime":"2023-11-14T08:09:44.363277Z"}' @@ -5579,7 +5579,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -5628,7 +5628,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"2d794c01d43b476b8c175f58b292dcfb","networkProfile":{"outboundIPs":{"publicIPs":["20.187.165.112","20.187.167.101"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"jiec-e-eastasia.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia","name":"jiec-e-eastasia","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:24:01.3574874Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-15T05:24:01.3574874Z"}}' @@ -5678,7 +5678,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -5727,7 +5727,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -5788,14 +5788,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"size":"10KB","timeToLive":"11m","responseCacheType":"LocalCachePerRoute"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:09:52.8932302Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0S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Y3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-05-01-preview&t=638355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OYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY cache-control: - no-cache content-length: @@ -5807,7 +5807,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/0a7251ea-f539-44f7-83a1-fe2670b22123/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355461936745329&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxM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AEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=QuCMfsyoiiAaaBt8j9IFPAjHLtKP_r9Qy8rdY2q5Ezeyfyhp4GlH-Kw0OdF9fC4aGEm_gCWImKAJIqLd-2yA6ZEmHvoO7hQOF_4-v7JZJMJf24t6Z9CcNwq5tJm1sU55bIBgt5okCFxhBatkRZOJWdFAiBgxqbAChV_-C1ytgZreaBkAmhv3xSrKCAWhmmQEFkWkar0HUWETuJtHf8SSgOoEOROd3LYxYL2FgV8qQFeUC0YnE2Tp3IxOnDgM_rZC7-dTj1WznKflBlFbdjvr3dRRKr91L6wepOfbly56a63n2x7uSUvtHAHXWMUFZ0W9S1a007V-3BmfgcHgya-xNQ&h=mq7_Wk3f-eqqJzHLAI__ZuAuQk3xsSAj9OIO2h0mnRQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/0a7251ea-f539-44f7-83a1-fe2670b22123/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355461936745329&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-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yA6ZEmHvoO7hQOF_4-v7JZJMJf24t6Z9CcNwq5tJm1sU55bIBgt5okCFxhBatkRZOJWdFAiBgxqbAChV_-C1ytgZreaBkAmhv3xSrKCAWhmmQEFkWkar0HUWETuJtHf8SSgOoEOROd3LYxYL2FgV8qQFeUC0YnE2Tp3IxOnDgM_rZC7-dTj1WznKflBlFbdjvr3dRRKr91L6wepOfbly56a63n2x7uSUvtHAHXWMUFZ0W9S1a007V-3BmfgcHgya-xNQ&h=mq7_Wk3f-eqqJzHLAI__ZuAuQk3xsSAj9OIO2h0mnRQ pragma: - no-cache request-context: @@ -5839,7 +5839,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWh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KIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-05-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwC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-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123","name":"0a7251ea-f539-44f7-83a1-fe2670b22123","status":"Running","startTime":"2023-11-14T08:09:53.6084777Z"}' @@ -5887,7 +5887,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgY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OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-05-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzA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DEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123","name":"0a7251ea-f539-44f7-83a1-fe2670b22123","status":"Running","startTime":"2023-11-14T08:09:53.6084777Z"}' @@ -5935,7 +5935,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvd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CkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123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rsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123","name":"0a7251ea-f539-44f7-83a1-fe2670b22123","status":"Running","startTime":"2023-11-14T08:09:53.6084777Z"}' @@ -5983,7 +5983,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNR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NVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-05-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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eOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123","name":"0a7251ea-f539-44f7-83a1-fe2670b22123","status":"Running","startTime":"2023-11-14T08:09:53.6084777Z"}' @@ -6031,7 +6031,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFAD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BWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-05-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJ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hghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123","name":"0a7251ea-f539-44f7-83a1-fe2670b22123","status":"Running","startTime":"2023-11-14T08:09:53.6084777Z"}' @@ -6079,7 +6079,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-01-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEz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uuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=FGbDvjIEQAAM_YiTeMv55mCMRelr3qf4eshdZbxWryVM7qkTL0iK5qJTMFInPjeVT9xWIaVRqLrRK12Iv_7r1ImlNyDBd50CTXyS3uJFaxjsNdJbI_MiA7MA2yQKd_-ayGt2FYEqMkZ5q-b82rDja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123?api-version=2024-05-01-preview&t=638355461936588624&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeE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Dja4ofZvyolWNmpHFyNndSJPRQIGvNGH058er3RRGLeQNieSKIaYC-v91eb02KOG4y7QjlPi4NpZGXi9FrQNMYyx-S1oNvKy5IvwGs-VL2k9hhynVlIlX4U8MfpBl_HI542M98Jniy4v1n3vZJCyNJ1yZnYKhVlGEeXNpgqPkglQDTlgkdyUz_CR5E5srzPkfqYg&h=YGZx2qLE3OqghaRnIQqGwGFk9x1s5QWTos9-nMRnEpY response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/0a7251ea-f539-44f7-83a1-fe2670b22123","name":"0a7251ea-f539-44f7-83a1-fe2670b22123","status":"Succeeded","startTime":"2023-11-14T08:09:53.6084777Z","endTime":"2023-11-14T08:10:47.5058308Z"}' @@ -6127,7 +6127,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -6176,7 +6176,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -6237,14 +6237,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"size":"10KB","timeToLive":"11m","responseCacheType":"LocalCachePerRoute"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:10:53.1717691Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-01-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCA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5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DKgx96sWDtndI6V1KIlKApaLUNDIqlnIqmJZW7HRxniRBnvYjhSjEvkgIICbOCru41lsnK8-f5PCwXstCTHDhbRjUnNYP9Ed8rmN-bB3YSHfYIsWIV6RD_VR4V5FCBDItQnFRVWPt7DiGPkCcZMKphBWQvACVdWLaJiXddjvP65qI_2t3hO4nWo3m4nBuPyY5fsXZGSVgkb502-xmxd_qF-CxbQ2PEIYmjA7L2MiqWmBAzg7vgIrfYs61FziFXbKhw5SsxVlWFAixrlFBT3QQ8V78mvHX8zdEIFx0Ho8yGGMRg7NQgi7Lv7PaL9m4KrbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-05-01-preview&t=638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XOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DKgx96sWDtndI6V1KIlKApaLUNDIqlnIqmJZW7HRxniRBnvYjhSjEvkgIICbOCru41lsnK8-f5PCwXstCTHDhbRjUnNYP9Ed8rmN-bB3YSHfYIsWIV6RD_VR4V5FCBDItQnFRVWPt7DiGPkCcZMKphBWQvACVdWLaJiXddjvP65qI_2t3hO4nWo3m4nBuPyY5fsXZGSVgkb502-xmxd_qF-CxbQ2PEIYmjA7L2MiqWmBAzg7vgIrfYs61FziFXbKhw5SsxVlWFAixrlFBT3QQ8V78mvHX8zdEIFx0Ho8yGGMRg7NQgi7Lv7PaL9m4KrbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A cache-control: - no-cache content-length: @@ -6256,7 +6256,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/bd651d94-a965-46ec-a8c8-01be37576af1/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNM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ow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=Y8gzYVG4dSnqh55ZKkNs0Gw3ynlk2m-wpGEATYg0OvQ7cbyzu6Ohn1rvdmruHYFqgt8Gcu0_5uiqFdWSIAJUCSjAcQ9S5PLsLiik3v9I9u6a16E5BTuY-VH6gyd5QRaXX0mits1tK57a8wekm1_wAnTY9hWB8frLQpB08fEnyinkWNhwjTUGGlI550sQ-SR_MHSyJI_l9C5XAEwsEoHxo2LxL1uEvZ2eIAaRKK8xOx64fDU3MEaOtMiKVAo5ezrFbWyxhRErjq-XbEbsO4lafo-TwpIKjBPv8hcKGUhX6ZLkbxuxC-X_YZhaComyotGO1BP1MVJR3nRu9ld_SIgrCQ&h=Ax3eA2QqKl9BuCKXhhcZ1Q0iTTo1_h2Fqg4rFY3eTz0 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/bd651d94-a965-46ec-a8c8-01be37576af1/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbw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cu0_5uiqFdWSIAJUCSjAcQ9S5PLsLiik3v9I9u6a16E5BTuY-VH6gyd5QRaXX0mits1tK57a8wekm1_wAnTY9hWB8frLQpB08fEnyinkWNhwjTUGGlI550sQ-SR_MHSyJI_l9C5XAEwsEoHxo2LxL1uEvZ2eIAaRKK8xOx64fDU3MEaOtMiKVAo5ezrFbWyxhRErjq-XbEbsO4lafo-TwpIKjBPv8hcKGUhX6ZLkbxuxC-X_YZhaComyotGO1BP1MVJR3nRu9ld_SIgrCQ&h=Ax3eA2QqKl9BuCKXhhcZ1Q0iTTo1_h2Fqg4rFY3eTz0 pragma: - no-cache request-context: @@ -6288,7 +6288,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-01-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGA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t3hO4nWo3m4nBuPyY5fsXZGSVgkb502-xmxd_qF-CxbQ2PEIYmjA7L2MiqWmBAzg7vgIrfYs61FziFXbKhw5SsxVlWFAixrlFBT3QQ8V78mvHX8zdEIFx0Ho8yGGMRg7NQgi7Lv7PaL9m4KrbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-05-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQH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response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1","name":"bd651d94-a965-46ec-a8c8-01be37576af1","status":"Running","startTime":"2023-11-14T08:10:53.9381096Z"}' @@ -6336,7 +6336,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-01-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda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rbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-05-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHa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uZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DKgx96sWDtndI6V1KIlKApaLUNDIqlnIqmJZW7HRxniRBnvYjhSjEvkgIICbOCru41lsnK8-f5PCwXstCTHDhbRjUnNYP9Ed8rmN-bB3YSHfYIsWIV6RD_VR4V5FCBDItQnFRVWPt7DiGPkCcZMKphBWQvACVdWLaJiXddjvP65qI_2t3hO4nWo3m4nBuPyY5fsXZGSVgkb502-xmxd_qF-CxbQ2PEIYmjA7L2MiqWmBAzg7vgIrfYs61FziFXbKhw5SsxVlWFAixrlFBT3QQ8V78mvHX8zdEIFx0Ho8yGGMRg7NQgi7Lv7PaL9m4KrbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1","name":"bd651d94-a965-46ec-a8c8-01be37576af1","status":"Running","startTime":"2023-11-14T08:10:53.9381096Z"}' @@ -6384,7 +6384,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1?api-version=2024-01-01-preview&t=638355462540155090&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxU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UuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DKgx96sWDtndI6V1KIlKApaLUNDIqlnIqmJZW7HRxniRBnvYjhSjEvkgIICbOCru41lsnK8-f5PCwXstCTHDhbRjUnNYP9Ed8rmN-bB3YSHfYIsWIV6RD_VR4V5FCBDItQnFRVWPt7DiGPkCcZMKphBWQvACVdWLaJiXddjvP65qI_2t3hO4nWo3m4nBuPyY5fsXZGSVgkb502-xmxd_qF-CxbQ2PEIYmjA7L2MiqWmBAzg7vgIrfYs61FziFXbKhw5SsxVlWFAixrlFBT3QQ8V78mvHX8zdEIFx0Ho8yGGMRg7NQgi7Lv7PaL9m4KrbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/e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FBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=DKgx96sWDtndI6V1KIlKApaLUNDIqlnIqmJZW7HRxniRBnvYjhSjEvkgIICbOCru41lsnK8-f5PCwXstCTHDhbRjUnNYP9Ed8rmN-bB3YSHfYIsWIV6RD_VR4V5FCBDItQnFRVWPt7DiGPkCcZMKphBWQvACVdWLaJiXddjvP65qI_2t3hO4nWo3m4nBuPyY5fsXZGSVgkb502-xmxd_qF-CxbQ2PEIYmjA7L2MiqWmBAzg7vgIrfYs61FziFXbKhw5SsxVlWFAixrlFBT3QQ8V78mvHX8zdEIFx0Ho8yGGMRg7NQgi7Lv7PaL9m4KrbxCSIRYfEIIvK_GxPL0EA8Q&h=K3Ew7aqiUVTe9oyx1CBrfMwE5GGYbTRqwtushAGmw_A response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/bd651d94-a965-46ec-a8c8-01be37576af1","name":"bd651d94-a965-46ec-a8c8-01be37576af1","status":"Succeeded","startTime":"2023-11-14T08:10:53.9381096Z","endTime":"2023-11-14T08:11:15.9114103Z"}' @@ -6432,7 +6432,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -6481,7 +6481,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -6541,14 +6541,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:11:21.018494Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxI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gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhu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tvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q cache-control: - no-cache content-length: @@ -6560,7 +6560,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/58a22592-bc72-49b5-a0c3-eca84a635f71/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUH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RodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sk1kFsGhg53LWjY4dZugXpn37AAf2KrYf-qlXdeJ4wbByWF2hMS_0t2xY7ZCf_c8PowjnbhoJAdFiteOkNxcr0_cqf15ar3PcPHD4Ldxa9zWO7S2mG_EBtbAPyfjj3lp-A4lpWuIorcdmVlsarTqbnVQo1nQp-VAU7poiiEPTCnnj64wTnXlxgtIOIVhdet_TLi1ii4abvLkmOD_vL-sR185NEO2v3fYPsIsm9_F6ZFBIi8CUZSTU6Unoq24fDCC2ZSBnZTq-PyUKzShcA5kKwF0zgxTD186rCyvwhJ-fnL4t4WSYjoO_QbcvTIXY6ZHhLdKjiUNaqyUZ_LcTAAxMA&h=zLdgQiuphH9RzauNYyA0isbnPWpY6UZqnPFmsI9xoaI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/58a22592-bc72-49b5-a0c3-eca84a635f71/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FN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gNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sk1kFsGhg53LWjY4dZugXpn37AAf2KrYf-qlXdeJ4wbByWF2hMS_0t2xY7ZCf_c8PowjnbhoJAdFiteOkNxcr0_cqf15ar3PcPHD4Ldxa9zWO7S2mG_EBtbAPyfjj3lp-A4lpWuIorcdmVlsarTqbnVQo1nQp-VAU7poiiEPTCnnj64wTnXlxgtIOIVhdet_TLi1ii4abvLkmOD_vL-sR185NEO2v3fYPsIsm9_F6ZFBIi8CUZSTU6Unoq24fDCC2ZSBnZTq-PyUKzShcA5kKwF0zgxTD186rCyvwhJ-fnL4t4WSYjoO_QbcvTIXY6ZHhLdKjiUNaqyUZ_LcTAAxMA&h=zLdgQiuphH9RzauNYyA0isbnPWpY6UZqnPFmsI9xoaI pragma: - no-cache request-context: @@ -6592,7 +6592,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCB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Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3lu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DC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71","name":"58a22592-bc72-49b5-a0c3-eca84a635f71","status":"Running","startTime":"2023-11-14T08:11:21.734286Z"}' @@ -6640,7 +6640,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0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IqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CG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lVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71","name":"58a22592-bc72-49b5-a0c3-eca84a635f71","status":"Running","startTime":"2023-11-14T08:11:21.734286Z"}' @@ -6688,7 +6688,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCC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o&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_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KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71","name":"58a22592-bc72-49b5-a0c3-eca84a635f71","status":"Running","startTime":"2023-11-14T08:11:21.734286Z"}' @@ -6736,7 +6736,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJn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wNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKt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hXLCXFwvjIc7o8iUSdXNJfP4Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71","name":"58a22592-bc72-49b5-a0c3-eca84a635f71","status":"Running","startTime":"2023-11-14T08:11:21.734286Z"}' @@ -6784,7 +6784,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosY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Q8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvd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CkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71","name":"58a22592-bc72-49b5-a0c3-eca84a635f71","status":"Running","startTime":"2023-11-14T08:11:21.734286Z"}' @@ -6832,7 +6832,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-01-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCg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oNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71?api-version=2024-05-01-preview&t=638355462817997926&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5B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KidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=vp6D4QOg0KYQ9abAs7Y9gyJRv5QAoxq5WgbKQvf0kEy2gCq-0DZ-DPs5qA0At7MGCGlVrTHVocrhmo-F_efZcKyKcF6wd0c2hK05hFYb1dK-nNzLTgR2MIGA0RUB13gvMOIK3n7--YRohwNO4vxpVYFXUmZahDmxvwaa0TGSC9ImkyeiAcod5c4Hy13XzSRXn-HFZIzev7nGGm5eYTdnJK0KNKKPrx8xyqPJFetttTEam_SdGbbVW27cNhhiUkv-gst7uqH_msy4sFSFtvw4y8X0VXMCQPH8UrQ8NnHPMUc4X29KRTsbryDsfivcGmeVA6XkpDTAS9pZEi1AQHNVmw&h=TqFRJ_7iI__Mobf1ElhXLCXFwvjIc7o8iUSdXNJfP4Q response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/58a22592-bc72-49b5-a0c3-eca84a635f71","name":"58a22592-bc72-49b5-a0c3-eca84a635f71","status":"Succeeded","startTime":"2023-11-14T08:11:21.734286Z","endTime":"2023-11-14T08:12:13.2540013Z"}' @@ -6880,7 +6880,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -6929,7 +6929,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"2d794c01d43b476b8c175f58b292dcfb","networkProfile":{"outboundIPs":{"publicIPs":["20.187.165.112","20.187.167.101"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"jiec-e-eastasia.asc-test.net","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastasia","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia","name":"jiec-e-eastasia","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:24:01.3574874Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-10-15T05:24:01.3574874Z"}}' @@ -6979,7 +6979,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -7028,7 +7028,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -7089,14 +7089,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"timeToLive":"11m","responseCacheType":"LocalCachePerRoute"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T08:12:24.0953002Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-01-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkE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vRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGq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4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 cache-control: - no-cache content-length: @@ -7108,7 +7108,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4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Qk-Fhs7lnUb_GvsO2MeqXU7R0Kd1P7fMgsg5Rz2BqbDWpx4S9JCPeaZRtJ53CPwFTcM8glv25mNOxj21RM2NID1Mv2fyUQ&h=vKqDByGBJz45fQ3bwuMNn3UOnNZ7eoYcHNYs0DqmK1c + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAG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-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-01-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCA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lMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwI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V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","name":"6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","status":"Running","startTime":"2023-11-14T08:12:24.862058Z"}' @@ -7188,7 +7188,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-e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YBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0E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qemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","name":"6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","status":"Running","startTime":"2023-11-14T08:12:24.862058Z"}' @@ -7236,7 +7236,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-01-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYK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eru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvb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tvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","name":"6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","status":"Running","startTime":"2023-11-14T08:12:24.862058Z"}' @@ -7284,7 +7284,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-01-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAY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MBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=YMpv2TG5ub01HVvhFRo023Skg8lC_8euuEcFqtcOHB1fFlKI-Ij_z4RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrN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AIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","name":"6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","status":"Running","startTime":"2023-11-14T08:12:24.862058Z"}' @@ -7332,7 +7332,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-01-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA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RtWlpoZ3_YBPabkot_4Y8hZgFZVAQ_JpJmH7j216wFnwG6PyKFhYFua5bnGhWqPjnmo1NQx7eMgc8HaFAIUbVcG9eq2vXL87PN02BoSx2NI8nKSt5V0CuzFdj4vSaIiWhLiQMqJ1doTCjygVMymkTXpf9prbFmydXZqF4Mywa4_OtJky4xNX4ifsk03mhDA_A52qjhlU-gK2MUV9RC12VQod0xJIJcp8QBYZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd?api-version=2024-05-01-preview&t=638355463449234340&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5Wl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ZH8O1yQPN8FJmIZt_M64RxDzRNfA9AefsxLAZQkc4F9r4bVhQD6akgonqI32w&h=J5ymUFYLjPZkY2p9S8ofjPhMi7DbIathifzjHr6oCf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","name":"6ac0640f-2e9d-401d-8a3a-2f3eb9910bfd","status":"Succeeded","startTime":"2023-11-14T08:12:24.862058Z","endTime":"2023-11-14T08:13:07.0835463Z"}' @@ -7380,7 +7380,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -7429,7 +7429,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme @@ -7490,14 +7490,14 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Updating","httpsOnly":false,"apiMetadataProperties":{"title":"Acme Fitness Store","description":"Acme Fitness Store API","documentation":"","version":"v1.0","serverUrl":"https://jiec-e-eastasia-gateway-708cf.svc.asc-test.net"},"corsProperties":{"allowedOrigins":["*"],"allowedOriginPatterns":[],"allowedMethods":[],"allowedHeaders":[],"allowCredentials":false,"exposedHeaders":[]},"resourceRequests":{"cpu":"1","memory":"2Gi"},"instances":null,"operatorProperties":{"resourceRequests":{"cpu":"1","memory":"2Gi","instanceCount":1},"instances":null},"environmentVariables":{"properties":{},"secrets":null},"clientAuth":{"certificateVerification":"Disabled"},"responseCacheProperties":{"size":"13MB","responseCacheType":"LocalCachePerInstance"}},"type":"Microsoft.AppPlatform/Spring/gateways","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default","name":"default","systemData":{"createdBy":"jiec@microsoft.com","createdByType":"User","createdAt":"2023-10-15T05:27:16.5269715Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-14T14:40:48.3354813Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0J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YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMR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z9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 cache-control: - no-cache content-length: @@ -7509,7 +7509,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/d55096f7-2dfb-40e5-a94d-4e7a06db9714/Spring/jiec-e-eastasia?api-version=2024-01-01-preview&t=638355696492573567&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIw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=RwY9TYR1rqG6MMnDwAmc8SYAeY0OeoPHTUMU1P78M1ACtgeh-leMfqVEkq0K3DMrLfYOfG89hkPfSh00zS6OdPdyAReYNPcs2yeK60F1SCnSgMCpJZMboDVss9bayjLDjG-394rHG9x3hRcUHEtaVHiUR-CSFjsLTLx-Cf9InPtIIanSiQw0eXLos5uDqSMl8xvpwts6HgZm1DofNOITFaop7Kj6gpA_kbwg34Wad7du05Hdt1cEE1oIwt3En4I_3tFFRAl3hCdJPF82yxK19_QvFNjrcvO9X5tjolowdSoK41PQjw-m124yTmMfTKwCee8Y09jfuH6ZtO3B1GKPFg&h=emPAwnHgIseGNmvpVHiZTtHYHdCv09QuvltHWqwUqmQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/d55096f7-2dfb-40e5-a94d-4e7a06db9714/Spring/jiec-e-eastasia?api-version=2024-05-01-preview&t=638355696492573567&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5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EE1oIwt3En4I_3tFFRAl3hCdJPF82yxK19_QvFNjrcvO9X5tjolowdSoK41PQjw-m124yTmMfTKwCee8Y09jfuH6ZtO3B1GKPFg&h=emPAwnHgIseGNmvpVHiZTtHYHdCv09QuvltHWqwUqmQ pragma: - no-cache request-context: @@ -7541,7 +7541,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m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vOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChl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oNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Running","startTime":"2023-11-14T14:40:49.1742086Z"}' @@ -7589,7 +7589,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys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MDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-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BAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Running","startTime":"2023-11-14T14:40:49.1742086Z"}' @@ -7637,7 +7637,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS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wwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQ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8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Running","startTime":"2023-11-14T14:40:49.1742086Z"}' @@ -7685,7 +7685,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgA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nfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZp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IykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Running","startTime":"2023-11-14T14:40:49.1742086Z"}' @@ -7733,7 +7733,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcN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tz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dWQbjrM0OxdM5KsCgQExbFO0JWtE5DbqwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw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YgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Running","startTime":"2023-11-14T14:40:49.1742086Z"}' @@ -7781,7 +7781,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggE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qwSSGsd65nfzw6QA-2xeuEqpZPhKs84xtpO3ZYN6Hd76aSJTdE-Havocwb7mWoJV12OTSnwSPOIckYgOcjbXSn7CmoTkEF7wTDYfWdwY-30Ups-gR7FJXXtGEBWOzxDul0L-A8mTOsglhYZgmoOUg1o_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3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-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Running","startTime":"2023-11-14T14:40:49.1742086Z"}' @@ -7829,7 +7829,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-01-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZC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_F40GEm6VQt-nAevbXeBl_EVaXkzPkaNhbf5MKaBACbJebJRPB8B6wcyDlKWYrU7sF0LCOfH4Fl-wNe4R-AwUqVrbRxamRJlFlXnkFo5JHGi-rWREgC-fd01v0AsGvGsKvzE54ENcevm1QZhAES4QQboa6BEv6hg&h=YTOvn030eRQXPCDvOFgsqZg9ZSJaACs216l5ZTBHyf4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714?api-version=2024-05-01-preview&t=638355696492417294&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgj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ba-86f1-4242-aff1-27938fb04531/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/jiec-e-eastasia/operationId/d55096f7-2dfb-40e5-a94d-4e7a06db9714","name":"d55096f7-2dfb-40e5-a94d-4e7a06db9714","status":"Succeeded","startTime":"2023-11-14T14:40:49.1742086Z","endTime":"2023-11-14T14:41:46.795779Z"}' @@ -7877,7 +7877,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiec-rg/providers/Microsoft.AppPlatform/Spring/jiec-e-eastasia/gateways/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"public":false,"url":"","provisioningState":"Succeeded","httpsOnly":false,"apiMetadataProperties":{"title":"Acme diff --git a/src/spring/azext_spring/tests/latest/recordings/test_service_registry.yaml b/src/spring/azext_spring/tests/latest/recordings/test_service_registry.yaml index 3e034e79615..6e1a6673c28 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_service_registry.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_service_registry.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","details":null}}' @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:40 GMT + - Tue, 16 Apr 2024 06:36:31 GMT expires: - '-1' pragma: @@ -36,12 +36,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 02B74CAEA4F243C9ACD88D0F98467AB9 Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:31Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 404 message: Not Found @@ -59,21 +63,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:40 GMT + - Tue, 16 Apr 2024 06:36:32 GMT expires: - '-1' pragma: @@ -82,22 +86,23 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 9E533BD6C1B544D381A37C5D3F3C8BDE Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:32Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK - request: body: '{"properties": {"public": false, "httpsOnly": false, "temporaryDisk": {"sizeInGB": - 5, "mountPath": "/tmp"}, "enableEndToEndTLS": false}}' + 5, "mountPath": "/tmp"}, "enableEndToEndTLS": false, "testEndpointAuthState": + "Enabled"}}' headers: Accept: - application/json @@ -108,45 +113,49 @@ interactions: Connection: - keep-alive Content-Length: - - '136' + - '172' Content-Type: - application/json ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:41.6208767Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:34.0164689Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/2957eb0b-49d2-43a7-80a5-7f2c1369bc1d?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/3c04ec25-b2dc-4637-8ed7-bed304b2be8a?api-version=2024-05-01-preview&t=638488461952353002&c=MIIHADCCBe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Oq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=k-n5dEF_YAWu_X1k_8FQpXI3Fpq5bkKJT5iLIkkrOzhuvqV0XxahuEw0hniKLLVbc4pRaeRuUvIXKk-y_yFnSdD9Thx-ZBxzUzMHii8GcS9hL8i3LOF9tDh3i0BCo_l2SKSWmrvOc_a6GW0nhNV-BUQcMidYuX15l66d-3hPmlB4AxiJYmsXQ1sFnABqj0t-TRo-1Q1BYsnjAGZSyfZ8XaS4qRFU19CWnCHe99CaWGgz5XaxH-vfiKYJ-QStavGJxXy_j04xAEtfaftMnLAL9Vgtx2vHtRuu-Wfx4mkpbn9YBJePShOgniI6n6PtCpewECOHs0gaK4sye7ZKu3TR1Q&h=D1nn2I5rsn-lJFYC-aSmtOjceolJE1y3a3ODeZq_5Kg cache-control: - no-cache content-length: - - '879' + - '911' content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:41 GMT + - Tue, 16 Apr 2024 06:36:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/2957eb0b-49d2-43a7-80a5-7f2c1369bc1d/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/3c04ec25-b2dc-4637-8ed7-bed304b2be8a/Spring/clitest000003?api-version=2024-05-01-preview&t=638488461952508752&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc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4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=b68Uwhc7KnUoEgg0aQNlzcllS_GPH3FgCg-qR1bvZSZC9P0nHNh0sFmvBa0KB1bNDyjFXqpXgkVRolo2tJaqMkPjbCrUrulMs-9ahN3JJZGIDdRgf9I6aDJ-fpHedKWKOu8xfXpiyA_2otdgok-8WYy85SHBrrW9ztkai-mSdmRfRiF7Q3Le9m8CVVScm0-HwjE5ekBJBH8-5H8KaUmNr_QhnXbPzpRSo4EtVE2a8PPY_5r1DziVd18kZC55i3UX9lcDpsIIGnO0Oc8PxeJJN0qNgLa2vU0zgz-U5S02SLFu0S26pOUhMpyTgZ_56z_0PTPsLjNmvwmW1T1WD9otug&h=4GcOapMH0zWhCTC48MweRYbD3A7zy2Q-Cf0yGqVRFa0 pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 9726635180DF40C08CC64FEC789B8101 Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:33Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -164,69 +173,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/2957eb0b-49d2-43a7-80a5-7f2c1369bc1d?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/3c04ec25-b2dc-4637-8ed7-bed304b2be8a?api-version=2024-05-01-preview&t=638488461952353002&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAw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ers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/2957eb0b-49d2-43a7-80a5-7f2c1369bc1d","name":"2957eb0b-49d2-43a7-80a5-7f2c1369bc1d","status":"Running","startTime":"2023-04-12T09:02:41.9500295Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/3c04ec25-b2dc-4637-8ed7-bed304b2be8a","name":"3c04ec25-b2dc-4637-8ed7-bed304b2be8a","status":"Succeeded","startTime":"2024-04-16T06:36:35.0823877Z","endTime":"2024-04-16T06:36:35.4280287Z"}' headers: cache-control: - no-cache content-length: - - '328' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:02:41 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app create - Connection: - - keep-alive - ParameterSetName: - - -g -s -n - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/2957eb0b-49d2-43a7-80a5-7f2c1369bc1d?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/2957eb0b-49d2-43a7-80a5-7f2c1369bc1d","name":"2957eb0b-49d2-43a7-80a5-7f2c1369bc1d","status":"Succeeded","startTime":"2023-04-12T09:02:41.9500295Z","endTime":"2023-04-12T09:02:49.6958214Z"}' - headers: - cache-control: - - no-cache - content-length: - - '371' + - '370' content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:51 GMT + - Tue, 16 Apr 2024 06:36:35 GMT expires: - '-1' pragma: @@ -235,14 +196,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 4BFBD7098E9C498CBBC928AFB3332D99 Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:35Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -260,21 +221,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:41.6208767Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:34.0164689Z"}}' headers: cache-control: - no-cache content-length: - - '983' + - '1015' content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:52 GMT + - Tue, 16 Apr 2024 06:36:36 GMT expires: - '-1' pragma: @@ -283,16 +244,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11998' + x-msedge-ref: + - 'Ref A: 277CEB9C719044768591331AFFD19ECE Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:36Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -317,39 +278,43 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:57.2000342Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:57.2000342Z"}}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:40.6851366Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:40.6851366Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5?api-version=2024-05-01-preview&t=638488462019976795&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADC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ZUjFUchb2K6kP0tpF2oXKLNXcfRB0JiuBaiPuCG891kD3uMlX-xVZJXb0ecaKptUZQEsnHXOqzmTmM9b7S7MM7ziXM8MpbGjaP9251nZc9QWa3y4WHaTnGQhaf_V38V612An6Ua8nQUQtblBch5u79O0a9U6ZVGRWV5k6xdIQ12Hj5zsyZdcN7BAB8t9r0ySdFsLv3fjM-G2wOfE7djCW5RVpyGrEx4XvSUs_doru8s06yuberazF3JJKHD8ssbfGG1mbgwoRDR0T8-KPPUfHbQBG2TKJMLw&h=LePmOAw7nEYfIvZC1q8-y1to4Pbx_gbvfZrrqVaLNz0 cache-control: - no-cache content-length: - - '829' + - '827' content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:57 GMT + - Tue, 16 Apr 2024 06:36:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/2e2a33e0-4430-4291-b319-9fc8080432cf/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/da67c35d-4205-4d47-aa9c-2f429102a0e5/Spring/default?api-version=2024-05-01-preview&t=638488462019976795&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6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myPz8m5YIi34IXM5ouqd8J0iiNid15RDuBCGhkcEwW-BFyPPBnbUUvJ0GSkXJz5hIoKnzSmcX6nX_cRTC7vRj2kYjwFRNDxwlOW_uHUMY7cDu7m9IzZ_86SvqnjbVWg_kMOI_NuZMU-tCuMfqD5M5UgO9Xek2NyTer4M02-CAtWrMKK1d1ep_GzsYmA3MU5-cPo55qO66_yZT2MNgAE-Bc1FxOpQhsAvoo8mM4Pzsj5XJBqH2Z6Q3yw&h=Q02Md82cQool5EaMMbS_qsRq_KC9A2Meg2KY3Dw_BUY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 5ED8DC46FB5F4415B89CE022A92EF1AE Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:40Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -367,21 +332,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5?api-version=2024-05-01-preview&t=638488462019976795&c=MI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qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mwyKoClOzY67ZMrxGVUjmkdWeu6U2ps6GGq4_nh30R_LpMj0WkiVCNZUjFUchb2K6kP0tpF2oXKLNXcfRB0JiuBaiPuCG891kD3uMlX-xVZJXb0ecaKptUZQEsnHXOqzmTmM9b7S7MM7ziXM8MpbGjaP9251nZc9QWa3y4WHaTnGQhaf_V38V612An6Ua8nQUQtblBch5u79O0a9U6ZVGRWV5k6xdIQ12Hj5zsyZdcN7BAB8t9r0ySdFsLv3fjM-G2wOfE7djCW5RVpyGrEx4XvSUs_doru8s06yuberazF3JJKHD8ssbfGG1mbgwoRDR0T8-KPPUfHbQBG2TKJMLw&h=LePmOAw7nEYfIvZC1q8-y1to4Pbx_gbvfZrrqVaLNz0 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf","name":"2e2a33e0-4430-4291-b319-9fc8080432cf","status":"Running","startTime":"2023-04-12T09:02:57.9251093Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5","name":"da67c35d-4205-4d47-aa9c-2f429102a0e5","status":"Running","startTime":"2024-04-16T06:36:41.7798238Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '321' content-type: - application/json date: - - Wed, 12 Apr 2023 09:02:57 GMT + - Tue, 16 Apr 2024 06:36:42 GMT expires: - '-1' pragma: @@ -390,14 +355,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 16F198C188784F72909DB6CEB4720A13 Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:42Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -415,21 +380,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5?api-version=2024-05-01-preview&t=638488462019976795&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhd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nvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=mwyKoClOzY67ZMrxGVUjmkdWeu6U2ps6GGq4_nh30R_LpMj0WkiVCNZUjFUchb2K6kP0tpF2oXKLNXcfRB0JiuBaiPuCG891kD3uMlX-xVZJXb0ecaKptUZQEsnHXOqzmTmM9b7S7MM7ziXM8MpbGjaP9251nZc9QWa3y4WHaTnGQhaf_V38V612An6Ua8nQUQtblBch5u79O0a9U6ZVGRWV5k6xdIQ12Hj5zsyZdcN7BAB8t9r0ySdFsLv3fjM-G2wOfE7djCW5RVpyGrEx4XvSUs_doru8s06yuberazF3JJKHD8ssbfGG1mbgwoRDR0T8-KPPUfHbQBG2TKJMLw&h=LePmOAw7nEYfIvZC1q8-y1to4Pbx_gbvfZrrqVaLNz0 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf","name":"2e2a33e0-4430-4291-b319-9fc8080432cf","status":"Running","startTime":"2023-04-12T09:02:57.9251093Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5","name":"da67c35d-4205-4d47-aa9c-2f429102a0e5","status":"Running","startTime":"2024-04-16T06:36:41.7798238Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '321' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:07 GMT + - Tue, 16 Apr 2024 06:36:54 GMT expires: - '-1' pragma: @@ -438,14 +403,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 23152324AA254C689BF62C14FFCE4E77 Ref B: MAA201060515047 Ref C: 2024-04-16T06:36:53Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -463,21 +428,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5?api-version=2024-05-01-preview&t=638488462019976795&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65r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tblBch5u79O0a9U6ZVGRWV5k6xdIQ12Hj5zsyZdcN7BAB8t9r0ySdFsLv3fjM-G2wOfE7djCW5RVpyGrEx4XvSUs_doru8s06yuberazF3JJKHD8ssbfGG1mbgwoRDR0T8-KPPUfHbQBG2TKJMLw&h=LePmOAw7nEYfIvZC1q8-y1to4Pbx_gbvfZrrqVaLNz0 response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf","name":"2e2a33e0-4430-4291-b319-9fc8080432cf","status":"Running","startTime":"2023-04-12T09:02:57.9251093Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/default/operationId/da67c35d-4205-4d47-aa9c-2f429102a0e5","name":"da67c35d-4205-4d47-aa9c-2f429102a0e5","status":"Succeeded","startTime":"2024-04-16T06:36:41.7798238Z","endTime":"2024-04-16T06:37:03.4020422Z"}' headers: cache-control: - no-cache content-length: - - '322' + - '364' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:18 GMT + - Tue, 16 Apr 2024 06:37:05 GMT expires: - '-1' pragma: @@ -486,14 +451,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: A867E58A5EAB4CC4B68C781EB7421D33 Ref B: MAA201060515047 Ref C: 2024-04-16T06:37:05Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -511,21 +476,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-05-01-preview response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/default/operationId/2e2a33e0-4430-4291-b319-9fc8080432cf","name":"2e2a33e0-4430-4291-b319-9fc8080432cf","status":"Succeeded","startTime":"2023-04-12T09:02:57.9251093Z","endTime":"2023-04-12T09:03:25.8945795Z"}' + string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6564b58667-7p622","status":"Running","discoveryStatus":"N/A","startTime":"2024-04-16T06:36:47Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:40.6851366Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:40.6851366Z"}}' headers: cache-control: - no-cache content-length: - - '365' + - '1326' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:29 GMT + - Tue, 16 Apr 2024 06:37:08 GMT expires: - '-1' pragma: @@ -534,64 +499,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app create - Connection: - - keep-alive - ParameterSetName: - - -g -s -n - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/mock-deployment?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7d7f4d6667-2bzxq","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:03:01Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:57.2000342Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:57.2000342Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '1328' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:03:29 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 7069B126F2D64B3E8806FF60C4D21920 Ref B: MAA201060515047 Ref C: 2024-04-16T06:37:06Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -609,21 +526,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:41.6208767Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:34.0164689Z"}}' headers: cache-control: - no-cache content-length: - - '983' + - '1015' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:33 GMT + - Tue, 16 Apr 2024 06:37:12 GMT expires: - '-1' pragma: @@ -632,16 +549,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11997' + - '11999' + x-msedge-ref: + - 'Ref A: 72D89ECF353F4C38AFF157D37325BA5F Ref B: MAA201060515047 Ref C: 2024-04-16T06:37:12Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -659,21 +576,21 @@ interactions: ParameterSetName: - -g -s -n User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7d7f4d6667-2bzxq","status":"Running","discoveryStatus":"N/A","startTime":"2023-04-12T09:03:01Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:57.2000342Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:57.2000342Z"}}]}' + string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-6564b58667-7p622","status":"Running","discoveryStatus":"N/A","startTime":"2024-04-16T06:36:47Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:40.6851366Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:40.6851366Z"}}]}' headers: cache-control: - no-cache content-length: - - '1340' + - '1338' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:33 GMT + - Tue, 16 Apr 2024 06:37:15 GMT expires: - '-1' pragma: @@ -682,16 +599,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 9E92C2C81043474A97BDFFECA8D83739 Ref B: MAA201060515047 Ref C: 2024-04-16T06:37:13Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -709,21 +626,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:35 GMT + - Tue, 16 Apr 2024 06:37:17 GMT expires: - '-1' pragma: @@ -732,16 +649,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 25E768EBB3F64F0CA99E0BB48C97420B Ref B: MAA201060516047 Ref C: 2024-04-16T06:37:17Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -759,21 +676,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-cli-unittest-tanzu-default-6105f-0","status":"Running"},{"name":"eureka-cli-unittest-tanzu-default-6105f-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-03T07:31:39.9573975Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-03T07:31:39.9573975Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-cli-unittest-tanzu-default-6105f-0","status":"Running"},{"name":"eureka-cli-unittest-tanzu-default-6105f-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-18T00:49:33.2657911Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-18T00:49:33.2657911Z"}}' headers: cache-control: - no-cache content-length: - - '748' + - '760' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:38 GMT + - Tue, 16 Apr 2024 06:37:19 GMT expires: - '-1' pragma: @@ -782,14 +699,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E350C43B849047DDBBA346474433F5F6 Ref B: MAA201060513021 Ref C: 2024-04-16T06:37:19Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -807,21 +724,21 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:39 GMT + - Tue, 16 Apr 2024 06:37:23 GMT expires: - '-1' pragma: @@ -830,16 +747,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' + x-msedge-ref: + - 'Ref A: 7172A056F36C4E8685F7DB30DA94C637 Ref B: MAA201060515009 Ref C: 2024-04-16T06:37:22Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -857,21 +774,21 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:41.6208767Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:36:34.0164689Z"}}' headers: cache-control: - no-cache content-length: - - '983' + - '1015' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:41 GMT + - Tue, 16 Apr 2024 06:37:23 GMT expires: - '-1' pragma: @@ -880,16 +797,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 80F9E5F55C0A40148C223FA45ED673CA Ref B: MAA201060514017 Ref C: 2024-04-16T06:37:24Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -900,7 +817,7 @@ interactions: {"sizeInGB": 0, "mountPath": "/persistent"}, "enableEndToEndTLS": false, "ingressSettings": {"readTimeoutInSeconds": 300, "sendTimeoutInSeconds": 60, "sessionAffinity": "None", "sessionCookieMaxAge": 0, "backendProtocol": "Default"}}, "location": - "uksouth"}' + "eastus"}' headers: Accept: - application/json @@ -911,45 +828,49 @@ interactions: Connection: - keep-alive Content-Length: - - '641' + - '640' Content-Type: - application/json ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:03:42.0628673Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:37:25.0612567Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d9f03211-0c44-4c4e-97fe-76f571297afe?api-version=2024-05-01-preview&t=638488462462331307&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMC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-cache content-length: - - '1159' + - '1191' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:42 GMT + - Tue, 16 Apr 2024 06:37:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/dd018b23-e18e-4ba5-bc1a-bae7478eceab/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/d9f03211-0c44-4c4e-97fe-76f571297afe/Spring/clitest000003?api-version=2024-05-01-preview&t=638488462462487693&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMC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780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '1199' + x-msedge-ref: + - 'Ref A: 7077C2A3487C4130B4147F7FFE9782D1 Ref B: MAA201060514017 Ref C: 2024-04-16T06:37:24Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -967,69 +888,21 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d9f03211-0c44-4c4e-97fe-76f571297afe?api-version=2024-05-01-preview&t=638488462462331307&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0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IqVvWZJi8jpYL9YIaWzKIcL9X5LeUL0--Mi9bFBBHiuk6OyDgLJia2Rx7KhPgCDcmkE5K3a-onoy60mVhs3zU-S8OaKqNeBurh3a9I10mMTgqw8hxTdoi5doaxIOWDtyMO5J5GxWG7hOKSqoy2kcXXCw86-vQPpOFkf7_jvMFNWnWyDVMYLaZKImfV-AuhMneSgBW69dPAa1OnQb58UvZy4ZB0O-5MaMUrL8LPsJMmvMJMonBNbh4CcgJOgluSIV_u7kbrNZVzGbRlAjR2KOoVw&h=4ErrjIpvGflUamFlh6O7cH-3Ap0jqivrFLHtRqXA7jg response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab","name":"dd018b23-e18e-4ba5-bc1a-bae7478eceab","status":"Running","startTime":"2023-04-12T09:03:42.6917665Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d9f03211-0c44-4c4e-97fe-76f571297afe","name":"d9f03211-0c44-4c4e-97fe-76f571297afe","status":"Running","startTime":"2024-04-16T06:37:26.0552408Z"}' headers: cache-control: - no-cache content-length: - - '328' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:03:42 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry bind - Connection: - - keep-alive - ParameterSetName: - - --app -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab","name":"dd018b23-e18e-4ba5-bc1a-bae7478eceab","status":"Running","startTime":"2023-04-12T09:03:42.6917665Z"}' - headers: - cache-control: - - no-cache - content-length: - - '328' + - '327' content-type: - application/json date: - - Wed, 12 Apr 2023 09:03:53 GMT + - Tue, 16 Apr 2024 06:37:26 GMT expires: - '-1' pragma: @@ -1038,14 +911,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 756A5FF6AD4146C1A3784DB76EE76890 Ref B: MAA201060514017 Ref C: 2024-04-16T06:37:26Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1063,21 +936,21 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d9f03211-0c44-4c4e-97fe-76f571297afe?api-version=2024-05-01-preview&t=638488462462331307&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4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jBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=Pt9Gzu5yYoJCQPO7O5XIi07VP99CvNGl2-C_-LZQvP_FFTsLPNeOo3cP4q-qNd3IqVvWZJi8jpYL9YIaWzKIcL9X5LeUL0--Mi9bFBBHiuk6OyDgLJia2Rx7KhPgCDcmkE5K3a-onoy60mVhs3zU-S8OaKqNeBurh3a9I10mMTgqw8hxTdoi5doaxIOWDtyMO5J5GxWG7hOKSqoy2kcXXCw86-vQPpOFkf7_jvMFNWnWyDVMYLaZKImfV-AuhMneSgBW69dPAa1OnQb58UvZy4ZB0O-5MaMUrL8LPsJMmvMJMonBNbh4CcgJOgluSIV_u7kbrNZVzGbRlAjR2KOoVw&h=4ErrjIpvGflUamFlh6O7cH-3Ap0jqivrFLHtRqXA7jg response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/dd018b23-e18e-4ba5-bc1a-bae7478eceab","name":"dd018b23-e18e-4ba5-bc1a-bae7478eceab","status":"Succeeded","startTime":"2023-04-12T09:03:42.6917665Z","endTime":"2023-04-12T09:03:56.3412301Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/d9f03211-0c44-4c4e-97fe-76f571297afe","name":"d9f03211-0c44-4c4e-97fe-76f571297afe","status":"Succeeded","startTime":"2024-04-16T06:37:26.0552408Z","endTime":"2024-04-16T06:37:32.0436562Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '370' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:03 GMT + - Tue, 16 Apr 2024 06:37:37 GMT expires: - '-1' pragma: @@ -1086,14 +959,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: EC1C0219665A4DDAACE174D2EDA811A5 Ref B: MAA201060514017 Ref C: 2024-04-16T06:37:37Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1111,71 +984,21 @@ interactions: ParameterSetName: - --app -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:03:42.0628673Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '1160' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:04:03 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring app show - Connection: - - keep-alive - ParameterSetName: - - -n -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:03:42.0628673Z"}}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:37:25.0612567Z"}}' headers: cache-control: - no-cache content-length: - - '1160' + - '1192' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:08 GMT + - Tue, 16 Apr 2024 06:37:38 GMT expires: - '-1' pragma: @@ -1184,16 +1007,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 138E6CCA501246CAB761DBDCB7ABC139 Ref B: MAA201060514017 Ref C: 2024-04-16T06:37:38Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1205,27 +1028,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring app show + - spring app delete Connection: - keep-alive ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":300,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":5,"successThreshold":1,"timeoutSeconds":3,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"clitest000003-default-15-7d7f4d6667-2bzxq","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2023-04-12T09:03:01Z"}],"source":{"type":"BuildResult","buildResultId":""}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003/deployments/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:57.2000342Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:02:57.2000342Z"}}]}' + string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"testEndpointAuthStatus":"Enabled","ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:36:34.0164689Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:37:25.0612567Z"}}' headers: cache-control: - no-cache content-length: - - '1349' + - '1192' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:15 GMT + - Tue, 16 Apr 2024 06:37:41 GMT expires: - '-1' pragma: @@ -1234,16 +1057,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: C1BE347F72804F2F98FFD6A7C1980AEE Ref B: MAA201060513029 Ref C: 2024-04-16T06:37:40Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1255,154 +1078,49 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring service-registry unbind - Connection: - - keep-alive - ParameterSetName: - - --app -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '935' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:04:17 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry unbind - Connection: - - keep-alive - ParameterSetName: - - --app -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview - response: - body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default"}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:03:42.0628673Z"}}' - headers: - cache-control: - - no-cache - content-length: - - '1160' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:04:18 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"public": false, "addonConfigs": {"applicationConfigurationService": - {}, "serviceRegistry": {"resourceId": ""}}, "httpsOnly": false, "temporaryDisk": - {"sizeInGB": 5, "mountPath": "/tmp"}, "persistentDisk": {"sizeInGB": 0, "mountPath": - "/persistent"}, "enableEndToEndTLS": false, "ingressSettings": {"readTimeoutInSeconds": - 300, "sendTimeoutInSeconds": 60, "sessionAffinity": "None", "sessionCookieMaxAge": - 0, "backendProtocol": "Default"}}, "location": "uksouth"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry unbind + - spring app delete Connection: - keep-alive Content-Length: - - '479' - Content-Type: - - application/json + - '0' ParameterSetName: - - --app -g -s + - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-05-01-preview response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:04:19.5963938Z"}}' + string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a?api-version=2024-05-01-preview&t=638488462625732511&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1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eKJp5rI1udLEPI cache-control: - no-cache content-length: - - '982' - content-type: - - application/json + - '0' date: - - Wed, 12 Apr 2023 09:04:19 GMT + - Tue, 16 Apr 2024 06:37:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/e555537a-9433-4a70-a106-852098c71f71/Spring/clitest000003?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1cf0de68-43b9-49d6-8a45-4b390ef5952a/Spring/clitest000003?api-version=2024-05-01-preview&t=638488462625888781&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CA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-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '1199' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-msedge-ref: + - 'Ref A: BF6D7FD45DF14CA099C88EECD892201C Ref B: MAA201060513029 Ref C: 2024-04-16T06:37:41Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -1414,75 +1132,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring service-registry unbind + - spring app delete Connection: - keep-alive ParameterSetName: - - --app -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71","name":"e555537a-9433-4a70-a106-852098c71f71","status":"Running","startTime":"2023-04-12T09:04:19.9502947Z"}' - headers: - cache-control: - - no-cache - content-length: - - '328' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:04:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry unbind - Connection: - - keep-alive - ParameterSetName: - - --app -g -s + - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a?api-version=2024-05-01-preview&t=638488462625732511&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74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0cqWGmPYj-e4KZ3TbE6pnZcnhQdNgf_rjWTU_ai8XZfSUpM-OjtMz3mhGhorcZhNapoLUA&h=UBAjTzvkRGI6uTlofGHPfRPuLsU5AeKJp5rI1udLEPI response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71","name":"e555537a-9433-4a70-a106-852098c71f71","status":"Running","startTime":"2023-04-12T09:04:19.9502947Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a","name":"1cf0de68-43b9-49d6-8a45-4b390ef5952a","status":"Running","startTime":"2024-04-16T06:37:42.4231886Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '327' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:30 GMT + - Tue, 16 Apr 2024 06:37:43 GMT expires: - '-1' pragma: @@ -1491,14 +1161,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 148A66E8CE7A41EE8593359399164644 Ref B: MAA201060513029 Ref C: 2024-04-16T06:37:42Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1510,27 +1180,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring service-registry unbind + - spring app delete Connection: - keep-alive ParameterSetName: - - --app -g -s + - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a?api-version=2024-05-01-preview&t=638488462625732511&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCc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d-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000003/operationId/e555537a-9433-4a70-a106-852098c71f71","name":"e555537a-9433-4a70-a106-852098c71f71","status":"Succeeded","startTime":"2023-04-12T09:04:19.9502947Z","endTime":"2023-04-12T09:04:32.7995708Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a","name":"1cf0de68-43b9-49d6-8a45-4b390ef5952a","status":"Running","startTime":"2024-04-16T06:37:42.4231886Z"}' headers: cache-control: - no-cache content-length: - - '371' + - '327' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:40 GMT + - Tue, 16 Apr 2024 06:37:54 GMT expires: - '-1' pragma: @@ -1539,14 +1209,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 97E76E0862E541AD8191797239BA9B2E Ref B: MAA201060513029 Ref C: 2024-04-16T06:37:54Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1558,27 +1228,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - spring service-registry unbind + - spring app delete Connection: - keep-alive ParameterSetName: - - --app -g -s + - -n -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a?api-version=2024-05-01-preview&t=638488462625732511&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEF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uY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=aa8sJhIF_bcfgdIqux28qEG9eYQ2QSjPCi-1ZfxhB1zIfGQehADETiwoGFrUcRBr4rRJ-u-Hv8V5VVeAgm7vc3wATnKQnWjz7-UGuV2PmZnhCdQD0GdUjXZ0NUhcoNN7AGvXODSnQ7MMyBbnu7c_bzEQPs8W2rzWrXMojDMT8uZjyet2YMABjkp62HKQtFuYNWrC5udeO-UOub59MyFXn2yNo8gInkVaKHKzc1QaTx8yGo_Yvq6-byGJRe8FINo1DBUbLZFMlISnZa9-0cqWGmPYj-e4KZ3TbE6pnZcnhQdNgf_rjWTU_ai8XZfSUpM-OjtMz3mhGhorcZhNapoLUA&h=UBAjTzvkRGI6uTlofGHPfRPuLsU5AeKJp5rI1udLEPI response: body: - string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"clitest000002.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"ingressSettings":{"readTimeoutInSeconds":300,"sendTimeoutInSeconds":60,"sessionCookieMaxAge":0,"sessionAffinity":"None","backendProtocol":"Default"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"uksouth","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/apps/clitest000003","name":"clitest000003","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:02:41.6208767Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:04:19.5963938Z"}}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000003/operationId/1cf0de68-43b9-49d6-8a45-4b390ef5952a","name":"1cf0de68-43b9-49d6-8a45-4b390ef5952a","status":"Succeeded","startTime":"2024-04-16T06:37:42.4231886Z","endTime":"2024-04-16T06:37:58.1635028Z"}' headers: cache-control: - no-cache content-length: - - '983' + - '370' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:41 GMT + - Tue, 16 Apr 2024 06:38:05 GMT expires: - '-1' pragma: @@ -1587,16 +1257,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + x-msedge-ref: + - 'Ref A: 10F46C5C36514CD98E74203E82106A77 Ref B: MAA201060513029 Ref C: 2024-04-16T06:38:04Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1614,21 +1282,21 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:43 GMT + - Tue, 16 Apr 2024 06:38:07 GMT expires: - '-1' pragma: @@ -1637,16 +1305,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' + x-msedge-ref: + - 'Ref A: 508A03743A5143C0908C008A447DE937 Ref B: MAA201060515049 Ref C: 2024-04-16T06:38:07Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1666,37 +1334,41 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/6dbc6280-850e-4497-83ac-59e90d6bbce6?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/605f5e78-5708-4cc3-8726-7325ea35631d?api-version=2024-05-01-preview&t=638488462897501553&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQU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:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/6dbc6280-850e-4497-83ac-59e90d6bbce6/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/605f5e78-5708-4cc3-8726-7325ea35631d/Spring/clitest000002?api-version=2024-05-01-preview&t=638488462897657803&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwL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TIwMDYuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDYuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=r943q3IMfWsOamYPk037kyasupfUDRwbB6L1HvZbYWcNf1SnVPsKDGVa0BkTf1QfhGe3sejBa4tKJPipxlN-75PMATIyHMse664owKu_nLrDruz3djklpdOMEEGp-fcODIG8s5f9pZPUOQaxIwp1zSgV0pXVUxoI3XwuPJvUI2imUMA39H2xZo7TX_gplkTSzW5vcOOtQuKKigjuupXAiJmILc41_GWwr-yH11mn5RHxnVPFs4brpYaelM_UJRJmeeN_pIrUrREedWXwXRt07-3OGGN4VbdoBV6-3R5WrxiwEiiCsagqilktFFQrFN2PuZlcTV_fUcRrGEsbAAFJJw&h=1v4v2r9bwCB5k8fmaHL1QTCyoQ3lrJmm0lkctvqvJyk pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - '14999' + x-msedge-ref: + - 'Ref A: E59DACE46878401AB1A1EEE8D388DEBA Ref B: MAA201060513049 Ref C: 2024-04-16T06:38:08Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 202 message: Accepted @@ -1714,21 +1386,21 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/6dbc6280-850e-4497-83ac-59e90d6bbce6?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/605f5e78-5708-4cc3-8726-7325ea35631d?api-version=2024-05-01-preview&t=638488462897501553&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbN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muQyhkA0J8Zhcx5VEuA-5Ya61QXDHDpO3I17_hUVWQAstPujPf8xSk6oOQoewEE3Bj-sWow0Cj6_3w7xj2YzBIh3Vjk78fkCCEkzWe-4q91HArVd3BFYWV7FrQFyNQW3pl0H_dLhdc3kzgyqN47qYovy04amnI39y6RgRgbwX40t-puLsf6HLbPbeC_w&h=pM0o4fmA7QAGxw5uptQ1aD2XcwJYozio0k7gR4g7L0w response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/6dbc6280-850e-4497-83ac-59e90d6bbce6","name":"6dbc6280-850e-4497-83ac-59e90d6bbce6","status":"Running","startTime":"2023-04-12T09:04:44.5931681Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/605f5e78-5708-4cc3-8726-7325ea35631d","name":"605f5e78-5708-4cc3-8726-7325ea35631d","status":"Running","startTime":"2024-04-16T06:38:09.5325315Z"}' headers: cache-control: - no-cache content-length: - - '328' + - '327' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:45 GMT + - Tue, 16 Apr 2024 06:38:09 GMT expires: - '-1' pragma: @@ -1737,14 +1409,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: E9282331D8074CF5AA63E77CCA02E66D Ref B: MAA201060513049 Ref C: 2024-04-16T06:38:09Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1762,12 +1434,12 @@ interactions: ParameterSetName: - -g -s --yes User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/6dbc6280-850e-4497-83ac-59e90d6bbce6?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/605f5e78-5708-4cc3-8726-7325ea35631d?api-version=2024-05-01-preview&t=638488462897501553&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2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uptQ1aD2XcwJYozio0k7gR4g7L0w response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/6dbc6280-850e-4497-83ac-59e90d6bbce6","name":"6dbc6280-850e-4497-83ac-59e90d6bbce6","status":"Succeeded","startTime":"2023-04-12T09:04:44.5931681Z","endTime":"2023-04-12T09:04:50.720924Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/605f5e78-5708-4cc3-8726-7325ea35631d","name":"605f5e78-5708-4cc3-8726-7325ea35631d","status":"Succeeded","startTime":"2024-04-16T06:38:09.5325315Z","endTime":"2024-04-16T06:38:10.6042944Z"}' headers: cache-control: - no-cache @@ -1776,7 +1448,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:55 GMT + - Tue, 16 Apr 2024 06:38:21 GMT expires: - '-1' pragma: @@ -1785,14 +1457,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 084AABDA0E7446BCB796734DBCE8A9F6 Ref B: MAA201060513049 Ref C: 2024-04-16T06:38:20Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1810,21 +1482,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"869575ac58f542e6b8c463fbfee844bf","networkProfile":{"outboundIPs":{"publicIPs":["20.49.218.229","20.49.223.183"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"uksouth","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-30T06:40:24.2896426Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-30T06:40:24.2896426Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"95a0892ab04a44e4a0ffa44a7c60cec1","networkProfile":{"outboundIPs":{"publicIPs":["4.157.151.134","4.157.150.159"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io","marketplaceResource":{"plan":"asa-ent-hr-mtr","publisher":"vmware-inc","product":"azure-spring-cloud-vmware-tanzu-2"}},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"E0","tier":"Enterprise"},"location":"eastus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"feilonghuang@microsoft.com","createdByType":"User","createdAt":"2024-01-17T06:33:17.0111064Z","lastModifiedBy":"feilonghuang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-01-17T06:33:17.0111064Z"}}' headers: cache-control: - no-cache content-length: - - '935' + - '948' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:56 GMT + - Tue, 16 Apr 2024 06:38:23 GMT expires: - '-1' pragma: @@ -1833,16 +1505,16 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11998' + - '11999' + x-msedge-ref: + - 'Ref A: 10FDD7C4C9B04F0997F318B69BE9E11A Ref B: MAA201060516033 Ref C: 2024-04-16T06:38:23Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -1862,39 +1534,43 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Creating","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-cli-unittest-tanzu-default-6105f-0","status":"Running"},{"name":"eureka-cli-unittest-tanzu-default-6105f-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:04:57.3469399Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:04:57.3469399Z"}}' + string: '{"properties":{"provisioningState":"Creating","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:38:25.0191413Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:38:25.0191413Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUU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JtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=XXft6CjI_kElbdqrh3szfpdaOHaLd9rc_6n7GnlkVF8B0oUmry2h4cRAK-b7qS-gdLRFdebZO8lOluv0B2_e7N8fUgcqrTM7ewO2Ygz7WChUQljHayXp68q6m1ElJ0_zuC0ZXfg9LIM1ZFJuOhuw76QL5oCMGLBiwjrf0MY3x2T5AEEgIuk5lvYUDok3tkxzX8ujEhgPGFqYNPOrOJecSZceqJQLFdglGDH2Va3Y9ve3BAwTNt53IhGBx2wquEDn0UvuTxfilO51FR3T87MdvHZyAtVgmptXL-FkE902-dyOtj5GmjtcnujaVH5ksFMbvDwPMDxVNHlHn4sEiSS4dw&h=QscVkXyQBe0UtM4vmbWBQAbc-AyvzZUNDzkNROU_ZBc cache-control: - no-cache content-length: - - '747' + - '602' content-type: - application/json date: - - Wed, 12 Apr 2023 09:04:58 GMT + - Tue, 16 Apr 2024 06:38:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/dda2a959-b13f-4f46-ac3e-0aee8b699541/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationResults/edded6b5-b92c-46bf-aa59-37aaf582b47c/Spring/clitest000002?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTU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hoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=LVy-205tp-KskZ0rQhU84ey7hCYULQM-IV2tr-XmdCmsmVbg20VlDVNjcGDY5qZmaaPxbjrrLkiPxE_sZ9cNqLX4u_7NWsjHVHqHhvX2rwA16i_JH6BJVfnh26rQ1FyhB3JWvJ5wGC7KDq55v16FVqBUEFjHKQPm6_vQuMqiNVeVpKr2N2-YDl5_E4G0pgzRXZ2l1f6tIlEuyeGUCqj7mZpMeejihiBVgUl4DYcv1AHNqNWuBSWC8aaU_WKcq4DOhfrTrfSTGKhJGIVrZTyORFH1zCPFfKEzGe7ncgFEMryEpxdq3H0Wq3fHFLiJx8vWVG93BWZ95F18N9-DOovS5g&h=D9w1LyFBM_pmLczmG9dE5bDKxctvw__Q-QPn2DHDRuY pragma: - no-cache request-context: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' + x-msedge-ref: + - 'Ref A: 16A21272C0734318B365987759A6C531 Ref B: MAA201060513019 Ref C: 2024-04-16T06:38:24Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 201 message: Created @@ -1912,156 +1588,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:04:59 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:05:09 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview - response: - body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' - headers: - cache-control: - - no-cache - content-length: - - '327' - content-type: - - application/json - date: - - Wed, 12 Apr 2023 09:05:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - spring service-registry create - Connection: - - keep-alive - ParameterSetName: - - -g -s - User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQ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itest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c","name":"edded6b5-b92c-46bf-aa59-37aaf582b47c","status":"Running","startTime":"2024-04-16T06:38:26.0472319Z"}' headers: cache-control: - no-cache @@ -2070,7 +1602,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:05:29 GMT + - Tue, 16 Apr 2024 06:38:27 GMT expires: - '-1' pragma: @@ -2079,14 +1611,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F016B8B2C9C64205873AFB001BD56233 Ref B: MAA201060513019 Ref C: 2024-04-16T06:38:26Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2104,12 +1636,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6xWXhwzq58hYtdYc3SoMCcWMtf0CAwEAAaOCA-0wggPpMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vc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Ky19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABwCQ0hRgTzuMiiq8PUrVdDBN8_c3HcEZsxdazvy4RNcw_7WjYA3QdRzVtaOAEfPq6GrfCF7n8qlpXjMSOq5Oc-mL6EwulQAybtx4RxY0zI5tDTHfITDo2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=XXft6CjI_kElbdqrh3szfpdaOHaLd9rc_6n7GnlkVF8B0oUmry2h4cRAK-b7qS-gdLRFdebZO8lOluv0B2_e7N8fUgcqrTM7ewO2Ygz7WChUQljHayXp68q6m1ElJ0_zuC0ZXfg9LIM1ZFJuOhuw76QL5oCMGLBiwjrf0MY3x2T5AEEgIuk5lvYUDok3tkxzX8ujEhgPGFqYNPOrOJecSZceqJQLFdglGDH2Va3Y9ve3BAwTNt53IhGBx2wquEDn0UvuTxfilO51FR3T87MdvHZyAtVgmptXL-FkE902-dyOtj5GmjtcnujaVH5ksFMbvDwPMDxVNHlHn4sEiSS4dw&h=QscVkXyQBe0UtM4vmbWBQAbc-AyvzZUNDzkNROU_ZBc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c","name":"edded6b5-b92c-46bf-aa59-37aaf582b47c","status":"Running","startTime":"2024-04-16T06:38:26.0472319Z"}' headers: cache-control: - no-cache @@ -2118,7 +1650,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:05:39 GMT + - Tue, 16 Apr 2024 06:38:38 GMT expires: - '-1' pragma: @@ -2127,14 +1659,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 252F7BE538154945B523BFE34C13FCC9 Ref B: MAA201060513019 Ref C: 2024-04-16T06:38:37Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2152,12 +1684,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANB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o2FVSa6thj9WVlgOF2UxNbopXBAYpN-fbgUTanBsphWY2F_Kz_VKFv-4UXHwyNiDa3wpaQrmQ2urunWos3lEhx0aRKdNTZwjJtK78rfIazNccJHT1LHpWU7i8XEBYP_RzftkGhoEhofdnth4t99G4Clw9RBOC8Km1SZ7zJTtaYcCU-NXSzWQgWTQeGMwo5CnvADN5uPXz3aUMxAukDY-ed4wPldjzzJFmzk&s=XXft6CjI_kElbdqrh3szfpdaOHaLd9rc_6n7GnlkVF8B0oUmry2h4cRAK-b7qS-gdLRFdebZO8lOluv0B2_e7N8fUgcqrTM7ewO2Ygz7WChUQljHayXp68q6m1ElJ0_zuC0ZXfg9LIM1ZFJuOhuw76QL5oCMGLBiwjrf0MY3x2T5AEEgIuk5lvYUDok3tkxzX8ujEhgPGFqYNPOrOJecSZceqJQLFdglGDH2Va3Y9ve3BAwTNt53IhGBx2wquEDn0UvuTxfilO51FR3T87MdvHZyAtVgmptXL-FkE902-dyOtj5GmjtcnujaVH5ksFMbvDwPMDxVNHlHn4sEiSS4dw&h=QscVkXyQBe0UtM4vmbWBQAbc-AyvzZUNDzkNROU_ZBc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c","name":"edded6b5-b92c-46bf-aa59-37aaf582b47c","status":"Running","startTime":"2024-04-16T06:38:26.0472319Z"}' headers: cache-control: - no-cache @@ -2166,7 +1698,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:05:51 GMT + - Tue, 16 Apr 2024 06:38:49 GMT expires: - '-1' pragma: @@ -2175,14 +1707,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: F730B6ED003E4520BEFD449E01862A94 Ref B: MAA201060513019 Ref C: 2024-04-16T06:38:48Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2200,12 +1732,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbm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xAukDY-ed4wPldjzzJFmzk&s=XXft6CjI_kElbdqrh3szfpdaOHaLd9rc_6n7GnlkVF8B0oUmry2h4cRAK-b7qS-gdLRFdebZO8lOluv0B2_e7N8fUgcqrTM7ewO2Ygz7WChUQljHayXp68q6m1ElJ0_zuC0ZXfg9LIM1ZFJuOhuw76QL5oCMGLBiwjrf0MY3x2T5AEEgIuk5lvYUDok3tkxzX8ujEhgPGFqYNPOrOJecSZceqJQLFdglGDH2Va3Y9ve3BAwTNt53IhGBx2wquEDn0UvuTxfilO51FR3T87MdvHZyAtVgmptXL-FkE902-dyOtj5GmjtcnujaVH5ksFMbvDwPMDxVNHlHn4sEiSS4dw&h=QscVkXyQBe0UtM4vmbWBQAbc-AyvzZUNDzkNROU_ZBc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c","name":"edded6b5-b92c-46bf-aa59-37aaf582b47c","status":"Running","startTime":"2024-04-16T06:38:26.0472319Z"}' headers: cache-control: - no-cache @@ -2214,7 +1746,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:06:01 GMT + - Tue, 16 Apr 2024 06:39:00 GMT expires: - '-1' pragma: @@ -2223,14 +1755,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 7F7D4CC0620548258C1DD458946E26B5 Ref B: MAA201060513019 Ref C: 2024-04-16T06:38:59Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2248,12 +1780,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4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gIuk5lvYUDok3tkxzX8ujEhgPGFqYNPOrOJecSZceqJQLFdglGDH2Va3Y9ve3BAwTNt53IhGBx2wquEDn0UvuTxfilO51FR3T87MdvHZyAtVgmptXL-FkE902-dyOtj5GmjtcnujaVH5ksFMbvDwPMDxVNHlHn4sEiSS4dw&h=QscVkXyQBe0UtM4vmbWBQAbc-AyvzZUNDzkNROU_ZBc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Running","startTime":"2023-04-12T09:04:58.665249Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c","name":"edded6b5-b92c-46bf-aa59-37aaf582b47c","status":"Running","startTime":"2024-04-16T06:38:26.0472319Z"}' headers: cache-control: - no-cache @@ -2262,7 +1794,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:06:11 GMT + - Tue, 16 Apr 2024 06:39:11 GMT expires: - '-1' pragma: @@ -2271,14 +1803,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: D000D640C740434A95A28577D9F09B9A Ref B: MAA201060513019 Ref C: 2024-04-16T06:39:10Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2296,12 +1828,12 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c?api-version=2024-05-01-preview&t=638488463062378562&c=MIIHADCCBeigAwIBAgITHgPr-Oynpc11nukqPwAAA-v47DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwMjAxMTUzMzMzWhcNMjUwMTI2MTUzMzMzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0fVpJv9HfZ9lDyFsKVf2PJgsZDMFA6khnm_67kUV0KDb8vTd3bmnw1UYl75g2Cp9GDvvaCqKVn-aux3TWe11D61vAtFcTPbNvezESM6bHR-RV1e4LhXUIl6PZRcIE65rk0bYF8P1O_zZ4mpWHx99Mc9gSe6E2sqh_sWRIuE4mSXNxVzzmndknLOkcDnqNl9Kt1VpXt5orBSwAV74sCBJuvzSE7MEW2kHUJtqzGWoXvf5pm-rYfwqhQa3HLjUMj7xbwzsBDtEn2ZYJLlqJqIps5iVHixHPn8k6opx-9FVP2u009BccFRDwiVl1b6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_ZBc response: body: - string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dda2a959-b13f-4f46-ac3e-0aee8b699541","name":"dda2a959-b13f-4f46-ac3e-0aee8b699541","status":"Succeeded","startTime":"2023-04-12T09:04:58.665249Z","endTime":"2023-04-12T09:06:14.9765178Z"}' + string: '{"id":"subscriptions/d51e3ffe-6b84-49cd-b426-0dc4ec660356/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/clitest000002/operationId/edded6b5-b92c-46bf-aa59-37aaf582b47c","name":"edded6b5-b92c-46bf-aa59-37aaf582b47c","status":"Succeeded","startTime":"2024-04-16T06:38:26.0472319Z","endTime":"2024-04-16T06:39:16.3869511Z"}' headers: cache-control: - no-cache @@ -2310,7 +1842,7 @@ interactions: content-type: - application/json date: - - Wed, 12 Apr 2023 09:06:21 GMT + - Tue, 16 Apr 2024 06:39:22 GMT expires: - '-1' pragma: @@ -2319,14 +1851,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: 743BE390EF834337AB0FCAC73E3AAA19 Ref B: MAA201060513019 Ref C: 2024-04-16T06:39:21Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK @@ -2344,21 +1876,21 @@ interactions: ParameterSetName: - -g -s User-Agent: - - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default?api-version=2024-05-01-preview response: body: - string: '{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-cli-unittest-tanzu-default-6105f-0","status":"Running"},{"name":"eureka-cli-unittest-tanzu-default-6105f-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-04-12T09:04:57.3469399Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-04-12T09:04:57.3469399Z"}}' + string: '{"properties":{"provisioningState":"Succeeded","resourceRequests":{"cpu":"500m","memory":"1Gi","instanceCount":2},"instances":[{"name":"eureka-cli-unittest-tanzu-default-6105f-0","status":"Running"},{"name":"eureka-cli-unittest-tanzu-default-6105f-1","status":"Running"}]},"type":"Microsoft.AppPlatform/Spring/serviceRegistries","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/serviceRegistries/default","name":"default","systemData":{"createdBy":"dixue@microsoft.com","createdByType":"User","createdAt":"2024-04-16T06:38:25.0191413Z","lastModifiedBy":"dixue@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-04-16T06:38:25.0191413Z"}}' headers: cache-control: - no-cache content-length: - - '748' + - '746' content-type: - application/json date: - - Wed, 12 Apr 2023 09:06:21 GMT + - Tue, 16 Apr 2024 06:39:24 GMT expires: - '-1' pragma: @@ -2367,14 +1899,14 @@ interactions: - appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-msedge-ref: + - 'Ref A: B5CF2B2F1E5C467B92130BF82E776DA4 Ref B: MAA201060513019 Ref C: 2024-04-16T06:39:23Z' x-rp-server-mvid: - - 2d8cffe0-ed19-4f32-b630-c96199e681e1 + - ec637d3d-68a7-4774-a4ad-c912c3fa4ba1 status: code: 200 message: OK diff --git a/src/spring/azext_spring/tests/latest/recordings/test_stop_and_start_service.yaml b/src/spring/azext_spring/tests/latest/recordings/test_stop_and_start_service.yaml index 10f9d099e4d..471c47f4fde 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_stop_and_start_service.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_stop_and_start_service.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e13462fc30df4c359cdef8568162c652","networkProfile":{"outboundIPs":{"publicIPs":["20.90.125.2","20.108.214.225"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-21T05:29:44.9163057Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-21T05:29:44.9163057Z"}}' @@ -67,13 +67,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/stop?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/stop?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -83,7 +83,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/dbc85e12-0303-40ba-96da-a291c151263a/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/dbc85e12-0303-40ba-96da-a291c151263a/Spring/clitest000002?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -115,7 +115,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -163,7 +163,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -211,7 +211,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -259,7 +259,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -307,7 +307,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -355,7 +355,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -403,7 +403,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -451,7 +451,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -499,7 +499,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -547,7 +547,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -595,7 +595,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -643,7 +643,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -691,7 +691,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Running","startTime":"2023-03-21T05:33:08.9386468Z"}' @@ -739,7 +739,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/dbc85e12-0303-40ba-96da-a291c151263a","name":"dbc85e12-0303-40ba-96da-a291c151263a","status":"Succeeded","startTime":"2023-03-21T05:33:08.9386468Z","endTime":"2023-03-21T05:35:23.2838785Z"}' @@ -787,7 +787,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/dbc85e12-0303-40ba-96da-a291c151263a/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/dbc85e12-0303-40ba-96da-a291c151263a/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '' @@ -829,7 +829,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e13462fc30df4c359cdef8568162c652","networkProfile":{"outboundIPs":{"publicIPs":["20.90.125.2","20.108.214.225"]},"outboundType":"loadBalancer"},"powerState":"Stopped","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-21T05:29:44.9163057Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-21T05:33:08.3062609Z"}}' @@ -879,7 +879,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e13462fc30df4c359cdef8568162c652","networkProfile":{"outboundIPs":{"publicIPs":["20.90.125.2","20.108.214.225"]},"outboundType":"loadBalancer"},"powerState":"Stopped","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-21T05:29:44.9163057Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-21T05:33:08.3062609Z"}}' @@ -931,13 +931,13 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/start?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002/start?api-version=2024-05-01-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -947,7 +947,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/854c2098-b2a9-4e7a-904e-5049e14fa4eb/Spring/clitest000002?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/854c2098-b2a9-4e7a-904e-5049e14fa4eb/Spring/clitest000002?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -979,7 +979,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1027,7 +1027,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1075,7 +1075,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1123,7 +1123,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1171,7 +1171,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1219,7 +1219,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1267,7 +1267,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1315,7 +1315,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1363,7 +1363,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1411,7 +1411,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1459,7 +1459,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1507,7 +1507,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1555,7 +1555,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1603,7 +1603,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1651,7 +1651,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1699,7 +1699,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1747,7 +1747,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1795,7 +1795,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1843,7 +1843,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1891,7 +1891,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1939,7 +1939,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -1987,7 +1987,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -2035,7 +2035,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -2083,7 +2083,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -2131,7 +2131,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Running","startTime":"2023-03-21T05:35:29.9595351Z"}' @@ -2179,7 +2179,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/6c933f90-8115-4392-90f2-7077c9fa5dbd/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationStatus/clitest000002/operationId/854c2098-b2a9-4e7a-904e-5049e14fa4eb","name":"854c2098-b2a9-4e7a-904e-5049e14fa4eb","status":"Succeeded","startTime":"2023-03-21T05:35:29.9595351Z","endTime":"2023-03-21T05:39:48.4526506Z"}' @@ -2227,7 +2227,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/854c2098-b2a9-4e7a-904e-5049e14fa4eb/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/locations/uksouth/operationResults/854c2098-b2a9-4e7a-904e-5049e14fa4eb/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '' @@ -2269,7 +2269,7 @@ interactions: User-Agent: - AZURECLI/2.46.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"version":3,"serviceId":"e13462fc30df4c359cdef8568162c652","networkProfile":{"outboundIPs":{"publicIPs":["20.90.125.2","20.108.214.225"]},"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"clitest000002.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"uksouth","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.AppPlatform/Spring/clitest000002","name":"clitest000002","systemData":{"createdBy":"yuwzho@microsoft.com","createdByType":"User","createdAt":"2023-03-21T05:29:44.9163057Z","lastModifiedBy":"yuwzho@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-03-21T05:35:29.5799894Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_try_out_api_for_api_portal.yaml b/src/spring/azext_spring/tests/latest/recordings/test_try_out_api_for_api_portal.yaml index 6eb9f2268dd..bab6c48aee7 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_try_out_api_for_api_portal.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_try_out_api_for_api_portal.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T07:56:42.289144Z"}}' @@ -71,13 +71,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:04:46.5443392Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-01-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEU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ey3NDztsAz-vxj-E + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-05-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodH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kuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=B_9O_FvYbjaSvbKc88Q7M_XPWbNnneSV5R7rAUZNCL5SfNW67n2f4nf8Eb9UQv6WEmX1xpW4C_p7bnj_Zv1ulfNtRhO9Zb3luy-hvgkM4ys8Y7m2fmc_uDm32HY5jgGLz2myNQiI5Kbp9mpFxu3YHoCdZ8geJdhy30TqvOXHSak2U70WzHh2NatzwvGGFAPj518hIo1F_3eZDcuNVGYz159FfkRX5cNbm3VEEwy7LBFIK10R3433xCba7H8QYwbRBEB8BA2uO2NCe4YamhFdPXp71Stmp343vTOJ9sQ9jCiuUiv1Tfa6Ckg_oh2BJGH06szZxkH4BemRsgoKDIhcMw&h=UZ3Dm1W2hb_tQrCWw1he0bRHqG9ey3NDztsAz-vxj-E cache-control: - no-cache content-length: @@ -89,7 +89,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/a6ad00ff-7d01-409b-b689-241b2d66d6e5/Spring/df-ae-enterpri-1108020957?api-version=2024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fmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=iZ35Ha3vJq5MOXi4N-xDn0mno6F-THoxu0HP2SlJ4at2tD0TQEE17dx2TSRhEcrOvCMeZBeNmPYOXnHswL_IbhacTWM0elljkNHeFVbHObDTYB-eZUmN7TuGkzTjZOOh8rFS1BqQacSuxsV7NIJKYpxqywOmnSIsy39brftqRK79hc1aSoIkvmt8lGH8pfqNtA7IZHmHO6v-kJ_XefZNlXdidG5d5Tpd7sCawrozRrCS7CzCUoQKK2ePBWIXTAQMJvsL76BS5nYp6qtauvDDlVTP9AS0wDzYJXmBNOJUGYl0SztpqduxD5jBYqlhlojHCzqQgvxZbeZKQY_iNiYMJQ&h=JZubSkrBipA7b9tjkIPyXD03IxwvJHoUOthCHqYk94k + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/a6ad00ff-7d01-409b-b689-241b2d66d6e5/Spring/df-ae-enterpri-1108020957?api-version=2024-05-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2M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LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=iZ35Ha3vJq5MOXi4N-xDn0mno6F-THoxu0HP2SlJ4at2tD0TQEE17dx2TSRhEcrOvCMeZBeNmPYOXnHswL_IbhacTWM0elljkNHeFVbHObDTYB-eZUmN7TuGkzTjZOOh8rFS1BqQacSuxsV7NIJKYpxqywOmnSIsy39brftqRK79hc1aSoIkvmt8lGH8pfqNtA7IZHmHO6v-kJ_XefZNlXdidG5d5Tpd7sCawrozRrCS7CzCUoQKK2ePBWIXTAQMJvsL76BS5nYp6qtauvDDlVTP9AS0wDzYJXmBNOJUGYl0SztpqduxD5jBYqlhlojHCzqQgvxZbeZKQY_iNiYMJQ&h=JZubSkrBipA7b9tjkIPyXD03IxwvJHoUOthCHqYk94k pragma: - no-cache request-context: @@ -121,7 +121,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-01-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbT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vlo&s=B_9O_FvYbjaSvbKc88Q7M_XPWbNnneSV5R7rAUZNCL5SfNW67n2f4nf8Eb9UQv6WEmX1xpW4C_p7bnj_Zv1ulfNtRhO9Zb3luy-hvgkM4ys8Y7m2fmc_uDm32HY5jgGLz2myNQiI5Kbp9mpFxu3YHoCdZ8geJdhy30TqvOXHSak2U70WzHh2NatzwvGGFAPj518hIo1F_3eZDcuNVGYz159FfkRX5cNbm3VEEwy7LBFIK10R3433xCba7H8QYwbRBEB8BA2uO2NCe4YamhFdPXp71Stmp343vTOJ9sQ9jCiuUiv1Tfa6Ckg_oh2BJGH06szZxkH4BemRsgoKDIhcMw&h=UZ3Dm1W2hb_tQrCWw1he0bRHqG9ey3NDztsAz-vxj-E + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-05-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipC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Io1F_3eZDcuNVGYz159FfkRX5cNbm3VEEwy7LBFIK10R3433xCba7H8QYwbRBEB8BA2uO2NCe4YamhFdPXp71Stmp343vTOJ9sQ9jCiuUiv1Tfa6Ckg_oh2BJGH06szZxkH4BemRsgoKDIhcMw&h=UZ3Dm1W2hb_tQrCWw1he0bRHqG9ey3NDztsAz-vxj-E response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5","name":"a6ad00ff-7d01-409b-b689-241b2d66d6e5","status":"Running","startTime":"2023-11-08T08:04:48.5213672Z"}' @@ -169,7 +169,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-01-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ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RhO9Zb3luy-hvgkM4ys8Y7m2fmc_uDm32HY5jgGLz2myNQiI5Kbp9mpFxu3YHoCdZ8geJdhy30TqvOXHSak2U70WzHh2NatzwvGGFAPj518hIo1F_3eZDcuNVGYz159FfkRX5cNbm3VEEwy7LBFIK10R3433xCba7H8QYwbRBEB8BA2uO2NCe4YamhFdPXp71Stmp343vTOJ9sQ9jCiuUiv1Tfa6Ckg_oh2BJGH06szZxkH4BemRsgoKDIhcMw&h=UZ3Dm1W2hb_tQrCWw1he0bRHqG9ey3NDztsAz-vxj-E + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-05-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6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iuUiv1Tfa6Ckg_oh2BJGH06szZxkH4BemRsgoKDIhcMw&h=UZ3Dm1W2hb_tQrCWw1he0bRHqG9ey3NDztsAz-vxj-E response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5","name":"a6ad00ff-7d01-409b-b689-241b2d66d6e5","status":"Running","startTime":"2023-11-08T08:04:48.5213672Z"}' @@ -217,7 +217,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-01-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhj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GGFAPj518hIo1F_3eZDcuNVGYz159FfkRX5cNbm3VEEwy7LBFIK10R3433xCba7H8QYwbRBEB8BA2uO2NCe4YamhFdPXp71Stmp343vTOJ9sQ9jCiuUiv1Tfa6Ckg_oh2BJGH06szZxkH4BemRsgoKDIhcMw&h=UZ3Dm1W2hb_tQrCWw1he0bRHqG9ey3NDztsAz-vxj-E + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5?api-version=2024-05-01-preview&t=638350274891226938&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcG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: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a6ad00ff-7d01-409b-b689-241b2d66d6e5","name":"a6ad00ff-7d01-409b-b689-241b2d66d6e5","status":"Succeeded","startTime":"2023-11-08T08:04:48.5213672Z","endTime":"2023-11-08T08:05:08.3222315Z"}' @@ -265,7 +265,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:04:46.5443392Z"}}' @@ -313,7 +313,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:04:46.5443392Z"}}' @@ -369,13 +369,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:05:17.9303955Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-01-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20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YBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-05-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BA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3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 cache-control: - no-cache content-length: @@ -387,7 +387,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/a0255453-a29a-43e1-8973-a4f843befd4c/Spring/df-ae-enterpri-1108020957?api-version=2024-01-01-preview&t=638350275203522319&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3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KDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=ARuXnpKu2GWEtex7-TkWPINlb9435nsqPGGlUPQEAldlLpji39IPGMOGJqpFx4LX5aMfnSi7JaRxlLcoH8WMKb_W22xt8cI2ZHZsMMKt-onFDquOHmh0JsZrDZLI_VZrfQUUt2oIbPCy8uwKeNA0e9cMbVYTaoxrJOaLB28BuaiY66apwNWGkOBVk3010EIwVRfy4v6TVfciwJpI01DgxITWFuQUSPEYcq8ExmWid2yrLgh9mqjM-jbJn846z30uCdTK6u0QslvSN1kKik2hPqrzntEobTHHUPge44hfeFA8u8uoV34kVY4wQOKbWUF-ZNKR2zwZ8r_gzdmNSFThpw&h=y-gn0Hisx2VcPm-r6Bxw7i74MYlXdtjCIwmlr4gJ_fQ + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/a0255453-a29a-43e1-8973-a4f843befd4c/Spring/df-ae-enterpri-1108020957?api-version=2024-05-01-preview&t=638350275203522319&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvz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0e9cMbVYTaoxrJOaLB28BuaiY66apwNWGkOBVk3010EIwVRfy4v6TVfciwJpI01DgxITWFuQUSPEYcq8ExmWid2yrLgh9mqjM-jbJn846z30uCdTK6u0QslvSN1kKik2hPqrzntEobTHHUPge44hfeFA8u8uoV34kVY4wQOKbWUF-ZNKR2zwZ8r_gzdmNSFThpw&h=y-gn0Hisx2VcPm-r6Bxw7i74MYlXdtjCIwmlr4gJ_fQ pragma: - no-cache request-context: @@ -419,7 +419,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-01-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y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lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-05-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGC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hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c","name":"a0255453-a29a-43e1-8973-a4f843befd4c","status":"Running","startTime":"2023-11-08T08:05:19.5207783Z"}' @@ -467,7 +467,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-01-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5r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9mzyj_SCdZEAJLq-4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-05-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChl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oNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c","name":"a0255453-a29a-43e1-8973-a4f843befd4c","status":"Running","startTime":"2023-11-08T08:05:19.5207783Z"}' @@ -515,7 +515,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-01-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNx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jBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae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wYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c","name":"a0255453-a29a-43e1-8973-a4f843befd4c","status":"Running","startTime":"2023-11-08T08:05:19.5207783Z"}' @@ -563,7 +563,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-01-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jv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A4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c?api-version=2024-05-01-preview&t=638350275203366056&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBg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LOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=dGSM09uE3tUYszvYrR8nyOLgtDJdEVuaYHC-u7thLsH2rCZJLTP-4Z_KwHuh0ja1_zSfq8bxfk6i93wKygBULINZFslaDOKrRCKe5uA283FEJH5GKb83YjLiXg6MN-fJPrQ2-20lU4I5ied2lyBDJbe7NM0jxywYxG6B6r0qj7IqPBEdtMdCINSROv5kBwRfDn8V7Fsy4I3hVoi9rrBkDlD6kzn7CAuTO2_yhQbzwxgIye2fQhbGE_XRn9bQw7lF-JAQ7AQc0StbEe2bKZG4Am5gJtRmQvs5SKAjrRCjJ70r7ID6hA9oy1Yrv4n77RQS-otoARdZUyoXDPxzUafKpw&h=_1cYZDsuJR3MGw736EKKBw6EAP9mzyj_SCdZEAJLq-4 response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/a0255453-a29a-43e1-8973-a4f843befd4c","name":"a0255453-a29a-43e1-8973-a4f843befd4c","status":"Succeeded","startTime":"2023-11-08T08:05:19.5207783Z","endTime":"2023-11-08T08:05:43.0483643Z"}' @@ -611,7 +611,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:05:17.9303955Z"}}' @@ -659,7 +659,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:05:17.9303955Z"}}' @@ -715,13 +715,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-7kqv9","status":"Running"}],"apiTryOutEnabledState":"Disabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:05:58.9407163Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW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XWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHC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KnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk cache-control: - no-cache content-length: @@ -733,7 +733,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/634002ee-6a7e-497a-b342-c297a9c950a9/Spring/df-ae-enterpri-1108020957?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6vo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BQUYYQyI_u7RU6_sWOHChEs + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/634002ee-6a7e-497a-b342-c297a9c950a9/Spring/df-ae-enterpri-1108020957?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzACh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EoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=e47xNbXPbqUvwSNb1KE921zBtLtyV_II35AH_CnR9vP4ZcqjPNHVlwMp5gEBUB5kvxjL14h0OgjN7V0tgZpLTbTDe6BuS30yjqZXJX6TOGy98ZmIy8BVYhAD_rsK5-HPC_Jc575-NvxuZAkE7j9jro3e2tvyblV4LfhLb9eObTlh580zqZies_bAazXEJ7DU5ys9sIJwsn4YltJ2wgcKsIqLKKSIf-d9OMg2a9rH8kg6-gSoBh2-l1H2zCxyaBbxTuw2bryNpHL7kCxbgxHybM8PtwWBAfd8Zxj0rMlfBq_k_svWZjpG98EsHZ9i1ibX2SnSV96k5UV38cYg3gyi-w&h=-7vq664TB7PdIg-ONqbGBQUYYQyI_u7RU6_sWOHChEs pragma: - no-cache request-context: @@ -765,7 +765,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMElORlJBJT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ggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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eOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -813,7 +813,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0u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MmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0a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XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -861,7 +861,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxM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_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oT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il5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -909,7 +909,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvb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tvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJ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OoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -957,7 +957,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQ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hMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJ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x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -1005,7 +1005,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zI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bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGC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hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -1053,7 +1053,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE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s1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8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sMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -1101,7 +1101,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVt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MENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634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oZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Running","startTime":"2023-11-08T08:06:01.0601278Z"}' @@ -1149,7 +1149,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-01-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mc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ATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9?api-version=2024-05-01-preview&t=638350275617845008&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQY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keru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=sqCZ4UEFTz7lc5Me_x9G8ggYoFOpuySvR37k-g-IjIwik84qj7NGFX7SD-2p3qo64J2B805HKk8WNW7agWjdIil5RUsqtvSKdQN-Rjn5S7JR78Rgr_cfZy4_YRhMy_HrN3EFwzrL0eyKdd-PL9mJYNn7f9M4SyOsbx8ffdUAKMF98cfFXOtL7ZkiUxKnMezYRH9HQE9l_vfBU2jOOoUjvC4RjyNWRGexSADBSIYR76umGRoLVi3L9q1bwE65-BM1_iqIhQJDGpKrdSEUgRfg9nqynoK816dnBKokcbNGeQ-jzR1r-thKa7Bxjvmkt1RStjnr2aGbl5oQtqfGEO0x_A&h=pDduacTpk-VdluHfI3zfH6c4KWRfniCs1DE8i19guIk response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/634002ee-6a7e-497a-b342-c297a9c950a9","name":"634002ee-6a7e-497a-b342-c297a9c950a9","status":"Succeeded","startTime":"2023-11-08T08:06:01.0601278Z","endTime":"2023-11-08T08:07:21.969811Z"}' @@ -1197,7 +1197,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-7dc6fdd5c8-xhc2p","status":"Running"}],"apiTryOutEnabledState":"Disabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:05:58.9407163Z"}}' @@ -1245,7 +1245,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-7dc6fdd5c8-xhc2p","status":"Running"}],"apiTryOutEnabledState":"Disabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:05:58.9407163Z"}}' @@ -1301,13 +1301,13 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Updating","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-7dc6fdd5c8-xhc2p","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:07:35.6308516Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50L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ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_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dCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI cache-control: - no-cache content-length: @@ -1319,7 +1319,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/f8320ccc-ef99-4e2a-8db6-d092c3a822e6/Spring/df-ae-enterpri-1108020957?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W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MPIAdmUP7ffOb7nW6iD1eU8ABdiIhUnq2U + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationResults/f8320ccc-ef99-4e2a-8db6-d092c3a822e6/Spring/df-ae-enterpri-1108020957?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHI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kZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=ZjWSe9Ce-3dtqcN9Pi1RNQjZVyhLJz-VBZMl7Wb8H3ae1MBUC4BEydrBl821idMgHn2sPUxe2CumNhI5dtLeBM-5q3vPKxbyXlEuj8vHbW5sazEExQlZOd7kkmuJUbRK-AOxQuKYWJujou2ZHB-vOnxnuy8zmPhyhtYUZ0XF2FmJgV2i1IFytz1KyUPHd0NSDsqT0hNj48UUHMBXUHqsyRUsmxKhshOxENeGHMt4PH7YF7tdYoTZeK3JcQH9eq3ebVgU87t_-I7-Wy5pn-AOBtFLksXu8NhA2aBmj3_-nT3L7HiZ3bxM1FUM3mbwjGoh8ELrXi1QgmI5qkZXMWRaQQ&h=JJ7sAnJ1nMPIAdmUP7ffOb7nW6iD1eU8ABdiIhUnq2U pragma: - no-cache request-context: @@ -1351,7 +1351,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQlkyUE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Tl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRY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MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1399,7 +1399,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&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wgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OT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Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1447,7 +1447,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQ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7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhv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lHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1495,7 +1495,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4w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w445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2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vADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1543,7 +1543,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggE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4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5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tlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1591,7 +1591,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXr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FHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLg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eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1639,7 +1639,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIb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3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAG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5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1687,7 +1687,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6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CNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUF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IwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1735,7 +1735,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLg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L2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus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BQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1783,7 +1783,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwO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3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1C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ZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1831,7 +1831,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-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BBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5G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l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1879,7 +1879,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTAN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dkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aW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wvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1927,7 +1927,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMD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LZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6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CLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -1975,7 +1975,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5t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-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZC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FwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -2023,7 +2023,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3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mbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx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7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -2071,7 +2071,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVs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m1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjc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-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Running","startTime":"2023-11-08T08:07:37.3356928Z"}' @@ -2119,7 +2119,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-01-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5U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4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6?api-version=2024-05-01-preview&t=638350276579277864&c=MIIHHjCCBgagAwIBAgITOgI9LlF5jGEEQe1CmgAEAj0uUTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjMxMTAxMjE0OTQ5WhcNMjQxMDI2MjE0OTQ5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMKt_zl2yRFDxIUmqoEA-B7WoRkSqscgwk6CGqDbwEVJS3oTI4Gk-ukQ6El3GQJVthiuwZGw4jwvTDyVWC8mQH2Zni6X1ocTXrNNa6VFJnvzeEn-HpmPATuII8AWtdtUnBvGZGAwgspvH8iZZCiHDowHCWhjVsU6_ipCsmzQeH3oRJI4AwUS_nCVA7U9WPdgIyQp6v5QPzcYCO_zIbNW4y_Cc3phfPEQvPvtSKhuijt68F5WlUY6Ps23ksosYG5VTx7z6skGG9arA5UKUzbbEO8lxzda3OFPZdG7OHe8-VMXxJjtSanZSSbdLgYBRB9m9PGr6voKtML9W5rEukE-lEUCAwEAAaOCBAswggQHMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX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HRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJTkZSQSUyMENBJTIwMDEoNCkuY3JsMBcGA1UdIAQQMA4wDAYKKwYBBAGCN3sBATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKRwStAdrsy7tgEfmtXPZXIwgdXOYwSx2Kqzlhq8b6Ptid4V3vhJvDV0WLS7d72KIMUwZiBnfPHhMmsdkLOSpNSZYC23g3QJSBWvoS86Rpkeru5bEyQmv1gucF_MyaFaUXUd4b7xnvCkv-BBNO8m1lvFAowB2odz9esggf82yeOVBx0yEK_NNOK4l36XvRjvIqemSLZOSi1wow_wn_ovhAEPpSSN7UTahPtz7J12vhP1LuZ4Rvn_hNx48ncw445nMBnMVmcuuakaKDC6_sAcs5lg9jq2yHSaIHRw4xcoS5XwvIykGPMUyAD-dXWFih_XFOKh7ea50hObFhghf3Dtvlo&s=TLCOpe8KAlHPmInRk75Dx4jSv_fKGSBHU_4nRX0bpnK7F9r77RIGxPUr3_40M2jVxPQakCLK2PtcVIhmmbaXRzH5qU4EhsnUyxFIxRXjlmuTNtgbOWlRLcrthwvADK23gGcnGbqFHyXXDPlOKa28UadQvBstnbxO-5R25NqbGajZcw9GX2M23Mk5EFwysczTwvD--Cm1LxdCT0IIIclDlIzRCgo5NnqOk0A4wE-YUD_SSARxPtlZrssMgJpXm3-B12tch231aMUJ7B-0ALqmSfpxhxP5gOiMmakoujB41IIS1d6x7m4X4jkhDKp4Pkl2HUzxbc7ckKqPUQAPFk76jg&h=YMdDYEIgjm6eIiZkSLbjxSCNx25jsEEjsCW_NEIvixI response: body: string: '{"id":"subscriptions/0753feba-86f1-4242-aff1-27938fb04531/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/locations/eastasia/operationStatus/df-ae-enterpri-1108020957/operationId/f8320ccc-ef99-4e2a-8db6-d092c3a822e6","name":"f8320ccc-ef99-4e2a-8db6-d092c3a822e6","status":"Succeeded","startTime":"2023-11-08T08:07:37.3356928Z","endTime":"2023-11-08T08:10:29.2966844Z"}' @@ -2167,7 +2167,7 @@ interactions: User-Agent: - AZURECLI/2.53.1 azsdk-python-mgmt-appplatform/6.1.0 Python/3.10.0 (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","public":false,"url":"","httpsOnly":false,"ssoProperties":{"scope":["openid","profile","email"],"clientId":"*","clientSecret":"*","issuerUri":"https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0"},"gatewayIds":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/gateways/default"],"resourceRequests":{"cpu":"500m","memory":"1Gi"},"instances":[{"name":"asc-api-portal-default-f9ff47dff-chfdr","status":"Running"}],"apiTryOutEnabledState":"Enabled"},"type":"Microsoft.AppPlatform/Spring/apiPortals","sku":{"name":"E0","tier":"Enterprise","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ASCIT-Enterprise-20231108/providers/Microsoft.AppPlatform/Spring/df-ae-enterpri-1108020957/apiPortals/default","name":"default","systemData":{"createdBy":"744f634a-c741-43e5-b464-ccc043d13fac","createdByType":"Application","createdAt":"2023-11-07T20:35:51.8886952Z","lastModifiedBy":"jiec@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-11-08T08:07:35.6308516Z"}}' diff --git a/src/spring/azext_spring/tests/latest/recordings/test_vnet_public_endpoint.yaml b/src/spring/azext_spring/tests/latest/recordings/test_vnet_public_endpoint.yaml index 07c5a409e0c..162ed85719a 100644 --- a/src/spring/azext_spring/tests/latest/recordings/test_vnet_public_endpoint.yaml +++ b/src/spring/azext_spring/tests/latest/recordings/test_vnet_public_endpoint.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"error":{"code":"NotFound","message":"App was not found","target":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","details":null}}' @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest?api-version=2024-05-01-preview response: body: string: '{"properties":{"provisioningState":"Succeeded","zoneRedundant":false,"vnetAddons":{"logStreamPublicEndpoint":false},"version":3,"serviceId":"05f4c23f24f54574a7a6a7d1d6d8c766","networkProfile":{"serviceRuntimeSubnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.Network/virtualNetworks/lr-test-vnet-centralus-01/subnets/service_runtime_subnet","appSubnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.Network/virtualNetworks/lr-test-vnet-centralus-01/subnets/app_subnet","serviceCidr":"10.1.0.0/16,10.2.0.0/16,10.3.0.1/16","serviceRuntimeNetworkResourceGroup":"ap-svc-rt_cli-unittest_centralus","appNetworkResourceGroup":"ap-app_cli-unittest_centralus","outboundIPs":{"publicIPs":["13.86.34.164"]},"requiredTraffics":[{"protocol":"TCP","port":443,"ips":["52.154.155.4","20.37.136.48"],"direction":"Outbound"},{"protocol":"UDP","port":1194,"ips":["52.154.155.4","20.37.136.48"],"direction":"Outbound"},{"protocol":"TCP","port":9000,"ips":["52.154.155.4","20.37.136.48"],"direction":"Outbound"}],"outboundType":"loadBalancer"},"powerState":"Running","fqdn":"cli-unittest.private.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"centralus","tags":null,"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest","name":"cli-unittest"}' @@ -117,13 +117,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:52:02.3346945Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -135,7 +135,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/d0a05e2b-69a9-44f7-925d-f364ba411d2f/Spring/test-app?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/d0a05e2b-69a9-44f7-925d-f364ba411d2f/Spring/test-app?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -167,7 +167,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f","name":"d0a05e2b-69a9-44f7-925d-f364ba411d2f","status":"Running","startTime":"2022-09-07T11:52:02.8646525Z"}' @@ -215,7 +215,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f","name":"d0a05e2b-69a9-44f7-925d-f364ba411d2f","status":"Running","startTime":"2022-09-07T11:52:02.8646525Z"}' @@ -263,7 +263,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f","name":"d0a05e2b-69a9-44f7-925d-f364ba411d2f","status":"Running","startTime":"2022-09-07T11:52:02.8646525Z"}' @@ -311,7 +311,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f","name":"d0a05e2b-69a9-44f7-925d-f364ba411d2f","status":"Running","startTime":"2022-09-07T11:52:02.8646525Z"}' @@ -359,7 +359,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/d0a05e2b-69a9-44f7-925d-f364ba411d2f","name":"d0a05e2b-69a9-44f7-925d-f364ba411d2f","status":"Succeeded","startTime":"2022-09-07T11:52:02.8646525Z","endTime":"2022-09-07T11:53:13.1050171Z"}' @@ -407,7 +407,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":false}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:52:02.3346945Z"}}' @@ -464,13 +464,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90},"provisioningState":"Creating","status":"Running","active":true,"instances":null,"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/default/operationId/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/default/operationId/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -482,7 +482,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5/Spring/default?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5/Spring/default?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -519,13 +519,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:19.9123533Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/ddc1e079-f671-4b5a-945b-f871b4637df7?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/ddc1e079-f671-4b5a-945b-f871b4637df7?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -537,7 +537,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/ddc1e079-f671-4b5a-945b-f871b4637df7/Spring/test-app?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/ddc1e079-f671-4b5a-945b-f871b4637df7/Spring/test-app?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -569,7 +569,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/default/operationId/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/default/operationId/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/default/operationId/bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5","name":"bd28c704-e5d3-4dbd-a14c-3b5a1f932ef5","status":"Succeeded","startTime":"2022-09-07T11:53:19.1873013Z","endTime":"2022-09-07T11:53:47.1311298Z"}' @@ -617,7 +617,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}' @@ -667,7 +667,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/ddc1e079-f671-4b5a-945b-f871b4637df7?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/ddc1e079-f671-4b5a-945b-f871b4637df7?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/ddc1e079-f671-4b5a-945b-f871b4637df7","name":"ddc1e079-f671-4b5a-945b-f871b4637df7","status":"Succeeded","startTime":"2022-09-07T11:53:22.0223614Z","endTime":"2022-09-07T11:53:40.401339Z"}' @@ -715,7 +715,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true,"publicEndpointUrl":"https://cli-unittest-test-app.azuremicroservices.io"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:19.9123533Z"}}' @@ -765,7 +765,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true,"publicEndpointUrl":"https://cli-unittest-test-app.azuremicroservices.io"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:19.9123533Z"}}' @@ -815,7 +815,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}]}' @@ -865,7 +865,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}]}' @@ -919,13 +919,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":false}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:54:08.0338551Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/c7355207-8f22-48a8-b278-0757550d679e?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/c7355207-8f22-48a8-b278-0757550d679e?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -937,7 +937,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/c7355207-8f22-48a8-b278-0757550d679e/Spring/test-app?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/c7355207-8f22-48a8-b278-0757550d679e/Spring/test-app?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -974,7 +974,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}' @@ -1024,7 +1024,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/c7355207-8f22-48a8-b278-0757550d679e?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/c7355207-8f22-48a8-b278-0757550d679e?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/c7355207-8f22-48a8-b278-0757550d679e","name":"c7355207-8f22-48a8-b278-0757550d679e","status":"Succeeded","startTime":"2022-09-07T11:54:09.1438322Z","endTime":"2022-09-07T11:54:29.1247368Z"}' @@ -1072,7 +1072,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":false}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:54:08.0338551Z"}}' @@ -1122,7 +1122,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":false}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:54:08.0338551Z"}}' @@ -1172,7 +1172,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}]}' @@ -1222,7 +1222,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}]}' @@ -1276,13 +1276,13 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Updating","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:54:56.5472312Z"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-05-01-preview cache-control: - no-cache content-length: @@ -1294,7 +1294,7 @@ interactions: expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/7a474912-d3ee-4346-89c2-6e719040303b/Spring/test-app?api-version=2024-01-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationResults/7a474912-d3ee-4346-89c2-6e719040303b/Spring/test-app?api-version=2024-05-01-preview pragma: - no-cache request-context: @@ -1331,7 +1331,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/mock-deployment?api-version=2024-05-01-preview response: body: string: '{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}' @@ -1381,7 +1381,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b","name":"7a474912-d3ee-4346-89c2-6e719040303b","status":"Running","startTime":"2022-09-07T11:55:00.8318185Z"}' @@ -1429,7 +1429,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b","name":"7a474912-d3ee-4346-89c2-6e719040303b","status":"Running","startTime":"2022-09-07T11:55:00.8318185Z"}' @@ -1477,7 +1477,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b?api-version=2024-05-01-preview response: body: string: '{"id":"subscriptions/d0822b01-62ea-4eb9-885b-95c60e4250b4/resourceGroups/cli/providers/Microsoft.AppPlatform/locations/centralus/operationStatus/test-app/operationId/7a474912-d3ee-4346-89c2-6e719040303b","name":"7a474912-d3ee-4346-89c2-6e719040303b","status":"Succeeded","startTime":"2022-09-07T11:55:00.8318185Z","endTime":"2022-09-07T11:55:48.8896484Z"}' @@ -1525,7 +1525,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true,"publicEndpointUrl":"https://cli-unittest-test-app.azuremicroservices.io"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:54:56.5472312Z"}}' @@ -1575,7 +1575,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app?api-version=2024-05-01-preview response: body: string: '{"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":false,"provisioningState":"Succeeded","fqdn":"cli-unittest.private.azuremicroservices.io","httpsOnly":false,"temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"},"enableEndToEndTLS":false,"vnetAddons":{"publicEndpoint":true,"publicEndpointUrl":"https://cli-unittest-test-app.azuremicroservices.io"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"centralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app","name":"test-app","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:52:02.3346945Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:54:56.5472312Z"}}' @@ -1625,7 +1625,7 @@ interactions: User-Agent: - AZURECLI/2.39.0 azsdk-python-mgmt-appplatform/6.1.0 Python/3.9.13 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments?api-version=2024-05-01-preview response: body: string: '{"value":[{"properties":{"deploymentSettings":{"resourceRequests":{"cpu":"1","memory":"1Gi"},"environmentVariables":null,"terminationGracePeriodSeconds":90,"livenessProbe":{"disableProbe":false,"failureThreshold":24,"initialDelaySeconds":60,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}},"readinessProbe":{"disableProbe":false,"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1,"probeAction":{"type":"TCPSocketAction"}}},"provisioningState":"Succeeded","status":"Running","active":true,"instances":[{"name":"test-app-default-8-57c694d5d4-6dzkv","status":"Running","discoveryStatus":"UNREGISTERED","startTime":"2022-09-07T11:53:23Z"}],"source":{"type":"Jar","relativePath":"","runtimeVersion":"Java_8"}},"type":"Microsoft.AppPlatform/Spring/apps/deployments","sku":{"name":"S0","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli/providers/Microsoft.AppPlatform/Spring/cli-unittest/apps/test-app/deployments/default","name":"default","systemData":{"createdBy":"caihuarui@microsoft.com","createdByType":"User","createdAt":"2022-09-07T11:53:18.3498623Z","lastModifiedBy":"caihuarui@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-09-07T11:53:18.3498623Z"}}]}' diff --git a/src/spring/azext_spring/tests/latest/test_asa_accelerator.py b/src/spring/azext_spring/tests/latest/test_asa_accelerator.py index 3ce36644348..63ac4fd8639 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_accelerator.py +++ b/src/spring/azext_spring/tests/latest/test_asa_accelerator.py @@ -66,6 +66,10 @@ def test_customized_accelerator(self, resource_group, spring): 'gitBranch': 'master', }) + result = self.cmd( + 'spring application-accelerator customized-accelerator list -g {rg} -s {serviceName}').get_output_in_json() + originalCount = len(result) + self.cmd( 'spring application-accelerator customized-accelerator create -n {name} -g {rg} -s {serviceName} --display-name {displayName} --git-url {gitUrl} --git-branch {gitBranch} --git-interval 10', checks=[ @@ -80,18 +84,18 @@ def test_customized_accelerator(self, resource_group, spring): result = self.cmd( 'spring application-accelerator customized-accelerator list -g {rg} -s {serviceName}').get_output_in_json() - self.assertTrue(len(result) == 1) + self.assertEqual(len(result), originalCount + 1) self.cmd('spring application-accelerator customized-accelerator show -n {name} -g {rg} -s {serviceName}', - checks=[ - self.check('properties.provisioningState', "Succeeded") - ]) + checks=[ + self.check('properties.provisioningState', "Succeeded") + ]) self.cmd('spring application-accelerator customized-accelerator delete -n {name} -g {rg} -s {serviceName}') result = self.cmd( 'spring application-accelerator customized-accelerator list -g {rg} -s {serviceName}').get_output_in_json() - self.assertTrue(len(result) == 0) + self.assertEqual(len(result), originalCount) @SpringResourceGroupPreparer( dev_setting_name=SpringTestEnvironmentEnum.ENTERPRISE_WITH_TANZU['resource_group_name']) diff --git a/src/spring/azext_spring/tests/latest/test_asa_api_portal.py b/src/spring/azext_spring/tests/latest/test_asa_api_portal.py index 3a3ce68ac8a..bd6eda631e3 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_api_portal.py +++ b/src/spring/azext_spring/tests/latest/test_asa_api_portal.py @@ -14,7 +14,7 @@ from .common.test_utils import get_test_cmd from .custom_preparers import SpringPreparer, SpringResourceGroupPreparer, SpringSubResourceWrapper from .custom_dev_setting_constant import SpringTestEnvironmentEnum -from ...vendored_sdks.appplatform.v2024_01_01_preview import models +from ...vendored_sdks.appplatform.v2024_05_01_preview import models from ...api_portal import (api_portal_custom_domain_update, api_portal_custom_domain_unbind) try: diff --git a/src/spring/azext_spring/tests/latest/test_asa_app.py b/src/spring/azext_spring/tests/latest/test_asa_app.py index 368c9b72382..c751ed6a24b 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_app.py +++ b/src/spring/azext_spring/tests/latest/test_asa_app.py @@ -8,7 +8,7 @@ from azure.cli.core.azclierror import ResourceNotFoundError from knack.util import CLIError from msrestazure.tools import resource_id -from ...vendored_sdks.appplatform.v2024_01_01_preview import models +from ...vendored_sdks.appplatform.v2024_05_01_preview import models from ..._utils import _get_sku_name from ...app import (app_create, app_update, app_deploy, deployment_create) from ...custom import (app_set_deployment, app_unset_deployment, diff --git a/src/spring/azext_spring/tests/latest/test_asa_application_accelerator.py b/src/spring/azext_spring/tests/latest/test_asa_application_accelerator.py index c53e47a4996..ec97953a9df 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_application_accelerator.py +++ b/src/spring/azext_spring/tests/latest/test_asa_application_accelerator.py @@ -8,7 +8,7 @@ from .common.test_utils import get_test_cmd from .custom_preparers import (SpringPreparer, SpringResourceGroupPreparer) from .custom_dev_setting_constant import SpringTestEnvironmentEnum -from ...vendored_sdks.appplatform.v2024_01_01_preview import models +from ...vendored_sdks.appplatform.v2024_05_01_preview import models from ...application_accelerator import (application_accelerator_create as create, application_accelerator_delete as delete) diff --git a/src/spring/azext_spring/tests/latest/test_asa_application_configuration_service_scenario.py b/src/spring/azext_spring/tests/latest/test_asa_application_configuration_service_scenario.py index 0548b3d2762..71321bfb54c 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_application_configuration_service_scenario.py +++ b/src/spring/azext_spring/tests/latest/test_asa_application_configuration_service_scenario.py @@ -17,8 +17,8 @@ class TearDown(SpringSubResourceWrapper): def __init__(self, - resource_group_parameter_name='resource_group', - spring_parameter_name='spring'): + resource_group_parameter_name='resource_group', + spring_parameter_name='spring'): super(TearDown, self).__init__() self.cli_ctx = get_dummy_cli() self.resource_group_parameter_name = resource_group_parameter_name @@ -27,13 +27,15 @@ def __init__(self, def create_resource(self, *_, **kwargs): self.resource_group = self._get_resource_group(**kwargs) self.spring = self._get_spring(**kwargs) - + try: + self.live_only_execute(self.cli_ctx, 'spring application-configuration-service create -g {} -s {}' + .format(self.resource_group, self.spring)) + except: + pass + def remove_resource(self, *_, **__): - self.live_only_execute(self.cli_ctx, - 'spring application-configuration-service delete -g {} -s {} --yes'.format( - self.resource_group, self.spring)) - self.live_only_execute(self.cli_ctx, 'spring application-configuration-service create -g {} -s {}'.format( - self.resource_group, self.spring)) + self.live_only_execute(self.cli_ctx, 'spring application-configuration-service delete -g {} -s {} --yes' + .format(self.resource_group, self.spring)) class ApplicationConfigurationServiceTest(ScenarioTest): @@ -61,12 +63,12 @@ def test_application_configuration_service(self, resource_group, spring, app): ]) self.cmd('spring application-configuration-service git repo add -g {rg} -s {serviceName} ' - '-n {repo} --label {label} --patterns {patterns} --uri {uri}', - checks=[self.check('properties.provisioningState', "Succeeded")]) + '-n {repo} --label {label} --patterns {patterns} --uri {uri}', + checks=[self.check('properties.provisioningState', "Succeeded")]) self.cmd('spring application-configuration-service git repo update -g {rg} -s {serviceName} ' - '-n {repo} --label {label}', - checks=[self.check('properties.provisioningState', "Succeeded")]) + '-n {repo} --label {label}', + checks=[self.check('properties.provisioningState', "Succeeded")]) result = self.cmd( 'spring application-configuration-service git repo list -g {rg} -s {serviceName}').get_output_in_json() @@ -79,29 +81,29 @@ def test_application_configuration_service(self, resource_group, spring, app): self.cmd('spring application-configuration-service bind --app {app} -g {rg} -s {serviceName}', checks=[ self.check('properties.addonConfigs.applicationConfigurationService.resourceId', - "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/configurationServices/default".format( - self.get_subscription_id(), resource_group, spring)) + "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/configurationServices/default".format( + self.get_subscription_id(), resource_group, spring)) ]) self.cmd('spring app show -n {app} -g {rg} -s {serviceName}') - self.cmd('spring application-configuration-service unbind --app {app} -g {rg} -s {serviceName}') + #self.cmd('spring application-configuration-service unbind --app {app} -g {rg} -s {serviceName}') self.cmd('spring application-configuration-service clear -g {rg} -s {serviceName}', checks=[ self.check('properties.provisioningState', "Succeeded") ]) - self.cmd('spring application-configuration-service update -g {rg} -s {serviceName} ' - '--generation Gen2 --refresh-interval 10', - checks=[ - self.check('properties.provisioningState', "Succeeded"), - self.check('properties.generation', "Gen2"), - self.check('properties.settings.refreshIntervalInSeconds', 10)]) + self.cmd('spring application-configuration-service update -g {rg} -s {serviceName} --generation Gen2 --refresh-interval 10', + checks=[ + self.check('properties.provisioningState', "Succeeded"), + self.check('properties.generation', "Gen2"), + self.check('properties.settings.refreshIntervalInSeconds', 10)]) + self.cmd('spring app delete -n {app} -g {rg} -s {serviceName}') self.cmd('spring application-configuration-service delete -g {rg} -s {serviceName} --yes') - self.cmd('spring application-configuration-service create -g {rg} -s {serviceName} ' - '--generation Gen1 --refresh-interval 20', - checks=[ - self.check('properties.provisioningState', "Succeeded"), - self.check('properties.generation', "Gen1"), - self.check('properties.settings.refreshIntervalInSeconds', 20)]) + + self.cmd('spring application-configuration-service create -g {rg} -s {serviceName} --generation Gen1 --refresh-interval 20', + checks=[ + self.check('properties.provisioningState', "Succeeded"), + self.check('properties.generation', "Gen1"), + self.check('properties.settings.refreshIntervalInSeconds', 20)]) diff --git a/src/spring/azext_spring/tests/latest/test_asa_application_live_view.py b/src/spring/azext_spring/tests/latest/test_asa_application_live_view.py index e7c2765d7ea..4fcf48675ef 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_application_live_view.py +++ b/src/spring/azext_spring/tests/latest/test_asa_application_live_view.py @@ -8,7 +8,7 @@ from .common.test_utils import get_test_cmd from .custom_preparers import SpringPreparer, SpringResourceGroupPreparer from .custom_dev_setting_constant import SpringTestEnvironmentEnum -from ...vendored_sdks.appplatform.v2024_01_01_preview import models +from ...vendored_sdks.appplatform.v2024_05_01_preview import models from ...application_live_view import (create, delete) try: diff --git a/src/spring/azext_spring/tests/latest/test_asa_certificate.py b/src/spring/azext_spring/tests/latest/test_asa_certificate.py index 2776eea8831..1e50c557a61 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_certificate.py +++ b/src/spring/azext_spring/tests/latest/test_asa_certificate.py @@ -5,7 +5,7 @@ import unittest import os from .common.test_utils import get_test_cmd -from ...vendored_sdks.appplatform.v2024_01_01_preview import models +from ...vendored_sdks.appplatform.v2024_05_01_preview import models from ..._utils import _get_sku_name from ...custom import (certificate_add, certificate_update) try: diff --git a/src/spring/azext_spring/tests/latest/test_asa_create.py b/src/spring/azext_spring/tests/latest/test_asa_create.py index d13cac00e7d..9bb49067def 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_create.py +++ b/src/spring/azext_spring/tests/latest/test_asa_create.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- import unittest from .common.test_utils import get_test_cmd -from ...vendored_sdks.appplatform.v2024_01_01_preview import models +from ...vendored_sdks.appplatform.v2024_05_01_preview import models from ...spring_instance import (spring_create) from ..._utils import (_get_sku_name) diff --git a/src/spring/azext_spring/tests/latest/test_asa_service_registry.py b/src/spring/azext_spring/tests/latest/test_asa_service_registry.py index 89f6134446e..57a5fd0593b 100644 --- a/src/spring/azext_spring/tests/latest/test_asa_service_registry.py +++ b/src/spring/azext_spring/tests/latest/test_asa_service_registry.py @@ -36,8 +36,8 @@ def test_service_registry(self, resource_group, spring, app): "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.AppPlatform/Spring/{}/serviceRegistries/default".format( self.get_subscription_id(), resource_group, spring)) ]) - self.cmd('spring app show -n {app} -g {rg} -s {serviceName}') - self.cmd('spring service-registry unbind --app {app} -g {rg} -s {serviceName}') + self.cmd('spring app delete -n {app} -g {rg} -s {serviceName}') + #self.cmd('spring service-registry unbind --app {app} -g {rg} -s {serviceName}') self.cmd('spring service-registry delete -g {rg} -s {serviceName} --yes') diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_app_platform_management_client.py deleted file mode 100644 index 473f317a3ef..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_app_platform_management_client.py +++ /dev/null @@ -1,168 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2020_07_01.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: azure.mgmt.appplatform.v2020_07_01.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2020_07_01.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2020_07_01.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2020_07_01.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appplatform.v2020_07_01.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: azure.mgmt.appplatform.v2020_07_01.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: azure.mgmt.appplatform.v2020_07_01.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2020_07_01.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2020_07_01.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2020_07_01.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2020-07-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_configuration.py deleted file mode 100644 index bab9c551ea1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2020-07-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2020-07-01") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_app_platform_management_client.py deleted file mode 100644 index a681efe8f62..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_app_platform_management_client.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2020_07_01.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2020_07_01.aio.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2020_07_01.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2020_07_01.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2020_07_01.aio.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appplatform.v2020_07_01.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2020_07_01.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: azure.mgmt.appplatform.v2020_07_01.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2020_07_01.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2020_07_01.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2020_07_01.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2020-07-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-07-01" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2020-07-01") - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_configuration.py deleted file mode 100644 index a43418bb9e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2020-07-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2020-07-01") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/__init__.py deleted file mode 100644 index 1bed236659d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_apps_operations.py deleted file mode 100644 index 60ac91ca7f2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_apps_operations.py +++ /dev/null @@ -1,946 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_bindings_operations.py deleted file mode 100644 index c939fbc3fb5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,769 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_certificates_operations.py deleted file mode 100644 index 4595140ecb7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,526 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py deleted file mode 100644 index 951b17c3cc4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,709 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 12fc7fd8874..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,772 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_deployments_operations.py deleted file mode 100644 index dec35cc8635..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1260 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 7f1a63f22e0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,515 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_operations.py deleted file mode 100644 index 71a03890927..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_operations.py +++ /dev/null @@ -1,130 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 5b71bc6b091..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_services_operations.py deleted file mode 100644 index 95e494a3a2f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_services_operations.py +++ /dev/null @@ -1,1199 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_07_01.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_07_01.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_skus_operations.py deleted file mode 100644 index f6d530b337d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/aio/operations/_skus_operations.py +++ /dev/null @@ -1,131 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/__init__.py deleted file mode 100644 index e5496d79401..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/__init__.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import Error -from ._models_py3 import GitPatternRepository -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import UserSourceInfo - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import RuntimeVersion -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import UserSourceType -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AvailableOperations", - "AvailableRuntimeVersions", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "Error", - "GitPatternRepository", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "SupportedRuntimeVersion", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "UserSourceInfo", - "ActionType", - "AppResourceProvisioningState", - "ConfigServerState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "ManagedIdentityType", - "MonitoringSettingState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "RuntimeVersion", - "SkuScaleType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "UserSourceType", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py deleted file mode 100644 index 878e2ebf3d4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - UNKNOWN = "Unknown" - STOPPED = "Stopped" - RUNNING = "Running" - FAILED = "Failed" - ALLOCATING = "Allocating" - UPGRADING = "Upgrading" - COMPILING = "Compiling" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class RuntimeVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Runtime version.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class UserSourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the source uploaded.""" - - JAR = "Jar" - NET_CORE_ZIP = "NetCoreZip" - SOURCE = "Source" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_models_py3.py deleted file mode 100644 index a79ea484224..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_models_py3.py +++ /dev/null @@ -1,2984 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2020_07_01.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: ~azure.mgmt.appplatform.v2020_07_01.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_07_01.models.AppResourceProvisioningState - :ivar active_deployment_name: Name of the active deployment of the App. - :vartype active_deployment_name: str - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2020_07_01.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2020_07_01.models.PersistentDisk - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "created_time": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "active_deployment_name": {"key": "activeDeploymentName", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - active_deployment_name: Optional[str] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword active_deployment_name: Name of the active deployment of the App. - :paramtype active_deployment_name: str - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2020_07_01.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2020_07_01.models.PersistentDisk - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.provisioning_state = None - self.active_deployment_name = active_deployment_name - self.fqdn = fqdn - self.https_only = https_only - self.created_time = None - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Binding resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "thumbprint": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - def __init__( - self, *, vault_uri: str, key_vault_cert_name: str, cert_version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - """ - super().__init__(**kwargs) - self.thumbprint = None - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2020_07_01.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2020_07_01.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_07_01.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2020_07_01.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - } - - def __init__(self, *, network_profile: Optional["_models.NetworkProfile"] = None, **kwargs: Any) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2020_07_01.models.NetworkProfile - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: list[~azure.mgmt.appplatform.v2020_07_01.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: list[~azure.mgmt.appplatform.v2020_07_01.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2020_07_01.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2020_07_01.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Deployment resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2020_07_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2020_07_01.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2020_07_01.models.UserSourceInfo - :ivar app_name: App name of the deployment. - :vartype app_name: str - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Unknown", "Stopped", "Running", - "Failed", "Allocating", "Upgrading", and "Compiling". - :vartype status: str or ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentInstance] - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "active": {"readonly": True}, - "created_time": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "app_name": {"key": "appName", "type": "str"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2020_07_01.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentSettings - """ - super().__init__(**kwargs) - self.source = source - self.app_name = None - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = None - self.created_time = None - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar cpu: Required CPU, basic tier should be 1, standard tier should be in range (1, 4). - :vartype cpu: int - :ivar memory_in_gb: Required Memory size in GB, basic tier should be in range (1, 2), standard - tier should be in range (1, 8). - :vartype memory_in_gb: int - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :vartype runtime_version: str or ~azure.mgmt.appplatform.v2020_07_01.models.RuntimeVersion - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "int"}, - "memory_in_gb": {"key": "memoryInGB", "type": "int"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - cpu: int = 1, - memory_in_gb: int = 1, - jvm_options: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - environment_variables: Optional[Dict[str, str]] = None, - runtime_version: Union[str, "_models.RuntimeVersion"] = "Java_8", - **kwargs: Any - ) -> None: - """ - :keyword cpu: Required CPU, basic tier should be 1, standard tier should be in range (1, 4). - :paramtype cpu: int - :keyword memory_in_gb: Required Memory size in GB, basic tier should be in range (1, 2), - standard tier should be in range (1, 8). - :paramtype memory_in_gb: int - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :paramtype runtime_version: str or ~azure.mgmt.appplatform.v2020_07_01.models.RuntimeVersion - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory_in_gb = memory_in_gb - self.jvm_options = jvm_options - self.net_core_main_entry_path = net_core_main_entry_path - self.environment_variables = environment_variables - self.runtime_version = runtime_version - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2020_07_01.models.ManagedIdentityType - :ivar principal_id: Principal Id. - :vartype principal_id: str - :ivar tenant_id: Tenant Id. - :vartype tenant_id: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2020_07_01.models.ManagedIdentityType - :keyword principal_id: Principal Id. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id. - :paramtype tenant_id: str - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2020_07_01.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2020_07_01.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2020_07_01.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key. - :vartype app_insights_instrumentation_key: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2020_07_01.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key. - :paramtype app_insights_instrumentation_key: str - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Cloud Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Cloud service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Cloud instance. - :vartype outbound_i_ps: ~azure.mgmt.appplatform.v2020_07_01.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Cloud instance. - :vartype required_traffics: list[~azure.mgmt.appplatform.v2020_07_01.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Cloud Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud - Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Cloud service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2020_07_01.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2020_07_01.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2020_07_01.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2020_07_01.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2020_07_01.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2020_07_01.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2020_07_01.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Cloud SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2020_07_01.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2020_07_01.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Cloud SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or ~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or ~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_07_01.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2020_07_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_07_01.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2020_07_01.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: list[~azure.mgmt.appplatform.v2020_07_01.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2020_07_01.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2020_07_01.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2020_07_01.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Cloud. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: Optional[str] = None, tier: Optional[str] = None, capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2020_07_01.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2020_07_01.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2020_07_01.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or ~azure.mgmt.appplatform.v2020_07_01.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :paramtype value: str or ~azure.mgmt.appplatform.v2020_07_01.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or ~azure.mgmt.appplatform.v2020_07_01.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - :ivar type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", and "Source". - :vartype type: str or ~azure.mgmt.appplatform.v2020_07_01.models.UserSourceType - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar version: Version of the source. - :vartype version: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.UserSourceType"]] = None, - relative_path: Optional[str] = None, - version: Optional[str] = None, - artifact_selector: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", and - "Source". - :paramtype type: str or ~azure.mgmt.appplatform.v2020_07_01.models.UserSourceType - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword version: Version of the source. - :paramtype version: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - """ - super().__init__(**kwargs) - self.type = type - self.relative_path = relative_path - self.version = version - self.artifact_selector = artifact_selector diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/__init__.py deleted file mode 100644 index 1bed236659d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_apps_operations.py deleted file mode 100644 index 44e9a781357..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_apps_operations.py +++ /dev/null @@ -1,1168 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_07_01.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_bindings_operations.py deleted file mode 100644 index ce5895a3d95..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_bindings_operations.py +++ /dev/null @@ -1,932 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_07_01.models.BindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_certificates_operations.py deleted file mode 100644 index f27e81f1227..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_certificates_operations.py +++ /dev/null @@ -1,649 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource or - IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_config_servers_operations.py deleted file mode 100644 index 4718c72935e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_config_servers_operations.py +++ /dev/null @@ -1,836 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettings - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_custom_domains_operations.py deleted file mode 100644 index 92711dd1074..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_custom_domains_operations.py +++ /dev/null @@ -1,935 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_deployments_operations.py deleted file mode 100644 index 231aea0baae..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_deployments_operations.py +++ /dev/null @@ -1,1633 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource or - IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource or - IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_monitoring_settings_operations.py deleted file mode 100644 index 6ee26121eae..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,607 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_operations.py deleted file mode 100644 index 64be21dc6d5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_operations.py +++ /dev/null @@ -1,152 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_runtime_versions_operations.py deleted file mode 100644 index 04ef0f9e0f2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,122 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_services_operations.py deleted file mode 100644 index a3f568fb9d3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_services_operations.py +++ /dev/null @@ -1,1522 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_07_01.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_07_01.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_07_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_skus_operations.py deleted file mode 100644 index 760e0316809..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_07_01/operations/_skus_operations.py +++ /dev/null @@ -1,157 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-07-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_07_01.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_07_01.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2020-07-01")) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_app_platform_management_client.py deleted file mode 100644 index 9130ed49b2a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2020_11_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2020_11_01_preview.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2020_11_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2020_11_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2020_11_01_preview.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2020_11_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2020_11_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2020_11_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2020_11_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2020_11_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2020_11_01_preview.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2020-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview") - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_configuration.py deleted file mode 100644 index 2278507dcf8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2020-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2020-11-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index d11b9fc33b8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2020_11_01_preview.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2020-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2020-11-01-preview") - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_configuration.py deleted file mode 100644 index e4804acf7a6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2020-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2020-11-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/__init__.py deleted file mode 100644 index 1bed236659d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 4d595ee1f79..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 7a88cde89e6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,787 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index db107ede4d4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,539 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 8bbc2cb1088..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,726 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 42dedff8785..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,788 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 727455bb747..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1294 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 93934d5916a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,525 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_operations.py deleted file mode 100644 index 6014be2050b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 4138cf17358..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 211ad9edbae..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1227 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index e3da2e05643..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/__init__.py deleted file mode 100644 index 6d76257e88a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/__init__.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import Error -from ._models_py3 import GitPatternRepository -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import UserSourceInfo - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import RuntimeVersion -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import UserSourceType -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "Error", - "GitPatternRepository", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "SupportedRuntimeVersion", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "UserSourceInfo", - "ActionType", - "AppResourceProvisioningState", - "ConfigServerState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "ManagedIdentityType", - "MonitoringSettingState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "RuntimeVersion", - "SkuScaleType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "UserSourceType", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 878e2ebf3d4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,157 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - UNKNOWN = "Unknown" - STOPPED = "Stopped" - RUNNING = "Running" - FAILED = "Failed" - ALLOCATING = "Allocating" - UPGRADING = "Upgrading" - COMPILING = "Compiling" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class RuntimeVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Runtime version.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class UserSourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the source uploaded.""" - - JAR = "Jar" - NET_CORE_ZIP = "NetCoreZip" - SOURCE = "Source" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_models_py3.py deleted file mode 100644 index 57f3ed1e712..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_models_py3.py +++ /dev/null @@ -1,3073 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResourceProvisioningState - :ivar active_deployment_name: Name of the active deployment of the App. - :vartype active_deployment_name: str - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2020_11_01_preview.models.PersistentDisk - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "created_time": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "active_deployment_name": {"key": "activeDeploymentName", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - active_deployment_name: Optional[str] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - enable_end_to_end_tls: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword active_deployment_name: Name of the active deployment of the App. - :paramtype active_deployment_name: str - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2020_11_01_preview.models.PersistentDisk - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.provisioning_state = None - self.active_deployment_name = active_deployment_name - self.fqdn = fqdn - self.https_only = https_only - self.created_time = None - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.enable_end_to_end_tls = enable_end_to_end_tls - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "thumbprint": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - def __init__( - self, *, vault_uri: str, key_vault_cert_name: str, cert_version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - """ - super().__init__(**kwargs) - self.thumbprint = None - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - } - - def __init__(self, *, network_profile: Optional["_models.NetworkProfile"] = None, **kwargs: Any) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NetworkProfile - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2020_11_01_preview.models.UserSourceInfo - :ivar app_name: App name of the deployment. - :vartype app_name: str - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Unknown", "Stopped", "Running", - "Failed", "Allocating", "Upgrading", and "Compiling". - :vartype status: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentInstance] - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "active": {"readonly": True}, - "created_time": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "app_name": {"key": "appName", "type": "str"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2020_11_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentSettings - """ - super().__init__(**kwargs) - self.source = source - self.app_name = None - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = None - self.created_time = None - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar cpu: Required CPU, basic tier should be 1, standard tier should be in range (1, 4). - :vartype cpu: int - :ivar memory_in_gb: Required Memory size in GB, basic tier should be in range (1, 2), standard - tier should be in range (1, 8). - :vartype memory_in_gb: int - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :vartype runtime_version: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.RuntimeVersion - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "int"}, - "memory_in_gb": {"key": "memoryInGB", "type": "int"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - cpu: int = 1, - memory_in_gb: int = 1, - jvm_options: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - environment_variables: Optional[Dict[str, str]] = None, - runtime_version: Union[str, "_models.RuntimeVersion"] = "Java_8", - **kwargs: Any - ) -> None: - """ - :keyword cpu: Required CPU, basic tier should be 1, standard tier should be in range (1, 4). - :paramtype cpu: int - :keyword memory_in_gb: Required Memory size in GB, basic tier should be in range (1, 2), - standard tier should be in range (1, 8). - :paramtype memory_in_gb: int - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :paramtype runtime_version: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.RuntimeVersion - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory_in_gb = memory_in_gb - self.jvm_options = jvm_options - self.net_core_main_entry_path = net_core_main_entry_path - self.environment_variables = environment_variables - self.runtime_version = runtime_version - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id. - :vartype principal_id: str - :ivar tenant_id: Tenant Id. - :vartype tenant_id: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id. - :paramtype tenant_id: str - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Cloud Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Cloud service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Cloud instance. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Cloud instance. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Cloud Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud - Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Cloud service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Cloud SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2020_11_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2020_11_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Cloud SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2020_11_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2020_11_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Cloud. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2020_11_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - :ivar type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", and "Source". - :vartype type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.UserSourceType - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar version: Version of the source. - :vartype version: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.UserSourceType"]] = None, - relative_path: Optional[str] = None, - version: Optional[str] = None, - artifact_selector: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", and - "Source". - :paramtype type: str or ~azure.mgmt.appplatform.v2020_11_01_preview.models.UserSourceType - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword version: Version of the source. - :paramtype version: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - """ - super().__init__(**kwargs) - self.type = type - self.relative_path = relative_path - self.version = version - self.artifact_selector = artifact_selector diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/__init__.py deleted file mode 100644 index 1bed236659d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_apps_operations.py deleted file mode 100644 index a7b44a81d85..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1196 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 7348648cd4d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,950 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 6a8e5713e02..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,662 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 7336b6ecfee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,853 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index db79e23f24b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,951 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 2745cacb62f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,1667 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index cadce0f8840..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,617 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_operations.py deleted file mode 100644 index 4d8e05a9620..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 64148a740f8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_services_operations.py deleted file mode 100644 index d4088ecfe2d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1550 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2020_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_skus_operations.py deleted file mode 100644 index 6093c9b0018..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2020_11_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2020-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2020_11_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2020_11_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2020-11-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_app_platform_management_client.py deleted file mode 100644 index 1b8969bd839..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,178 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2021_06_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2021_06_01_preview.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2021_06_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2021_06_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2021_06_01_preview.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2021_06_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2021_06_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2021_06_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2021_06_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2021_06_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2021_06_01_preview.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2021-06-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview") - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_configuration.py deleted file mode 100644 index ff5612f09b0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2021-06-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2021-06-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 61e4a4e5fb8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,180 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2021_06_01_preview.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2021-06-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2021-06-01-preview") - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_configuration.py deleted file mode 100644 index ebe69a311e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2021-06-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2021-06-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/__init__.py deleted file mode 100644 index 1bed236659d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index dc392276cc1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 7cd1388be3f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,787 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 6d782baffcd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,539 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 0716966f728..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,726 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index f1c4e1264e9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,788 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 0d0be84cc1f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1294 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 738c890f3a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,525 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_operations.py deleted file mode 100644 index e3c67364355..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 2e215a36cac..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 716a55088ec..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1227 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 6721b8975e4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/__init__.py deleted file mode 100644 index b73c450ccee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/__init__.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import CustomContainer -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import Error -from ._models_py3 import GitPatternRepository -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import UserSourceInfo - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import RuntimeVersion -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import UserSourceType -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "CustomContainer", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "Error", - "GitPatternRepository", - "ImageRegistryCredential", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "SupportedRuntimeVersion", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "UserSourceInfo", - "ActionType", - "AppResourceProvisioningState", - "ConfigServerState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "ManagedIdentityType", - "MonitoringSettingState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "RuntimeVersion", - "SkuScaleType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "UserSourceType", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index c580595a521..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,158 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - UNKNOWN = "Unknown" - STOPPED = "Stopped" - RUNNING = "Running" - FAILED = "Failed" - ALLOCATING = "Allocating" - UPGRADING = "Upgrading" - COMPILING = "Compiling" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class RuntimeVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Runtime version.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class UserSourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the source uploaded.""" - - JAR = "Jar" - NET_CORE_ZIP = "NetCoreZip" - SOURCE = "Source" - CONTAINER = "Container" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_models_py3.py deleted file mode 100644 index 7a69f7c6930..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_models_py3.py +++ /dev/null @@ -1,3216 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResourceProvisioningState - :ivar active_deployment_name: Name of the active deployment of the App. - :vartype active_deployment_name: str - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2021_06_01_preview.models.PersistentDisk - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "created_time": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "active_deployment_name": {"key": "activeDeploymentName", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - active_deployment_name: Optional[str] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - enable_end_to_end_tls: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword active_deployment_name: Name of the active deployment of the App. - :paramtype active_deployment_name: str - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2021_06_01_preview.models.PersistentDisk - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.provisioning_state = None - self.active_deployment_name = active_deployment_name - self.fqdn = fqdn - self.https_only = https_only - self.created_time = None - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.enable_end_to_end_tls = enable_end_to_end_tls - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "thumbprint": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - def __init__( - self, *, vault_uri: str, key_vault_cert_name: str, cert_version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - """ - super().__init__(**kwargs) - self.thumbprint = None - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - } - - def __init__(self, *, network_profile: Optional["_models.NetworkProfile"] = None, **kwargs: Any) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NetworkProfile - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ImageRegistryCredential - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ImageRegistryCredential - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2021_06_01_preview.models.UserSourceInfo - :ivar app_name: App name of the deployment. - :vartype app_name: str - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Unknown", "Stopped", "Running", - "Failed", "Allocating", "Upgrading", and "Compiling". - :vartype status: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentInstance] - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "active": {"readonly": True}, - "created_time": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "app_name": {"key": "appName", "type": "str"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2021_06_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentSettings - """ - super().__init__(**kwargs) - self.source = source - self.app_name = None - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = None - self.created_time = None - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar cpu: Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard - tier. This is deprecated starting from API version 2021-06-01-preview. Please use the - resourceRequests field to set the CPU size. - :vartype cpu: int - :ivar memory_in_gb: Required Memory size in GB. This should be in range [1, 2] for Basic tier, - and in range [1, 8] for Standard tier. This is deprecated starting from API version - 2021-06-01-preview. Please use the resourceRequests field to set the the memory size. - :vartype memory_in_gb: int - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceRequests - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :vartype runtime_version: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.RuntimeVersion - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "int"}, - "memory_in_gb": {"key": "memoryInGB", "type": "int"}, - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - cpu: int = 1, - memory_in_gb: int = 1, - resource_requests: Optional["_models.ResourceRequests"] = None, - jvm_options: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - environment_variables: Optional[Dict[str, str]] = None, - runtime_version: Union[str, "_models.RuntimeVersion"] = "Java_8", - **kwargs: Any - ) -> None: - """ - :keyword cpu: Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard - tier. This is deprecated starting from API version 2021-06-01-preview. Please use the - resourceRequests field to set the CPU size. - :paramtype cpu: int - :keyword memory_in_gb: Required Memory size in GB. This should be in range [1, 2] for Basic - tier, and in range [1, 8] for Standard tier. This is deprecated starting from API version - 2021-06-01-preview. Please use the resourceRequests field to set the the memory size. - :paramtype memory_in_gb: int - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceRequests - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :paramtype runtime_version: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.RuntimeVersion - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory_in_gb = memory_in_gb - self.resource_requests = resource_requests - self.jvm_options = jvm_options - self.net_core_main_entry_path = net_core_main_entry_path - self.environment_variables = environment_variables - self.runtime_version = runtime_version - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id. - :vartype principal_id: str - :ivar tenant_id: Tenant Id. - :vartype tenant_id: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id. - :paramtype tenant_id: str - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Cloud Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Cloud service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Cloud instance. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Cloud instance. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Cloud Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud - Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Cloud service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Cloud SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2021_06_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2021_06_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Cloud SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2021_06_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2021_06_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Cloud. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2021_06_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - :ivar type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", "Source", and - "Container". - :vartype type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.UserSourceType - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar version: Version of the source. - :vartype version: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomContainer - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.UserSourceType"]] = None, - relative_path: Optional[str] = None, - version: Optional[str] = None, - artifact_selector: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", "Source", - and "Container". - :paramtype type: str or ~azure.mgmt.appplatform.v2021_06_01_preview.models.UserSourceType - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword version: Version of the source. - :paramtype version: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomContainer - """ - super().__init__(**kwargs) - self.type = type - self.relative_path = relative_path - self.version = version - self.artifact_selector = artifact_selector - self.custom_container = custom_container diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/__init__.py deleted file mode 100644 index 1bed236659d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_apps_operations.py deleted file mode 100644 index d786fe15adf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1196 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 0f8a3e452ab..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,950 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 0de76f95bae..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,662 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index d02dffa3bc6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,853 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index d6461a69186..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,951 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 959b62b6827..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,1667 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index fd2e59000e4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,617 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_operations.py deleted file mode 100644 index 121c26eddb7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index bd59381a780..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_services_operations.py deleted file mode 100644 index 3d2c183e0d5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1550 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_06_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_skus_operations.py deleted file mode 100644 index 29db302af15..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_06_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-06-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_06_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_06_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-06-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_app_platform_management_client.py deleted file mode 100644 index 843eb6d35c7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,184 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2021_09_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2021_09_01_preview.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2021_09_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2021_09_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2021_09_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2021_09_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2021_09_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2021_09_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2021_09_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2021_09_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2021_09_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2021_09_01_preview.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview") - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_configuration.py deleted file mode 100644 index 1e7a003a098..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2021-09-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index b9d0a7f876b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,186 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - CertificatesOperations, - ConfigServersOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.ConfigServersOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2021_09_01_preview.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2021-09-01-preview") - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_configuration.py deleted file mode 100644 index 86b8d235803..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2021-09-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/__init__.py deleted file mode 100644 index b5daf54709c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 7976f074fa4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 46084f396e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,787 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 1316027b0b2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,539 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 70e3ddac2fc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,726 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 477c533c6f7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,788 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 85ca82f05d2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1924 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 421c5068c17..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,525 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_operations.py deleted file mode 100644 index 2e0cc545622..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index cb140adfc59..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 5220efd0375..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index b77ba7c2b4e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 4947c5fcff0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,538 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Cloud instance. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py deleted file mode 100644 index 68fefad20a2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/__init__.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DeploymentSettingsContainerProbeSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import GitPatternRepository -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SystemData -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import UserSourceInfo - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import RuntimeVersion -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._app_platform_management_client_enums import UserSourceType -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ContentCertificateProperties", - "CustomContainer", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DeploymentSettingsContainerProbeSettings", - "DiagnosticParameters", - "Error", - "GitPatternRepository", - "ImageRegistryCredential", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedRuntimeVersion", - "SystemData", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "UserSourceInfo", - "ActionType", - "AppResourceProvisioningState", - "ConfigServerState", - "CreatedByType", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "RuntimeVersion", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", - "UserSourceType", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index e3501c5d160..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,188 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - UNKNOWN = "Unknown" - STOPPED = "Stopped" - RUNNING = "Running" - FAILED = "Failed" - ALLOCATING = "Allocating" - UPGRADING = "Upgrading" - COMPILING = "Compiling" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class RuntimeVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Runtime version.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" - - -class UserSourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the source uploaded.""" - - JAR = "Jar" - NET_CORE_ZIP = "NetCoreZip" - SOURCE = "Source" - CONTAINER = "Container" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_models_py3.py deleted file mode 100644 index 3515ffc64ec..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_models_py3.py +++ /dev/null @@ -1,3849 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - """ - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResourceProvisioningState - :ivar active_deployment_name: Name of the active deployment of the App. - :vartype active_deployment_name: str - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2021_09_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.LoadedCertificate] - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "created_time": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "active_deployment_name": {"key": "activeDeploymentName", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - active_deployment_name: Optional[str] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword active_deployment_name: Name of the active deployment of the App. - :paramtype active_deployment_name: str - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2021_09_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.LoadedCertificate] - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.provisioning_state = None - self.active_deployment_name = active_deployment_name - self.fqdn = fqdn - self.https_only = https_only - self.created_time = None - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.PowerState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - } - - def __init__(self, *, network_profile: Optional["_models.NetworkProfile"] = None, **kwargs: Any) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NetworkProfile - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - self.power_state = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ImageRegistryCredential - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ImageRegistryCredential - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Cloud Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Cloud Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2021_09_01_preview.models.UserSourceInfo - :ivar app_name: App name of the deployment. - :vartype app_name: str - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Unknown", "Stopped", "Running", - "Failed", "Allocating", "Upgrading", and "Compiling". - :vartype status: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar created_time: Date time when the resource is created. - :vartype created_time: ~datetime.datetime - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentInstance] - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "active": {"readonly": True}, - "created_time": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "app_name": {"key": "appName", "type": "str"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "created_time": {"key": "createdTime", "type": "iso-8601"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2021_09_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentSettings - """ - super().__init__(**kwargs) - self.source = source - self.app_name = None - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = None - self.created_time = None - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar cpu: Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard - tier. This is deprecated starting from API version 2021-09-01-preview. Please use the - resourceRequests field to set the CPU size. - :vartype cpu: int - :ivar memory_in_gb: Required Memory size in GB. This should be in range [1, 2] for Basic tier, - and in range [1, 8] for Standard tier. This is deprecated starting from API version - 2021-09-01-preview. Please use the resourceRequests field to set the the memory size. - :vartype memory_in_gb: int - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceRequests - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :vartype runtime_version: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.RuntimeVersion - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentSettingsContainerProbeSettings - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "int"}, - "memory_in_gb": {"key": "memoryInGB", "type": "int"}, - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "container_probe_settings": { - "key": "containerProbeSettings", - "type": "DeploymentSettingsContainerProbeSettings", - }, - } - - def __init__( - self, - *, - cpu: int = 1, - memory_in_gb: int = 1, - resource_requests: Optional["_models.ResourceRequests"] = None, - jvm_options: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - environment_variables: Optional[Dict[str, str]] = None, - runtime_version: Union[str, "_models.RuntimeVersion"] = "Java_8", - container_probe_settings: Optional["_models.DeploymentSettingsContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword cpu: Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard - tier. This is deprecated starting from API version 2021-09-01-preview. Please use the - resourceRequests field to set the CPU size. - :paramtype cpu: int - :keyword memory_in_gb: Required Memory size in GB. This should be in range [1, 2] for Basic - tier, and in range [1, 8] for Standard tier. This is deprecated starting from API version - 2021-09-01-preview. Please use the resourceRequests field to set the the memory size. - :paramtype memory_in_gb: int - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceRequests - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword runtime_version: Runtime version. Known values are: "Java_8", "Java_11", and - "NetCore_31". - :paramtype runtime_version: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.RuntimeVersion - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentSettingsContainerProbeSettings - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory_in_gb = memory_in_gb - self.resource_requests = resource_requests - self.jvm_options = jvm_options - self.net_core_main_entry_path = net_core_main_entry_path - self.environment_variables = environment_variables - self.runtime_version = runtime_version - self.container_probe_settings = container_probe_settings - - -class DeploymentSettingsContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id. - :vartype principal_id: str - :ivar tenant_id: Tenant Id. - :vartype tenant_id: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id. - :paramtype tenant_id: str - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Cloud Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Cloud service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Cloud instance. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Cloud instance. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Cloud Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud - Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Cloud service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Cloud SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2021_09_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2021_09_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Cloud SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2021_09_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2021_09_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Cloud. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageProperties - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2021_09_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - self.system_data = None - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CreatedByType - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CreatedByType - :keyword last_modified_at: The timestamp of resource last modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - :ivar type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", "Source", and - "Container". - :vartype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.UserSourceType - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar version: Version of the source. - :vartype version: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomContainer - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.UserSourceType"]] = None, - relative_path: Optional[str] = None, - version: Optional[str] = None, - artifact_selector: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the source uploaded. Known values are: "Jar", "NetCoreZip", "Source", - and "Container". - :paramtype type: str or ~azure.mgmt.appplatform.v2021_09_01_preview.models.UserSourceType - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword version: Version of the source. - :paramtype version: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomContainer - """ - super().__init__(**kwargs) - self.type = type - self.relative_path = relative_path - self.version = version - self.artifact_selector = artifact_selector - self.custom_container = custom_container diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/__init__.py deleted file mode 100644 index b5daf54709c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/__init__.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_apps_operations.py deleted file mode 100644 index d640c7f52b0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1196 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 948a9898cae..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,950 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_certificates_operations.py deleted file mode 100644 index ed9bb4face7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,662 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 781e8209505..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,853 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 636880cfe98..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,951 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_deployments_operations.py deleted file mode 100644 index e388116bf47..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2414 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/StartJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 7b4257cd0eb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,617 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_operations.py deleted file mode 100644 index 25f92e89183..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 39a36bf7126..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_services_operations.py deleted file mode 100644 index 22bb55d93e9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1810 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_skus_operations.py deleted file mode 100644 index 91ace29d536..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_storages_operations.py deleted file mode 100644 index 854876982e8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2021_09_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,659 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2021-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2021_09_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Cloud instance. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2021_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2021-09-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_app_platform_management_client.py deleted file mode 100644 index 38b0b281809..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_01_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_01_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_01_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_01_01_preview.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_01_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_01_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_01_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_01_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_01_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_01_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_01_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_01_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_01_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_01_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_01_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_01_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_01_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_01_01_preview.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_configuration.py deleted file mode 100644 index 3b45462ce14..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-01-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 5584e7cfc82..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,262 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-01-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_configuration.py deleted file mode 100644 index 2266a0249b6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-01-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 7b4a8c2dcb5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,561 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 147fbc7b4a7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,681 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 82bc23b95b0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1183 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index a8eb3e3e4a6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,787 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index af1bad6faab..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,447 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index d79a7849498..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,557 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 76f186b699d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index f3f0b0aae61..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,601 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 4ad34b1a61a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,539 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 0aa6dd8d3fe..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,726 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index c0c4dfe1629..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,754 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 37bb88d3f07..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,788 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 4b625987f82..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1924 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 7896c45ca9b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,561 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 9d5790c7fa0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,564 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 51a9d880d66..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,681 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index b21ffaac25c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,525 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_operations.py deleted file mode 100644 index 229af54776b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index f54f48548f1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 92ad65e8d92..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,442 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index cac3a313180..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index a3f4e399e15..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 5a2454944f4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,538 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Cloud instance. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/__init__.py deleted file mode 100644 index 15b73f4a2cd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/__init__.py +++ /dev/null @@ -1,411 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DiagnosticParameters", - "Error", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "ImageRegistryCredential", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "AppResourceProvisioningState", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "GatewayProvisioningState", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 835b540defc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,287 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_models_py3.py deleted file mode 100644 index 9e183ae399a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_models_py3.py +++ /dev/null @@ -1,7053 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_01_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.LoadedCertificate] - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_01_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.LoadedCertificate] - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = fqdn - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.TriggeredBuildResult - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResultProvisioningState - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__(self, *, name: Optional[str] = None, build_pod_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.KPackBuildStageProvisioningState - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - } - - def __init__( - self, *, network_profile: Optional["_models.NetworkProfile"] = None, zone_redundant: bool = False, **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NetworkProfile - :keyword zone_redundant: - :paramtype zone_redundant: bool - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ImageRegistryCredential - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ImageRegistryCredential - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Cloud Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Cloud Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_01_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_01_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.container_probe_settings = container_probe_settings - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCorsProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCorsProperties - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Cloud app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayApiRoute] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - routes: Optional[List["_models.GatewayApiRoute"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Cloud app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayApiRoute] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.routes = routes - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id. - :vartype principal_id: str - :ivar tenant_id: Tenant Id. - :vartype tenant_id: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id. - :paramtype tenant_id: str - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Cloud Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Cloud service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Cloud instance. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Cloud instance. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Cloud Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud - Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Cloud service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Cloud SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Cloud SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Cloud. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_01_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index b229abe6d64..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,705 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 4fc5700a866..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,836 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_apps_operations.py deleted file mode 100644 index fe0fa405bff..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1445 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_bindings_operations.py deleted file mode 100644 index b46527a66e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,950 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 0f3e8f6834b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index f509d6d639a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_operations.py deleted file mode 100644 index 7f5c982323f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 5d53b260f6d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,757 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 8042a6500ab..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,662 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 088fd96261b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,853 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 8c83aa6f19a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,911 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index a9ca6b17a00..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,951 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_deployments_operations.py deleted file mode 100644 index d29d4461c02..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2414 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 709d7360cbc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,705 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 9588b3dfb77..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,708 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateways_operations.py deleted file mode 100644 index ca2a94f7d74..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,836 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 6f99c889350..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,617 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_operations.py deleted file mode 100644 index 626e3e613a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 71e43711ef3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index aacc2ac0daf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,562 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_services_operations.py deleted file mode 100644 index 57918206d94..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1810 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_skus_operations.py deleted file mode 100644 index 7523a322d3c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_storages_operations.py deleted file mode 100644 index 9008b740664..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_01_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,659 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_01_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Cloud instance. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-01-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_app_platform_management_client.py deleted file mode 100644 index cd2de8976b9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_03_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_03_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_03_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_03_01_preview.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_03_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_03_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_03_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_03_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_03_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_03_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_03_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_03_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_03_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_03_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_03_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_03_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_03_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_03_01_preview.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_configuration.py deleted file mode 100644 index b67ac6c140b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-03-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 7b837040768..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,262 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Cloud. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_03_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-03-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_configuration.py deleted file mode 100644 index 9c500943c8c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-03-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 2e5a247597d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,561 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index fe6e34fd109..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,681 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 8d57d34a1f2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1183 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index d0d543d13bc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,787 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index a751ddde336..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,447 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 55f162f818a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,557 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 4df6c5129bd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index cb93a5e96cb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,601 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 906c870f71c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,539 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 602f7d84587..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,726 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 40833b37f2e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,754 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 584d12c8335..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,788 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index decc1c880dc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1924 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 5881d1e0266..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,561 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index d2a4eb94051..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,564 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 7c3cd308925..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,681 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 054927973e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,525 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_operations.py deleted file mode 100644 index 53ef6c6ed07..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 22e1b7ad982..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 512889e5d6d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,442 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index c677c02db18..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 6d87fa9b77a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index edd0a4e005e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,538 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Cloud instance. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/__init__.py deleted file mode 100644 index c8a57fdd0e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/__init__.py +++ /dev/null @@ -1,413 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DiagnosticParameters", - "Error", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "ImageRegistryCredential", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "AppResourceProvisioningState", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "GatewayProvisioningState", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 835b540defc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,287 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_models_py3.py deleted file mode 100644 index 164c868d141..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_models_py3.py +++ /dev/null @@ -1,7097 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_03_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.LoadedCertificate] - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_03_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.LoadedCertificate] - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = fqdn - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.TriggeredBuildResult - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResultProvisioningState - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__(self, *, name: Optional[str] = None, build_pod_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.KPackBuildStageProvisioningState - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - } - - def __init__( - self, *, network_profile: Optional["_models.NetworkProfile"] = None, zone_redundant: bool = False, **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NetworkProfile - :keyword zone_redundant: - :paramtype zone_redundant: bool - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Cloud Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Cloud Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_03_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_03_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.container_probe_settings = container_probe_settings - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCorsProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCorsProperties - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Cloud app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayApiRoute] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - routes: Optional[List["_models.GatewayApiRoute"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Cloud app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayApiRoute] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.routes = routes - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_03_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_03_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Cloud Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Cloud service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Cloud instance. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Cloud instance. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Cloud Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring Cloud - Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Cloud service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Cloud Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources of - Azure Spring Cloud Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Cloud instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Cloud SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Cloud SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Cloud. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_03_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index caf4ce64335..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,705 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 921b4a7e26f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,836 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_apps_operations.py deleted file mode 100644 index 16f92fb246d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1445 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 4e959799a6f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,950 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 8adca247149..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index bd6b0435107..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_operations.py deleted file mode 100644 index dac48cd9828..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index eab56e8a2cd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,757 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_certificates_operations.py deleted file mode 100644 index f3028cc4842..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,662 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 43874d71b7b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,853 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 1c1633b5249..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,911 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 1b1d128cd40..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,951 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_deployments_operations.py deleted file mode 100644 index f246a9c2ec7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2414 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index d6441bca0a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,705 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index ef6ca05e31a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,708 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateways_operations.py deleted file mode 100644 index 35815998161..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,836 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 967c3830d3b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,617 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_operations.py deleted file mode 100644 index 046f3cb0b9b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index e3a9d635db1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index 1ec4e8560d0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,562 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_services_operations.py deleted file mode 100644 index 56af67b2618..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1810 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_skus_operations.py deleted file mode 100644 index 9d19e6a5af8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_storages_operations.py deleted file mode 100644 index bdfc916ab7c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_03_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,659 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_03_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Cloud instance. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-03-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_app_platform_management_client.py deleted file mode 100644 index 08c17fa28c6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_app_platform_management_client.py +++ /dev/null @@ -1,209 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_04_01.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: azure.mgmt.appplatform.v2022_04_01.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_04_01.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_04_01.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_04_01.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_04_01.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_04_01.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_04_01.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_04_01.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appplatform.v2022_04_01.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: azure.mgmt.appplatform.v2022_04_01.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: azure.mgmt.appplatform.v2022_04_01.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_04_01.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_04_01.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_04_01.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_configuration.py deleted file mode 100644 index d594d536fc6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-04-01") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_app_platform_management_client.py deleted file mode 100644 index 79322767450..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_app_platform_management_client.py +++ /dev/null @@ -1,214 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_04_01.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_04_01.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_04_01.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_04_01.aio.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_04_01.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_04_01.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_04_01.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_04_01.aio.operations.BindingsOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appplatform.v2022_04_01.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_04_01.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: azure.mgmt.appplatform.v2022_04_01.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_04_01.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_04_01.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_04_01.aio.operations.SkusOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-04-01" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-04-01") - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_configuration.py deleted file mode 100644 index a5d61df113a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-04-01") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/__init__.py deleted file mode 100644 index 0679029d357..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/__init__.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_apps_operations.py deleted file mode 100644 index 715c4f7501e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1146 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_04_01.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_04_01.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_bindings_operations.py deleted file mode 100644 index 608e4648937..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,760 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index c5b9b3942ac..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 95107412a58..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,538 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_operations.py deleted file mode 100644 index f6c8498e986..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1074 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_04_01.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index ae050c18875..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,582 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_certificates_operations.py deleted file mode 100644 index e0602cd1276..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,520 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_config_servers_operations.py deleted file mode 100644 index 4c3a8c3d916..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,703 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 84e55cdc9af..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,732 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettings or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 7e7d1c13eaa..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,763 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_deployments_operations.py deleted file mode 100644 index a05dad8e72e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1848 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index f8c694842b9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,509 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_operations.py deleted file mode 100644 index 3c82f988d04..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_operations.py +++ /dev/null @@ -1,130 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 1e2e13c455e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_service_registries_operations.py deleted file mode 100644 index 51db278d035..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,424 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_services_operations.py deleted file mode 100644 index cf257110327..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_services_operations.py +++ /dev/null @@ -1,1190 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_04_01.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_04_01.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_skus_operations.py deleted file mode 100644 index cb00425eec7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/aio/operations/_skus_operations.py +++ /dev/null @@ -1,131 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/__init__.py deleted file mode 100644 index f0a755e58bf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/__init__.py +++ /dev/null @@ -1,329 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import GitPatternRepository -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import StackProperties -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ActiveDeploymentCollection", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContentCertificateProperties", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DiagnosticParameters", - "Error", - "GitPatternRepository", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "StackProperties", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "AppResourceProvisioningState", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SkuScaleType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_app_platform_management_client_enums.py deleted file mode 100644 index f83baae3f06..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,248 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_models_py3.py deleted file mode 100644 index b31723b88ec..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_models_py3.py +++ /dev/null @@ -1,5410 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - """ - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_04_01.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: ~azure.mgmt.appplatform.v2022_04_01.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_04_01.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_04_01.models.PersistentDisk - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_04_01.models.LoadedCertificate] - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_04_01.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_04_01.models.PersistentDisk - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_04_01.models.LoadedCertificate] - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = fqdn - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_04_01.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_04_01.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_04_01.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_04_01.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_04_01.models.TriggeredBuildResult - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.BuildResultProvisioningState - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__(self, *, name: Optional[str] = None, build_pod_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": {"BuildResult": "BuildResultUserSourceInfo", "UploadedUserSourceInfo": "UploadedUserSourceInfo"} - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_04_01.models.KPackBuildStageProvisioningState - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_04_01.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_04_01.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_04_01.models.NetworkProfile - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - } - - def __init__( - self, *, network_profile: Optional["_models.NetworkProfile"] = None, zone_redundant: bool = False, **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_04_01.models.NetworkProfile - :keyword zone_redundant: - :paramtype zone_redundant: bool - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.version = None - self.service_id = None - self.zone_redundant = zone_redundant - self.fqdn = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: list[~azure.mgmt.appplatform.v2022_04_01.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: list[~azure.mgmt.appplatform.v2022_04_01.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_04_01.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_04_01.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_04_01.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_04_01.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - """ - - _validation = { - "app_name": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_04_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_04_01.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_04_01.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_04_01.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_04_01.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: ~azure.mgmt.appplatform.v2022_04_01.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_04_01.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_04_01.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_04_01.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_04_01.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_04_01.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_04_01.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_04_01.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_04_01.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: ~azure.mgmt.appplatform.v2022_04_01.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: list[~azure.mgmt.appplatform.v2022_04_01.models.RequiredTraffic] - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_04_01.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_04_01.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_04_01.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_04_01.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_04_01.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_04_01.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or ~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: list[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_04_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_04_01.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_04_01.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: list[~azure.mgmt.appplatform.v2022_04_01.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_04_01.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_04_01.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_04_01.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_04_01.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or ~azure.mgmt.appplatform.v2022_04_01.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or ~azure.mgmt.appplatform.v2022_04_01.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or ~azure.mgmt.appplatform.v2022_04_01.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_04_01.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_04_01.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_04_01.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_04_01.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_04_01.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_04_01.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or ~azure.mgmt.appplatform.v2022_04_01.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_04_01.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/__init__.py deleted file mode 100644 index 0679029d357..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/__init__.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_apps_operations.py deleted file mode 100644 index 9d3224fef5d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_apps_operations.py +++ /dev/null @@ -1,1402 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_04_01.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_04_01.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_04_01.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_bindings_operations.py deleted file mode 100644 index ea046be42b1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_bindings_operations.py +++ /dev/null @@ -1,926 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 969b71417ab..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,545 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_builder_operations.py deleted file mode 100644 index d77ba01e0eb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,684 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource or IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_operations.py deleted file mode 100644 index 77740287109..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_build_service_operations.py +++ /dev/null @@ -1,1523 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_04_01.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_buildpack_binding_operations.py deleted file mode 100644 index d332e64f887..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,740 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_certificates_operations.py deleted file mode 100644 index 2dcc88c4f61..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_certificates_operations.py +++ /dev/null @@ -1,645 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource or - IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_config_servers_operations.py deleted file mode 100644 index 3dd4eee0785..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_config_servers_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettings - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_configuration_services_operations.py deleted file mode 100644 index d78a36660e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_configuration_services_operations.py +++ /dev/null @@ -1,891 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettings or - IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_custom_domains_operations.py deleted file mode 100644 index e8751183d45..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_custom_domains_operations.py +++ /dev/null @@ -1,929 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_deployments_operations.py deleted file mode 100644 index 0b7c6e57256..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_deployments_operations.py +++ /dev/null @@ -1,2347 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource or - IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource or - IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_04_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_monitoring_settings_operations.py deleted file mode 100644 index b6feabcc3d3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,603 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_operations.py deleted file mode 100644 index 035faaf92d7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_operations.py +++ /dev/null @@ -1,152 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_runtime_versions_operations.py deleted file mode 100644 index b0cf8821b4a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,122 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_service_registries_operations.py deleted file mode 100644 index a94e89c14e0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_service_registries_operations.py +++ /dev/null @@ -1,546 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_services_operations.py deleted file mode 100644 index 78fe4407c63..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_services_operations.py +++ /dev/null @@ -1,1516 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_04_01.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_04_01.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_04_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_skus_operations.py deleted file mode 100644 index 2ded84ffafe..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_04_01/operations/_skus_operations.py +++ /dev/null @@ -1,157 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-04-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_04_01.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_04_01.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-04-01")) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_app_platform_management_client.py deleted file mode 100644 index 512924935f4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_05_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_05_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_05_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_05_01_preview.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_05_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_05_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_05_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_05_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_05_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_05_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_05_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_05_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_05_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_05_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_05_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_05_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_05_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_05_01_preview.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_configuration.py deleted file mode 100644 index b1c4d1b9d77..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-05-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 612505544a1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,262 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-05-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_configuration.py deleted file mode 100644 index 7110f3b6162..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-05-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 32b49c7c7ad..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 80589eac112..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 37f00e3d062..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 8c2d5a66059..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index a7f3d41b5b9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 7214cf460d0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 58631cff3bc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index abf54536930..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,595 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 8161ec22e76..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 615e0696d56..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index a23393fe15e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,748 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 3d3f3852b1e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index d146518c9de..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,1897 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index fac89d77bef..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 87f72e07cf7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index cc77ce40bf8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index ae1ec1536bd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_operations.py deleted file mode 100644 index b4ec90eff74..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 432caa532f4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index fc7e5f260d1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index eb683b4c8e8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1416 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index bc059db7cd8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 6f6d851fbc1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/__init__.py deleted file mode 100644 index 50dacebcc85..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/__init__.py +++ /dev/null @@ -1,443 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import HTTPGetAction -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "DeploymentInstance", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DiagnosticParameters", - "Error", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "HTTPGetAction", - "ImageRegistryCredential", - "IngressConfig", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "Probe", - "ProbeAction", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "AppResourceProvisioningState", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "GatewayProvisioningState", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 391fd28425b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,329 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py deleted file mode 100644 index 378cb63f193..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_models_py3.py +++ /dev/null @@ -1,7638 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_05_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppVNetAddons - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - fqdn: Optional[str] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword fqdn: Fully qualified dns Name. - :paramtype fqdn: str - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_05_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppVNetAddons - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = fqdn - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResultProvisioningState - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__(self, *, name: Optional[str] = None, build_pod_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.KPackBuildStageProvisioningState - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceVNetAddons - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_05_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_05_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.container_probe_settings = container_probe_settings - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCorsProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCorsProperties - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayApiRoute] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - routes: Optional[List["_models.GatewayApiRoute"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayApiRoute] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.routes = routes - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_05_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_05_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2022_05_01_preview.models.IngressConfig - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2022_05_01_preview.models.IngressConfig - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - } - - def __init__(self, *, log_stream_public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_05_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_05_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index aed5d1abcee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 35efb3ccd91..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_apps_operations.py deleted file mode 100644 index 35638e3912d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_bindings_operations.py deleted file mode 100644 index de603c54e78..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index d60cf6df797..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 92f22b3a11f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,697 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_operations.py deleted file mode 100644 index dcbcb8eb25c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index bb01c0c005e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,753 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 8aeb49095e9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 3f00de907e0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 6840d37bfcc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,907 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 3b65edc1325..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 771c9338510..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2396 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 1fc0760d6ba..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 4f666836200..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateways_operations.py deleted file mode 100644 index ed56cb799e3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 8bbdf988379..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py deleted file mode 100644 index 33ccf0a0a9f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index e23775d7b78..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index e940c6387fd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_services_operations.py deleted file mode 100644 index 6a4d9004bf4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1800 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_skus_operations.py deleted file mode 100644 index f18ea486970..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_storages_operations.py deleted file mode 100644 index 62f9f0ed1d0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_05_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-05-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_app_platform_management_client.py deleted file mode 100644 index 1f3c1e6cb0c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_09_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_09_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_09_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_09_01_preview.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_09_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_09_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_09_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_09_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_09_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_09_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_09_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_09_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_09_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_09_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_09_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_09_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_09_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_09_01_preview.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_configuration.py deleted file mode 100644 index 1e864089d7c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-09-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 3a02055bdc2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,262 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_09_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-09-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_configuration.py deleted file mode 100644 index a8f7f81d045..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-09-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index be5339203a5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 3d312879246..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 28d2fbadf80..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index bdf307f4b67..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 8275f97c5d3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 4b3c6585275..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index d8d509d621b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index a413464a1c6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,595 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 41a78fb768c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 91b161f7572..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index cc8639042ab..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,748 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index d04814322d1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 879465f258c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2315 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 2532705ba30..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 418144d31b4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index d993bc07772..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 82e7ac35a31..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_operations.py deleted file mode 100644 index 050053e8aa9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 172eec6213e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 8eb2faffad2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 6dc92705295..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1416 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 0bb79d4c38b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index df6690ad275..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/__init__.py deleted file mode 100644 index a071d862064..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/__init__.py +++ /dev/null @@ -1,459 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import HTTPGetAction -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DiagnosticParameters", - "Error", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "HTTPGetAction", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "Probe", - "ProbeAction", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "AppResourceProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index c22d729c388..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_models_py3.py deleted file mode 100644 index eb400523342..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_models_py3.py +++ /dev/null @@ -1,7817 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_09_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2022_09_01_preview.models.IngressSettings - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_09_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2022_09_01_preview.models.IngressSettings - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResultProvisioningState - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__(self, *, name: Optional[str] = None, build_pod_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.KPackBuildStageProvisioningState - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceVNetAddons - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_09_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_09_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.container_probe_settings = container_probe_settings - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCorsProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCorsProperties - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayApiRoute] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayApiRoute] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_09_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_09_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2022_09_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2022_09_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - } - - def __init__(self, *, log_stream_public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_09_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_09_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index cfacb7e7c57..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 67e44a87cb4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_apps_operations.py deleted file mode 100644 index d6410223dd9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_bindings_operations.py deleted file mode 100644 index e62df92e84d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index fc73847826b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 07d7847d55a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_operations.py deleted file mode 100644 index 4ca655508cc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index ed02f12cfca..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,753 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 9e9e0325f45..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index c47669f1189..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index a91c19f306d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,907 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 5a1dbc6b09c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_deployments_operations.py deleted file mode 100644 index eaa347785ce..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2928 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 7480236b39e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 1b8f4ef3955..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateways_operations.py deleted file mode 100644 index d06e26a51b8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 01087c59537..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_operations.py deleted file mode 100644 index d53392d789f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index bb3193897bb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index 7f4b990c7b9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_services_operations.py deleted file mode 100644 index 742634179ff..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1800 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_skus_operations.py deleted file mode 100644 index 844005c295f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_storages_operations.py deleted file mode 100644 index 748f7262a44..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_09_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_09_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-09-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_app_platform_management_client.py deleted file mode 100644 index 5c9a11a2271..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,295 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_11_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2022_11_01_preview.operations.DevToolPortalsOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_11_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_11_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_11_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_11_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_11_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_11_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_11_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_11_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_11_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_11_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_11_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_11_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2022_11_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2022_11_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2022_11_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_configuration.py deleted file mode 100644 index beea06a1bf1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-11-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index b541cffefc0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.DevToolPortalsOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2022_11_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-11-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_configuration.py deleted file mode 100644 index 013e95edd9b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-11-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/__init__.py deleted file mode 100644 index 9ed85378850..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index fbd1cdcdd4d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 62571b1f512..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index c7a94356e6e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index 7a2d58f2bf9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index e7fc2d3af04..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 30839975d19..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index ef670e99aeb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 5659a0d2881..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 4341ba32afe..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index 709378fbaaf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,595 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 96d3a2d4389..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 1e2ffb99868..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 396cce78370..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,748 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index b2761e742ad..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index a6c24326b90..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index e0b15c67111..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2315 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 1e9fc16064a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 33e5c53ccd0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 232264c0957..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index adf64c6bb21..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,739 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 405c30823ee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_operations.py deleted file mode 100644 index f3d7e3759b2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index bd50258f9c5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 0057cb46839..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 0fd429ca6e0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 1485a71013b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1416 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index e3123140443..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 4f51c7590d0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/__init__.py deleted file mode 100644 index 5afc6c55617..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/__init__.py +++ /dev/null @@ -1,545 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import HTTPGetAction -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "HTTPGetAction", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 561251f8f81..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,439 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_models_py3.py deleted file mode 100644 index 26dee73aff8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_models_py3.py +++ /dev/null @@ -1,9260 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: str, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.AcceleratorAuthSetting - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.AcceleratorAuthSetting - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_11_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2022_11_01_preview.models.IngressSettings - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_11_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2022_11_01_preview.models.IngressSettings - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, JSON] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{object}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, JSON] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceVNetAddons - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_11_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_11_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, dict[str, JSON]] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{{object}}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, Dict[str, JSON]]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, dict[str, JSON]] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCorsProperties - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApmType] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCorsProperties - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApmType] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.apm_types = apm_types - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_11_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_11_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2022_11_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2022_11_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - } - - def __init__(self, *, log_stream_public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_11_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_11_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/__init__.py deleted file mode 100644 index 9ed85378850..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/__init__.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 90affb8b76e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 9ff21975be8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index ac07facd65c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index a06ef6bc28a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_apps_operations.py deleted file mode 100644 index 0b715475ac0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_bindings_operations.py deleted file mode 100644 index c0f3821305b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index e1deb3e3069..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 7c5f5b58933..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_operations.py deleted file mode 100644 index f586d692a62..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 2291f1bc2ca..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,753 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_certificates_operations.py deleted file mode 100644 index d0d542e0531..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 3436d90be5c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 40b31e52b07..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,907 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 2e48ce199c8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index ed291e10437..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 2a325fb591b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2928 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 354662036c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 9c22272242a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 14fd732aeaa..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateways_operations.py deleted file mode 100644 index c0ebc7402d8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 2d01c358a90..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_operations.py deleted file mode 100644 index f04cc61a8b0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 0a71306bc4a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 7b97db9c5cd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index 6ee69dad977..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_services_operations.py deleted file mode 100644 index 05eeb0a225e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1800 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_skus_operations.py deleted file mode 100644 index 20a897c333f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_storages_operations.py deleted file mode 100644 index 82ffe135f73..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_11_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_11_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2022-11-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_app_platform_management_client.py deleted file mode 100644 index 75a549dfa13..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_app_platform_management_client.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_12_01.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: azure.mgmt.appplatform.v2022_12_01.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_12_01.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_12_01.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_12_01.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_12_01.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_12_01.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_12_01.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_12_01.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_12_01.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appplatform.v2022_12_01.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: azure.mgmt.appplatform.v2022_12_01.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: azure.mgmt.appplatform.v2022_12_01.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_12_01.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_12_01.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_12_01.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_12_01.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_12_01.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_12_01.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: azure.mgmt.appplatform.v2022_12_01.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_12_01.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.storages = StoragesOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_configuration.py deleted file mode 100644 index d9abaca1ce8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-12-01") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_app_platform_management_client.py deleted file mode 100644 index 5e0dfaeb16d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_app_platform_management_client.py +++ /dev/null @@ -1,249 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - DeploymentsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2022_12_01.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2022_12_01.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2022_12_01.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2022_12_01.aio.operations.ServiceRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2022_12_01.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2022_12_01.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2022_12_01.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2022_12_01.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2022_12_01.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: azure.mgmt.appplatform.v2022_12_01.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2022_12_01.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: azure.mgmt.appplatform.v2022_12_01.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2022_12_01.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2022_12_01.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2022_12_01.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2022_12_01.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: azure.mgmt.appplatform.v2022_12_01.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2022_12_01.aio.operations.ApiPortalCustomDomainsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.bindings = BindingsOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.storages = StoragesOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize, "2022-12-01") - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2022-12-01" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_configuration.py deleted file mode 100644 index 4b05d2af3a5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2022-12-01") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 0f4379fe84d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,543 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portals_operations.py deleted file mode 100644 index 77c6909988a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,660 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_apps_operations.py deleted file mode 100644 index 406de3a9e5a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1146 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_12_01.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_12_01.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_bindings_operations.py deleted file mode 100644 index 5a3bc0822a5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,760 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 285e320c1f5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index be6590afe18..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,603 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_operations.py deleted file mode 100644 index f77dd6473b9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1074 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_12_01.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index 4d050515848..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,582 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_certificates_operations.py deleted file mode 100644 index 9a46ba2780b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,520 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_config_servers_operations.py deleted file mode 100644 index 91109c73fcc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,703 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 8e17fceebdc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,732 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettings or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_custom_domains_operations.py deleted file mode 100644 index edd50755e18..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,763 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_deployments_operations.py deleted file mode 100644 index b9ae44588bf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2256 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 97f508d9513..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,543 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 3611ddbfc59..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,546 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateways_operations.py deleted file mode 100644 index a4bb63c96fb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,659 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 64930e4866f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,509 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_operations.py deleted file mode 100644 index 088dd8a351c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_operations.py +++ /dev/null @@ -1,130 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 0e878a06800..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_service_registries_operations.py deleted file mode 100644 index f2583ee53e0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,424 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_services_operations.py deleted file mode 100644 index 45f957da1cf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_services_operations.py +++ /dev/null @@ -1,1380 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_12_01.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_12_01.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_skus_operations.py deleted file mode 100644 index 1e6a2808dd2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_skus_operations.py +++ /dev/null @@ -1,131 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_storages_operations.py deleted file mode 100644 index f2103449f9f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/aio/operations/_storages_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_12_01.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_12_01.models.StorageResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/__init__.py deleted file mode 100644 index 11f290f56a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/__init__.py +++ /dev/null @@ -1,457 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import HTTPGetAction -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationInsightsAgentVersions", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DiagnosticParameters", - "Error", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "HTTPGetAction", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "Probe", - "ProbeAction", - "ProxyResource", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "AppResourceProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_app_platform_management_client_enums.py deleted file mode 100644 index c22d729c388..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_models_py3.py deleted file mode 100644 index 2c288890f7b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_models_py3.py +++ /dev/null @@ -1,7689 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_12_01.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_12_01.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2022_12_01.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: ~azure.mgmt.appplatform.v2022_12_01.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2022_12_01.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2022_12_01.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_12_01.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_12_01.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_12_01.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2022_12_01.models.IngressSettings - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2022_12_01.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2022_12_01.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2022_12_01.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2022_12_01.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_12_01.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2022_12_01.models.IngressSettings - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. Required. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - "share_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - share_name: str, - read_only: Optional[bool] = None, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. Required. - :paramtype share_name: str - """ - super().__init__(mount_path=mount_path, read_only=read_only, mount_options=mount_options, **kwargs) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2022_12_01.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_12_01.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2022_12_01.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2022_12_01.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", and "ElasticAPM". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2022_12_01.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.BuildResultProvisioningState - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__(self, *, name: Optional[str] = None, build_pod_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2022_12_01.models.KPackBuildStageProvisioningState - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2022_12_01.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2022_12_01.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2022_12_01.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2022_12_01.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - zone_redundant: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2022_12_01.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceVNetAddons - :keyword zone_redundant: - :paramtype zone_redundant: bool - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: list[~azure.mgmt.appplatform.v2022_12_01.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: list[~azure.mgmt.appplatform.v2022_12_01.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2022_12_01.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2022_12_01.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_12_01.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2022_12_01.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2022_12_01.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2022_12_01.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2022_12_01.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2022_12_01.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2022_12_01.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2022_12_01.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_12_01.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2022_12_01.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2022_12_01.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2022_12_01.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2022_12_01.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: ~azure.mgmt.appplatform.v2022_12_01.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2022_12_01.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2022_12_01.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2022_12_01.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2022_12_01.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.container_probe_settings = container_probe_settings - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2022_12_01.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCorsProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2022_12_01.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCorsProperties - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayApiRoute] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayApiRoute] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2022_12_01.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2022_12_01.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or ~azure.mgmt.appplatform.v2022_12_01.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or ~azure.mgmt.appplatform.v2022_12_01.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: ~azure.mgmt.appplatform.v2022_12_01.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or ~azure.mgmt.appplatform.v2022_12_01.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or ~azure.mgmt.appplatform.v2022_12_01.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: ~azure.mgmt.appplatform.v2022_12_01.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_12_01.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2022_12_01.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2022_12_01.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2022_12_01.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2022_12_01.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_12_01.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2022_12_01.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2022_12_01.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: ~azure.mgmt.appplatform.v2022_12_01.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: list[~azure.mgmt.appplatform.v2022_12_01.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2022_12_01.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2022_12_01.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2022_12_01.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2022_12_01.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2022_12_01.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2022_12_01.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2022_12_01.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2022_12_01.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2022_12_01.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2022_12_01.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: list[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2022_12_01.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: list[~azure.mgmt.appplatform.v2022_12_01.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2022_12_01.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2022_12_01.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2022_12_01.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - } - - def __init__(self, *, log_stream_public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2022_12_01.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2022_12_01.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2022_12_01.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or ~azure.mgmt.appplatform.v2022_12_01.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or ~azure.mgmt.appplatform.v2022_12_01.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or ~azure.mgmt.appplatform.v2022_12_01.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2022_12_01.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2022_12_01.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2022_12_01.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: list[~azure.mgmt.appplatform.v2022_12_01.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_12_01.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or ~azure.mgmt.appplatform.v2022_12_01.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2022_12_01.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2022_12_01.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/__init__.py deleted file mode 100644 index 675b844c6c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/__init__.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 9b42b4c13c9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,689 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portals_operations.py deleted file mode 100644 index d56cd824f65..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_api_portals_operations.py +++ /dev/null @@ -1,817 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource or - IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_apps_operations.py deleted file mode 100644 index 96937f06e91..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_apps_operations.py +++ /dev/null @@ -1,1402 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2022_12_01.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_12_01.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2022_12_01.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_bindings_operations.py deleted file mode 100644 index 8cceb396186..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_bindings_operations.py +++ /dev/null @@ -1,926 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index f796b8ed26e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,545 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_builder_operations.py deleted file mode 100644 index 28dc99e9c13..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,786 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource or IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_operations.py deleted file mode 100644 index 336c38dbe27..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_build_service_operations.py +++ /dev/null @@ -1,1523 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2022_12_01.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_buildpack_binding_operations.py deleted file mode 100644 index b9f8046508b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,740 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: ~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_certificates_operations.py deleted file mode 100644 index 83aacc7d6d7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_certificates_operations.py +++ /dev/null @@ -1,645 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource or - IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_config_servers_operations.py deleted file mode 100644 index 7a639613779..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_config_servers_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettings - or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_configuration_services_operations.py deleted file mode 100644 index 429c4dc9375..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_configuration_services_operations.py +++ /dev/null @@ -1,891 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettings or - IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_custom_domains_operations.py deleted file mode 100644 index 556d666904b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_custom_domains_operations.py +++ /dev/null @@ -1,929 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource or - IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_deployments_operations.py deleted file mode 100644 index 9c371adc530..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_deployments_operations.py +++ /dev/null @@ -1,2869 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource or - IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: ~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource or - IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: ~azure.mgmt.appplatform.v2022_12_01.models.DiagnosticParameters or - IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index a77e79de841..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,689 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_route_configs_operations.py deleted file mode 100644 index f756dec7034..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,692 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateways_operations.py deleted file mode 100644 index dd4a7c52cd2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_gateways_operations.py +++ /dev/null @@ -1,816 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidatePayload - or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_monitoring_settings_operations.py deleted file mode 100644 index 78937f4fbb7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,603 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_operations.py deleted file mode 100644 index 5cb8386e333..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_operations.py +++ /dev/null @@ -1,152 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_runtime_versions_operations.py deleted file mode 100644 index 2a4966fd96b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,122 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_service_registries_operations.py deleted file mode 100644 index 2eea86872ca..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_service_registries_operations.py +++ /dev/null @@ -1,546 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_services_operations.py deleted file mode 100644 index 938919647b8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_services_operations.py +++ /dev/null @@ -1,1764 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_12_01.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2022_12_01.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_skus_operations.py deleted file mode 100644 index 27305236ad5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_skus_operations.py +++ /dev/null @@ -1,157 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_storages_operations.py deleted file mode 100644 index f407836dc3f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2022_12_01/operations/_storages_operations.py +++ /dev/null @@ -1,642 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2022_12_01.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2022_12_01.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_12_01.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2022_12_01.models.StorageResource or IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2022_12_01.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-12-01")) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_app_platform_management_client.py deleted file mode 100644 index f3cdf2e0cd2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,295 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_01_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_01_01_preview.operations.DevToolPortalsOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_01_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_01_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_01_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_01_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_01_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_01_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_01_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_01_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_01_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_01_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_01_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_01_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_01_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_01_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_01_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_configuration.py deleted file mode 100644 index e0f0a05edc7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-01-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 99101cc1906..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,297 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.DevToolPortalsOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_01_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-01-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_configuration.py deleted file mode 100644 index a2e0e124afd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-01-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/__init__.py deleted file mode 100644 index 9ed85378850..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 82ab39d5bb2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index f1022f5bbdf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index 6b441a99eda..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index ae7877d9735..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index a54760d93bf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 59d50290669..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 636b056cbc8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 6180d8f095e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index df57411e69d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1100 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index 66d763a039b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 5fd57da2ba0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index ad03c2f5eb2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index da97815988d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,748 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 9fc05eb8f8e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index ac74faa2bc6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index ce1f44afddc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2315 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 87beccba39b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 029040429dc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 3f5717566bf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 61ea81ee937..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,955 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index fe6cf5644d3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_operations.py deleted file mode 100644 index c7fca9e9b2e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 0beb80d0fd5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index d9621568331..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index b40630d3237..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 348f411bac5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1416 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 64143ed6db7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index ac104cf4e9b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/__init__.py deleted file mode 100644 index cd43993ca9f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/__init__.py +++ /dev/null @@ -1,563 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 561251f8f81..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,439 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_models_py3.py deleted file mode 100644 index df2e163a0c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_models_py3.py +++ /dev/null @@ -1,9627 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: str, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.AcceleratorAuthSetting - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.AcceleratorAuthSetting - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2023_01_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2023_01_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.Secret] - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2023_01_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2023_01_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.Secret] - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildStageProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - k_pack_version: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword k_pack_version: The installed KPack version in this build service. - :paramtype k_pack_version: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.k_pack_version = k_pack_version - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceVNetAddons - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2023_01_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2023_01_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCorsProperties - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApmType] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCorsProperties - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApmType] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.apm_types = apm_types - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_01_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_01_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2023_01_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_01_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2023_01_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2023_01_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2023_01_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2023_01_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - } - - def __init__(self, *, log_stream_public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_01_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_01_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/__init__.py deleted file mode 100644 index 9ed85378850..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/__init__.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index be3bbceb0cc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index faac7cb5e3f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index c6cc72705fb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index 4ee410a227d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_apps_operations.py deleted file mode 100644 index 899d0e6fed6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 52ff96cca66..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index ea35bfd5d3f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 60aa119cdda..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_operations.py deleted file mode 100644 index 2551f8be7f2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1551 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index e0a3bf87e1b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 5a61ee759cc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index e0521b7a468..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 3a98cff972c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,907 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 85b1704a316..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index 0efca4078a5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_deployments_operations.py deleted file mode 100644 index c6cb3ee004e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2928 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 52bc1d8c15c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 094d16907b2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index b9d1586e3e3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateways_operations.py deleted file mode 100644 index 240c65a0e46..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1177 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 2f0239f2835..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_operations.py deleted file mode 100644 index 134b18e6522..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 42cd56ac68a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 287da6a6052..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index 0dace07dadf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_services_operations.py deleted file mode 100644 index 976ef6eafbf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1800 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_skus_operations.py deleted file mode 100644 index 5092f0f4d12..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_storages_operations.py deleted file mode 100644 index 46fc3405986..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_01_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_01_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-01-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_app_platform_management_client.py deleted file mode 100644 index dda16ddc0c8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,302 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_03_01_preview.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_03_01_preview.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_03_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_03_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_03_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_03_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_03_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_03_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_03_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_03_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_03_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_03_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_03_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_03_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_03_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_03_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_03_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_configuration.py deleted file mode 100644 index ee12c899484..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-03-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index e59fb01b75a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,304 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ServicesOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_03_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-03-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_configuration.py deleted file mode 100644 index fd41aef4b46..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-03-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/__init__.py deleted file mode 100644 index b4660e8a3b8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 926ba597bdc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index c7ddf3aff8a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index bc6901cbb7c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index fe6a4977017..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 6ff7563b85d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index e756e139643..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 8841107d7f8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 541a545683a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 59556f25b85..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_create_or_update_request, - build_delete_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index 555c6aae2fe..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index fec7d649123..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 3daef9f0f3e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index ea432fc5717..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,748 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_container_registries_operations.py deleted file mode 100644 index 3ce75afd270..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_container_registries_operations.py +++ /dev/null @@ -1,428 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._container_registries_operations import ( - build_create_or_update_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index e5b8dd25f53..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index 4cfba3bf1aa..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index f7f109d7422..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2315 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 7181b9b91c7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index e464df5b3ad..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 3b3d71e82ea..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 4b5e7dd8488..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,1066 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_restart_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 37117fd1362..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_operations.py deleted file mode 100644 index d7751240e83..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index da8376b9952..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 24ac37f7a6e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index c69bc6a294f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 3de8b031073..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1416 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_test_endpoint_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 85025626b6a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index a4393a742c3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/__init__.py deleted file mode 100644 index bcf2d25c99e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/__init__.py +++ /dev/null @@ -1,579 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContainerRegistryBasicCredentials -from ._models_py3 import ContainerRegistryCredentials -from ._models_py3 import ContainerRegistryProperties -from ._models_py3 import ContainerRegistryResource -from ._models_py3 import ContainerRegistryResourceCollection -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesClientAuth -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import ContainerRegistryProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import GatewayCertificateVerification -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContainerRegistryBasicCredentials", - "ContainerRegistryCredentials", - "ContainerRegistryProperties", - "ContainerRegistryResource", - "ContainerRegistryResourceCollection", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesClientAuth", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerState", - "ConfigurationServiceProvisioningState", - "ContainerRegistryProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "GatewayCertificateVerification", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 39b66e44e72..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,458 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ContainerRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Container Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CANCELED = "Canceled" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class GatewayCertificateVerification(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether to enable certificate verification or not.""" - - ENABLED = "Enabled" - """Enable certificate verification in Spring Cloud Gateway.""" - DISABLED = "Disabled" - """Disable certificate verification in Spring Cloud Gateway.""" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_models_py3.py deleted file mode 100644 index b33d8e798dd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_models_py3.py +++ /dev/null @@ -1,9899 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - self, *, username: str, ca_cert_resource_id: Optional[str] = None, password: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.ca_cert_resource_id = ca_cert_resource_id - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.AcceleratorAuthSetting - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.AcceleratorAuthSetting - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__(self, *, ca_cert_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - self.ca_cert_resource_id = ca_cert_resource_id - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2023_03_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2023_03_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.Secret] - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2023_03_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2023_03_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.Secret] - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildStageProperties] - :ivar image: The container registry image of this build result. - :vartype image: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - "image": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - self.image = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar container_registry: The resource id of the container registry used in this build service. - :vartype container_registry: str - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "k_pack_version": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "container_registry": {"key": "containerRegistry", "type": "str"}, - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - container_registry: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_registry: The resource id of the container registry used in this build - service. - :paramtype container_registry: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.container_registry = container_registry - self.k_pack_version = None - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceVNetAddons - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Error - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Error - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__(self, *, settings: Optional["_models.ConfigurationServiceSettings"] = None, **kwargs: Any) -> None: - """ - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContainerRegistryCredentials(_serialization.Model): - """The credential for the container registry resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContainerRegistryBasicCredentials - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"BasicAuth": "ContainerRegistryBasicCredentials"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ContainerRegistryBasicCredentials(ContainerRegistryCredentials): - """The basic authentication properties for the container registry resource. - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - :ivar server: The login server of the Container Registry. Required. - :vartype server: str - :ivar username: The username of the Container Registry. Required. - :vartype username: str - :ivar password: The password of the Container Registry. Required. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, server: str, username: str, password: str, **kwargs: Any) -> None: - """ - :keyword server: The login server of the Container Registry. Required. - :paramtype server: str - :keyword username: The username of the Container Registry. Required. - :paramtype username: str - :keyword password: The password of the Container Registry. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: str = "BasicAuth" - self.server = server - self.username = username - self.password = password - - -class ContainerRegistryProperties(_serialization.Model): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar credentials: The credentials of the container registry resource. Required. - :vartype credentials: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryCredentials - :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryProvisioningState - """ - - _validation = { - "credentials": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: - """ - :keyword credentials: The credentials of the container registry resource. Required. - :paramtype credentials: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryCredentials - """ - super().__init__(**kwargs) - self.credentials = credentials - self.provisioning_state = None - - -class ContainerRegistryResource(ProxyResource): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the container registry resource payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the container registry resource payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ContainerRegistryResourceCollection(_serialization.Model): - """Collection compose of container registry resources list and a possible link for next page. - - :ivar value: The container registry resources list. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ContainerRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The container registry resources list. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2023_03_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2023_03_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCorsProperties - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayPropertiesClientAuth - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApmType] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCorsProperties - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayPropertiesClientAuth - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApmType] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResourceRequests - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.client_auth = client_auth - self.apm_types = apm_types - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.instances = None - self.operator_properties = None - - -class GatewayPropertiesClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. - :vartype certificates: list[str] - :ivar certificate_verification: Whether to enable certificate verification or not. Known values - are: "Enabled" and "Disabled". - :vartype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCertificateVerification - """ - - _validation = { - "certificates": {"unique": True}, - } - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - "certificate_verification": {"key": "certificateVerification", "type": "str"}, - } - - def __init__( - self, - *, - certificates: Optional[List[str]] = None, - certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. - :paramtype certificates: list[str] - :keyword certificate_verification: Whether to enable certificate verification or not. Known - values are: "Enabled" and "Disabled". - :paramtype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCertificateVerification - """ - super().__init__(**kwargs) - self.certificates = certificates - self.certificate_verification = certificate_verification - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_03_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_03_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2023_03_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_03_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2023_03_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2023_03_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2023_03_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2023_03_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app - connect, remote debugging) in vnet injection instance could be accessed from internet. - :vartype data_plane_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, - } - - def __init__( - self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any - ) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, - app connect, remote debugging) in vnet injection instance could be accessed from internet. - :paramtype data_plane_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - self.data_plane_public_endpoint = data_plane_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_03_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_03_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_03_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/__init__.py deleted file mode 100644 index b4660e8a3b8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/__init__.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 025f2df1551..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index ddbf1fc5d6b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index 620a7d68ed0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index 68cc4c3435f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_apps_operations.py deleted file mode 100644 index dd3e859025b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_bindings_operations.py deleted file mode 100644 index ebc4b53f741..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 95d1711ca78..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index f36f1c72754..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_operations.py deleted file mode 100644 index cbe46212ac9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService or - IO[bytes] - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> LROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 659b3f007a2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 335f0dbfc94..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 030eec211bb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 1f6ca58716f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,907 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_container_registries_operations.py deleted file mode 100644 index 7cd7c1b3c9b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_container_registries_operations.py +++ /dev/null @@ -1,526 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 096178a8f16..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index 5b02afa5a16..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 265d8c2e3b7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2928 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 1fef7d1e5e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 0247a881555..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 017e955add6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateways_operations.py deleted file mode 100644 index 8995793d2d3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1319 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 8166e566939..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_operations.py deleted file mode 100644 index 80ebddff74a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 8fe27307422..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index f543340b2f1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index 0be6cd1e7e6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_services_operations.py deleted file mode 100644 index 73ab58cdb1c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,1800 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_skus_operations.py deleted file mode 100644 index 6dd6420122f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_storages_operations.py deleted file mode 100644 index 837abdfe55c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_03_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-03-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_03_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_03_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-03-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_app_platform_management_client.py deleted file mode 100644 index 075ccdf7cbc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,313 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_05_01_preview.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_05_01_preview.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_05_01_preview.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_05_01_preview.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_05_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_05_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_05_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_05_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_05_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_05_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_05_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_05_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_05_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_05_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_05_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_05_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_05_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_05_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_05_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_configuration.py deleted file mode 100644 index 59d7b612e23..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-05-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index a85ee4e772e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_05_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-05-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_configuration.py deleted file mode 100644 index ccd97728289..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-05-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index b132e03821b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 4532a6b6dcd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apms_operations.py deleted file mode 100644 index 28221ff4a1b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apms_operations.py +++ /dev/null @@ -1,596 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apms_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secret_keys_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index 3f579778441..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index 4abf12b30b6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 4d96abc09d1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 2fe0288fae1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index e4d524619c6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 40f61a3ba37..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index b541c3cbe32..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_create_or_update_request, - build_delete_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index e94c7803c6b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index b84ff2fb9ed..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 0a99af9682e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 2dbfd30c385..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,748 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_container_registries_operations.py deleted file mode 100644 index 00d82a498fc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_container_registries_operations.py +++ /dev/null @@ -1,756 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._container_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index c6798ce1267..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index 3c515b9c0bc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index a7a9751144f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2315 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 975091dfc57..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_eureka_servers_operations.py deleted file mode 100644 index c48b71472d1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,589 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._eureka_servers_operations import ( - build_get_request, - build_list_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 63d69390c9f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 68f09f676a8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 6c7c68f3492..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,1066 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_restart_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index a82867ab5d9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_operations.py deleted file mode 100644 index fcc720627f0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 7a2f7cda157..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index ea413a876b0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 943bfa7303b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 8c8aa671f57..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,1926 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_apm_globally_request, - build_disable_test_endpoint_request, - build_enable_apm_globally_request, - build_enable_test_endpoint_request, - build_get_request, - build_list_by_subscription_request, - build_list_globally_enabled_apms_request, - build_list_request, - build_list_supported_apm_types_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index e8793efffb2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 3d8eb7d612f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/__init__.py deleted file mode 100644 index 89c643c0599..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/__init__.py +++ /dev/null @@ -1,617 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import ApmProperties -from ._models_py3 import ApmReference -from ._models_py3 import ApmResource -from ._models_py3 import ApmResourceCollection -from ._models_py3 import ApmSecretKeys -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateReference -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContainerRegistryBasicCredentials -from ._models_py3 import ContainerRegistryCredentials -from ._models_py3 import ContainerRegistryProperties -from ._models_py3 import ContainerRegistryResource -from ._models_py3 import ContainerRegistryResourceCollection -from ._models_py3 import ContainerRegistryValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import EurekaServerProperties -from ._models_py3 import EurekaServerResource -from ._models_py3 import EurekaServerResourceCollection -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesClientAuth -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import GloballyEnabledApms -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedApmType -from ._models_py3 import SupportedApmTypes -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerEnabledState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceGeneration -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import ContainerRegistryProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import EurekaServerEnabledState -from ._app_platform_management_client_enums import EurekaServerState -from ._app_platform_management_client_enums import GatewayCertificateVerification -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import GitImplementation -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "ApmProperties", - "ApmReference", - "ApmResource", - "ApmResourceCollection", - "ApmSecretKeys", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateReference", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContainerRegistryBasicCredentials", - "ContainerRegistryCredentials", - "ContainerRegistryProperties", - "ContainerRegistryResource", - "ContainerRegistryResourceCollection", - "ContainerRegistryValidateResult", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "EurekaServerProperties", - "EurekaServerResource", - "EurekaServerResourceCollection", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesClientAuth", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "GloballyEnabledApms", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedApmType", - "SupportedApmTypes", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "ActionType", - "ApiPortalProvisioningState", - "ApmProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerEnabledState", - "ConfigServerState", - "ConfigurationServiceGeneration", - "ConfigurationServiceProvisioningState", - "ContainerRegistryProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "EurekaServerEnabledState", - "EurekaServerState", - "GatewayCertificateVerification", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "GitImplementation", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 6bd1a26bd6d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,511 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the APM.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the config server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the config server.""" - DISABLED = "Disabled" - """Disable the config server.""" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The generation of the Application Configuration Service.""" - - GEN1 = "Gen1" - GEN2 = "Gen2" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ContainerRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Container Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class EurekaServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the eureka server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the eureka server.""" - DISABLED = "Disabled" - """Disable the eureka server.""" - - -class EurekaServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the eureka server.""" - - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - CANCELED = "Canceled" - - -class GatewayCertificateVerification(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether to enable certificate verification or not.""" - - ENABLED = "Enabled" - """Enable certificate verification in Spring Cloud Gateway.""" - DISABLED = "Disabled" - """Disable certificate verification in Spring Cloud Gateway.""" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class GitImplementation(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Git libraries used to support various repository providers.""" - - GO_GIT = "go-git" - LIBGIT2 = "libgit2" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_models_py3.py deleted file mode 100644 index 3ecf513a010..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_models_py3.py +++ /dev/null @@ -1,10411 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - self, *, username: str, ca_cert_resource_id: Optional[str] = None, password: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.ca_cert_resource_id = ca_cert_resource_id - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.AcceleratorAuthSetting - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.AcceleratorAuthSetting - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__(self, *, ca_cert_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - self.ca_cert_resource_id = ca_cert_resource_id - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApmProperties(_serialization.Model): - """Properties of an APM. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: APM Type. Required. - :vartype type: str - :ivar provisioning_state: State of the APM. Known values are: "Creating", "Updating", - "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmProvisioningState - :ivar properties: Non-sensitive properties for the APM. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for the APM. - :vartype secrets: dict[str, str] - """ - - _validation = { - "type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, - *, - type: str, - properties: Optional[Dict[str, str]] = None, - secrets: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: APM Type. Required. - :paramtype type: str - :keyword properties: Non-sensitive properties for the APM. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for the APM. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.type = type - self.provisioning_state = None - self.properties = properties - self.secrets = secrets - - -class ApmReference(_serialization.Model): - """A reference to the APM. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the APM. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the APM. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class ApmResource(ProxyResource): - """APM Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of an APM. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApmProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApmProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of an APM. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApmResourceCollection(_serialization.Model): - """Object that includes an array of APM resources and a possible link for next set. - - :ivar value: Collection of APM resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApmResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ApmResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of APM resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApmSecretKeys(_serialization.Model): - """Keys of APM sensitive properties. - - :ivar value: Collection of the keys for the APM sensitive properties. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the keys for the APM sensitive properties. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2023_05_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2023_05_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.Secret] - :ivar workload_profile_name: The workload profile used for this app. Supported for Consumption - + Dedicated plan. - :vartype workload_profile_name: str - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - "workload_profile_name": {"key": "workloadProfileName", "type": "str"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - workload_profile_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2023_05_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2023_05_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.Secret] - :keyword workload_profile_name: The workload profile used for this app. Supported for - Consumption + Dedicated plan. - :paramtype workload_profile_name: str - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - self.workload_profile_name = workload_profile_name - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar apms: The APMs for this build. - :vartype apms: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference] - :ivar certificates: The CA Certificates for this build. - :vartype certificates: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateReference] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "certificates": {"key": "certificates", "type": "[CertificateReference]"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - certificates: Optional[List["_models.CertificateReference"]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword apms: The APMs for this build. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference] - :keyword certificates: The CA Certificates for this build. - :paramtype certificates: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateReference] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.apms = apms - self.certificates = certificates - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildStageProperties] - :ivar image: The container registry image of this build result. - :vartype image: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - "image": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - self.image = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar container_registry: The resource id of the container registry used in this build service. - :vartype container_registry: str - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "k_pack_version": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "container_registry": {"key": "containerRegistry", "type": "str"}, - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - container_registry: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_registry: The resource id of the container registry used in this build - service. - :paramtype container_registry: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.container_registry = container_registry - self.k_pack_version = None - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateReference(_serialization.Model): - """A reference to the certificate. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the certificate. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the certificate. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceVNetAddons - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceVNetAddons - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - :ivar enabled_state: Enabled state of the config server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerEnabledState - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - enabled_state: Optional[Union[str, "_models.ConfigServerEnabledState"]] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - :keyword enabled_state: Enabled state of the config server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerEnabledState - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.enabled_state = enabled_state - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - :ivar git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :vartype git_implementation: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GitImplementation - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - "git_implementation": {"key": "gitImplementation", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - git_implementation: Optional[Union[str, "_models.GitImplementation"]] = None, - ca_cert_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - :keyword git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :paramtype git_implementation: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GitImplementation - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - self.git_implementation = git_implementation - self.ca_cert_resource_id = ca_cert_resource_id - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceProvisioningState - :ivar generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :vartype generation: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGeneration - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "generation": {"key": "generation", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__( - self, - *, - generation: Union[str, "_models.ConfigurationServiceGeneration"] = "Gen1", - settings: Optional["_models.ConfigurationServiceSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :paramtype generation: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGeneration - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.generation = generation - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContainerRegistryCredentials(_serialization.Model): - """The credential for the container registry resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContainerRegistryBasicCredentials - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"BasicAuth": "ContainerRegistryBasicCredentials"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ContainerRegistryBasicCredentials(ContainerRegistryCredentials): - """The basic authentication properties for the container registry resource. - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - :ivar server: The login server of the Container Registry. Required. - :vartype server: str - :ivar username: The username of the Container Registry. Required. - :vartype username: str - :ivar password: The password of the Container Registry. Required. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, server: str, username: str, password: str, **kwargs: Any) -> None: - """ - :keyword server: The login server of the Container Registry. Required. - :paramtype server: str - :keyword username: The username of the Container Registry. Required. - :paramtype username: str - :keyword password: The password of the Container Registry. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: str = "BasicAuth" - self.server = server - self.username = username - self.password = password - - -class ContainerRegistryProperties(_serialization.Model): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar credentials: The credentials of the container registry resource. Required. - :vartype credentials: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryCredentials - :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProvisioningState - """ - - _validation = { - "credentials": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: - """ - :keyword credentials: The credentials of the container registry resource. Required. - :paramtype credentials: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryCredentials - """ - super().__init__(**kwargs) - self.credentials = credentials - self.provisioning_state = None - - -class ContainerRegistryResource(ProxyResource): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the container registry resource payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the container registry resource payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ContainerRegistryResourceCollection(_serialization.Model): - """Collection compose of container registry resources list and a possible link for next page. - - :ivar value: The container registry resources list. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ContainerRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The container registry resources list. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerRegistryValidateResult(_serialization.Model): - """Validation result for container registry properties. - - :ivar is_valid: Indicate if the container registry properties are valid. - :vartype is_valid: bool - :ivar message: Detailed validation messages. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicate if the container registry properties are valid. - :paramtype is_valid: bool - :keyword message: Detailed validation messages. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2023_05_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2023_05_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar apms: Collection of ApmReferences. - :vartype apms: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword apms: Collection of ApmReferences. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.apms = apms - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class EurekaServerProperties(_serialization.Model): - """Eureka server properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the eureka server. Known values are: "Failed", "Succeeded", - "Updating", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerState - :ivar enabled_state: Enabled state of the eureka server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerEnabledState - :ivar error: Error when applying eureka server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - } - - def __init__( - self, - *, - enabled_state: Optional[Union[str, "_models.EurekaServerEnabledState"]] = None, - error: Optional["_models.Error"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled_state: Enabled state of the eureka server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerEnabledState - :keyword error: Error when applying eureka server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.enabled_state = enabled_state - self.error = error - - -class EurekaServerResource(ProxyResource): - """Eureka server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the eureka server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "EurekaServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.EurekaServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the eureka server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class EurekaServerResourceCollection(_serialization.Model): - """Object that includes an array of Eureka server resources and a possible link for next set. - - :ivar value: Collection of Eureka server resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[EurekaServerResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.EurekaServerResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Eureka server resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :vartype allowed_origin_patterns: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_origin_patterns": {"key": "allowedOriginPatterns", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_origin_patterns: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :paramtype allowed_origin_patterns: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_origin_patterns = allowed_origin_patterns - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCorsProperties - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayPropertiesClientAuth - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmType] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResourceRequests - :ivar addon_configs: Collection of addons for Spring Cloud Gateway. - :vartype addon_configs: dict[str, JSON] - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCorsProperties - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayPropertiesClientAuth - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmType] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResourceRequests - :keyword addon_configs: Collection of addons for Spring Cloud Gateway. - :paramtype addon_configs: dict[str, JSON] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.client_auth = client_auth - self.apm_types = apm_types - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.addon_configs = addon_configs - self.instances = None - self.operator_properties = None - - -class GatewayPropertiesClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. - :vartype certificates: list[str] - :ivar certificate_verification: Whether to enable certificate verification or not. Known values - are: "Enabled" and "Disabled". - :vartype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCertificateVerification - """ - - _validation = { - "certificates": {"unique": True}, - } - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - "certificate_verification": {"key": "certificateVerification", "type": "str"}, - } - - def __init__( - self, - *, - certificates: Optional[List[str]] = None, - certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. - :paramtype certificates: list[str] - :keyword certificate_verification: Whether to enable certificate verification or not. Known - values are: "Enabled" and "Disabled". - :paramtype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCertificateVerification - """ - super().__init__(**kwargs) - self.certificates = certificates - self.certificate_verification = certificate_verification - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class GloballyEnabledApms(_serialization.Model): - """Globally enabled APMs payload. - - :ivar value: Collection of the globally enabled APMs. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the globally enabled APMs. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_05_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_05_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2023_05_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_05_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2023_05_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2023_05_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2023_05_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2023_05_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app - connect, remote debugging) in vnet injection instance could be accessed from internet. - :vartype data_plane_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, - } - - def __init__( - self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any - ) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, - app connect, remote debugging) in vnet injection instance could be accessed from internet. - :paramtype data_plane_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - self.data_plane_public_endpoint = data_plane_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedApmType(_serialization.Model): - """Supported APM type. - - :ivar name: The name of the supported APM type. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the supported APM type. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class SupportedApmTypes(_serialization.Model): - """Supported APM types payload. - - :ivar value: Collection of the supported APM type. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedApmType] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedApmType]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedApmType"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported APM type. - :paramtype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedApmType] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_05_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_05_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_05_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index e6fe425ce7e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index acae9c9e3ae..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apms_operations.py deleted file mode 100644 index 25439da0396..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apms_operations.py +++ /dev/null @@ -1,750 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_secret_keys_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource or IO[bytes] - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index 0c5b4c503a4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index 69663606442..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apps_operations.py deleted file mode 100644 index 52f4aa4bc63..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_bindings_operations.py deleted file mode 100644 index dc880b83f48..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 6a304173ac1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 1618a6dd254..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_operations.py deleted file mode 100644 index 97133b908bb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService or - IO[bytes] - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> LROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 2070de63fbd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 7e164ee842f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index ee5cc08c207..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 7af88ee566e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,907 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url("configuration_service_name", configuration_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_container_registries_operations.py deleted file mode 100644 index 3da43980139..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_container_registries_operations.py +++ /dev/null @@ -1,923 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index fe578613482..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index 05e1d3bcf42..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 1ef99392f70..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2928 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index ed9119c946e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_eureka_servers_operations.py deleted file mode 100644 index 32be69f015a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,712 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 5f5075f2328..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 8b5af66aed3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateways_operations.py deleted file mode 100644 index 505db7572c9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1319 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 5744ed80096..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_operations.py deleted file mode 100644 index 1837faab004..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index db5d746d558..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 45b4e0c5af0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index f712d829a75..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_services_operations.py deleted file mode 100644 index 86974095cf5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,2434 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_apm_types_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_globally_enabled_apms_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_05_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_skus_operations.py deleted file mode 100644 index 8d31dd294e7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_storages_operations.py deleted file mode 100644 index fb1aec12a70..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_05_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_05_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_05_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-05-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_app_platform_management_client.py deleted file mode 100644 index 8372d6d2db4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,313 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_07_01_preview.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_07_01_preview.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_07_01_preview.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_07_01_preview.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_07_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_07_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_07_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_07_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_07_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_07_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_07_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_07_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_07_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_07_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_07_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_07_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_07_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_07_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_07_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_configuration.py deleted file mode 100644 index 930b865f49e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-07-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index ea33a66f17c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_07_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-07-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_configuration.py deleted file mode 100644 index 12fe67c620d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-07-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 07ff3f4f808..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 9b3a8e78fec..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apms_operations.py deleted file mode 100644 index 61e323a8676..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apms_operations.py +++ /dev/null @@ -1,596 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apms_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secret_keys_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index 22766114723..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index f08c0161704..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 0d2cd60074a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index c3e8c314736..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 14a7d8b2dba..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 7a8d12a0dc6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 17ca5f9755d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_create_or_update_request, - build_delete_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index d9c0137c67d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 955ce48f7bc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index b868f56573d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 352a3ae443c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, - build_validate_resource_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_container_registries_operations.py deleted file mode 100644 index 45127d74ec9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_container_registries_operations.py +++ /dev/null @@ -1,756 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._container_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 1b633e859da..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index eae9a310d9a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 2bdf27af1e4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2315 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 5674cbbea55..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_eureka_servers_operations.py deleted file mode 100644 index d52d024b429..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,589 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._eureka_servers_operations import ( - build_get_request, - build_list_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index f3f7e8c7eba..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index a0bced608b3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index bc1106911a6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,1066 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_restart_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index cf526ffe986..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_operations.py deleted file mode 100644 index c5190a05a89..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 4d499dc3617..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index a228f2d26c2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index e49d77ee0ff..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 6ac8b566f13..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,2033 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_apm_globally_request, - build_disable_test_endpoint_request, - build_enable_apm_globally_request, - build_enable_test_endpoint_request, - build_flush_vnet_dns_setting_request, - build_get_request, - build_list_by_subscription_request, - build_list_globally_enabled_apms_request, - build_list_request, - build_list_supported_apm_types_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 3c798e3b6a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 7a0ab514f3f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/__init__.py deleted file mode 100644 index 6eca8e3a5a1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/__init__.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import ApmProperties -from ._models_py3 import ApmReference -from ._models_py3 import ApmResource -from ._models_py3 import ApmResourceCollection -from ._models_py3 import ApmSecretKeys -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateReference -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContainerRegistryBasicCredentials -from ._models_py3 import ContainerRegistryCredentials -from ._models_py3 import ContainerRegistryProperties -from ._models_py3 import ContainerRegistryResource -from ._models_py3 import ContainerRegistryResourceCollection -from ._models_py3 import ContainerRegistryValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import EurekaServerProperties -from ._models_py3 import EurekaServerResource -from ._models_py3 import EurekaServerResourceCollection -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesClientAuth -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import GloballyEnabledApms -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import MaintenanceScheduleConfiguration -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedApmType -from ._models_py3 import SupportedApmTypes -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages -from ._models_py3 import WeeklyMaintenanceScheduleConfiguration - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerEnabledState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceGeneration -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import ContainerRegistryProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import EurekaServerEnabledState -from ._app_platform_management_client_enums import EurekaServerState -from ._app_platform_management_client_enums import Frequency -from ._app_platform_management_client_enums import GatewayCertificateVerification -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import GitImplementation -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._app_platform_management_client_enums import WeekDay -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "ApmProperties", - "ApmReference", - "ApmResource", - "ApmResourceCollection", - "ApmSecretKeys", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateReference", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContainerRegistryBasicCredentials", - "ContainerRegistryCredentials", - "ContainerRegistryProperties", - "ContainerRegistryResource", - "ContainerRegistryResourceCollection", - "ContainerRegistryValidateResult", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "EurekaServerProperties", - "EurekaServerResource", - "EurekaServerResourceCollection", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesClientAuth", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "GloballyEnabledApms", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "MaintenanceScheduleConfiguration", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedApmType", - "SupportedApmTypes", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "WeeklyMaintenanceScheduleConfiguration", - "ActionType", - "ApiPortalProvisioningState", - "ApmProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerEnabledState", - "ConfigServerState", - "ConfigurationServiceGeneration", - "ConfigurationServiceProvisioningState", - "ContainerRegistryProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "EurekaServerEnabledState", - "EurekaServerState", - "Frequency", - "GatewayCertificateVerification", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "GitImplementation", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", - "WeekDay", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 826335af95e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,529 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the APM.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the config server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the config server.""" - DISABLED = "Disabled" - """Disable the config server.""" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The generation of the Application Configuration Service.""" - - GEN1 = "Gen1" - GEN2 = "Gen2" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ContainerRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Container Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class EurekaServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the eureka server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the eureka server.""" - DISABLED = "Disabled" - """Disable the eureka server.""" - - -class EurekaServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the eureka server.""" - - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - CANCELED = "Canceled" - - -class Frequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The frequency to run the maintenance job.""" - - WEEKLY = "Weekly" - - -class GatewayCertificateVerification(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether to enable certificate verification or not.""" - - ENABLED = "Enabled" - """Enable certificate verification in Spring Cloud Gateway.""" - DISABLED = "Disabled" - """Disable certificate verification in Spring Cloud Gateway.""" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class GitImplementation(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Git libraries used to support various repository providers.""" - - GO_GIT = "go-git" - LIBGIT2 = "libgit2" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" - - -class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The day to run the maintenance job.""" - - MONDAY = "Monday" - TUESDAY = "Tuesday" - WEDNESDAY = "Wednesday" - THURSDAY = "Thursday" - FRIDAY = "Friday" - SATURDAY = "Saturday" - SUNDAY = "Sunday" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_models_py3.py deleted file mode 100644 index 3c67c2e67aa..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_models_py3.py +++ /dev/null @@ -1,10502 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - self, *, username: str, ca_cert_resource_id: Optional[str] = None, password: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.ca_cert_resource_id = ca_cert_resource_id - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.AcceleratorAuthSetting - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.AcceleratorAuthSetting - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__(self, *, ca_cert_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - self.ca_cert_resource_id = ca_cert_resource_id - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApmProperties(_serialization.Model): - """Properties of an APM. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: APM Type. Required. - :vartype type: str - :ivar provisioning_state: State of the APM. Known values are: "Creating", "Updating", - "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmProvisioningState - :ivar properties: Non-sensitive properties for the APM. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for the APM. - :vartype secrets: dict[str, str] - """ - - _validation = { - "type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, - *, - type: str, - properties: Optional[Dict[str, str]] = None, - secrets: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: APM Type. Required. - :paramtype type: str - :keyword properties: Non-sensitive properties for the APM. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for the APM. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.type = type - self.provisioning_state = None - self.properties = properties - self.secrets = secrets - - -class ApmReference(_serialization.Model): - """A reference to the APM. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the APM. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the APM. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class ApmResource(ProxyResource): - """APM Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of an APM. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApmProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApmProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of an APM. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApmResourceCollection(_serialization.Model): - """Object that includes an array of APM resources and a possible link for next set. - - :ivar value: Collection of APM resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApmResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ApmResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of APM resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApmSecretKeys(_serialization.Model): - """Keys of APM sensitive properties. - - :ivar value: Collection of the keys for the APM sensitive properties. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the keys for the APM sensitive properties. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2023_07_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2023_07_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.Secret] - :ivar workload_profile_name: The workload profile used for this app. Supported for Consumption - + Dedicated plan. - :vartype workload_profile_name: str - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - "workload_profile_name": {"key": "workloadProfileName", "type": "str"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - workload_profile_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2023_07_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2023_07_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.Secret] - :keyword workload_profile_name: The workload profile used for this app. Supported for - Consumption + Dedicated plan. - :paramtype workload_profile_name: str - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - self.workload_profile_name = workload_profile_name - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar apms: The APMs for this build. - :vartype apms: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference] - :ivar certificates: The CA Certificates for this build. - :vartype certificates: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateReference] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "certificates": {"key": "certificates", "type": "[CertificateReference]"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - certificates: Optional[List["_models.CertificateReference"]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword apms: The APMs for this build. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference] - :keyword certificates: The CA Certificates for this build. - :paramtype certificates: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateReference] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.apms = apms - self.certificates = certificates - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildStageProperties] - :ivar image: The container registry image of this build result. - :vartype image: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - "image": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - self.image = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar container_registry: The resource id of the container registry used in this build service. - :vartype container_registry: str - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "k_pack_version": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "container_registry": {"key": "containerRegistry", "type": "str"}, - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - container_registry: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_registry: The resource id of the container registry used in this build - service. - :paramtype container_registry: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.container_registry = container_registry - self.k_pack_version = None - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateReference(_serialization.Model): - """A reference to the certificate. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the certificate. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the certificate. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceVNetAddons - :ivar maintenance_schedule_configuration: Additional Service settings for planned maintenance. - :vartype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MaintenanceScheduleConfiguration - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "maintenance_schedule_configuration": { - "key": "maintenanceScheduleConfiguration", - "type": "MaintenanceScheduleConfiguration", - }, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - maintenance_schedule_configuration: Optional["_models.MaintenanceScheduleConfiguration"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceVNetAddons - :keyword maintenance_schedule_configuration: Additional Service settings for planned - maintenance. - :paramtype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MaintenanceScheduleConfiguration - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.maintenance_schedule_configuration = maintenance_schedule_configuration - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - :ivar enabled_state: Enabled state of the config server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerEnabledState - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - enabled_state: Optional[Union[str, "_models.ConfigServerEnabledState"]] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - :keyword enabled_state: Enabled state of the config server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerEnabledState - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.enabled_state = enabled_state - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - :ivar git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :vartype git_implementation: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GitImplementation - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - "git_implementation": {"key": "gitImplementation", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - git_implementation: Optional[Union[str, "_models.GitImplementation"]] = None, - ca_cert_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - :keyword git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :paramtype git_implementation: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GitImplementation - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - self.git_implementation = git_implementation - self.ca_cert_resource_id = ca_cert_resource_id - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceProvisioningState - :ivar generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :vartype generation: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGeneration - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "generation": {"key": "generation", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__( - self, - *, - generation: Union[str, "_models.ConfigurationServiceGeneration"] = "Gen1", - settings: Optional["_models.ConfigurationServiceSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :paramtype generation: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGeneration - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.generation = generation - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContainerRegistryCredentials(_serialization.Model): - """The credential for the container registry resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContainerRegistryBasicCredentials - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"BasicAuth": "ContainerRegistryBasicCredentials"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ContainerRegistryBasicCredentials(ContainerRegistryCredentials): - """The basic authentication properties for the container registry resource. - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - :ivar server: The login server of the Container Registry. Required. - :vartype server: str - :ivar username: The username of the Container Registry. Required. - :vartype username: str - :ivar password: The password of the Container Registry. Required. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, server: str, username: str, password: str, **kwargs: Any) -> None: - """ - :keyword server: The login server of the Container Registry. Required. - :paramtype server: str - :keyword username: The username of the Container Registry. Required. - :paramtype username: str - :keyword password: The password of the Container Registry. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: str = "BasicAuth" - self.server = server - self.username = username - self.password = password - - -class ContainerRegistryProperties(_serialization.Model): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar credentials: The credentials of the container registry resource. Required. - :vartype credentials: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryCredentials - :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProvisioningState - """ - - _validation = { - "credentials": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: - """ - :keyword credentials: The credentials of the container registry resource. Required. - :paramtype credentials: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryCredentials - """ - super().__init__(**kwargs) - self.credentials = credentials - self.provisioning_state = None - - -class ContainerRegistryResource(ProxyResource): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the container registry resource payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the container registry resource payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ContainerRegistryResourceCollection(_serialization.Model): - """Collection compose of container registry resources list and a possible link for next page. - - :ivar value: The container registry resources list. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ContainerRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The container registry resources list. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerRegistryValidateResult(_serialization.Model): - """Validation result for container registry properties. - - :ivar is_valid: Indicate if the container registry properties are valid. - :vartype is_valid: bool - :ivar message: Detailed validation messages. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicate if the container registry properties are valid. - :paramtype is_valid: bool - :keyword message: Detailed validation messages. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. Supported values: - "springboot", "", null. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. Supported - values: "springboot", "", null. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2023_07_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2023_07_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar apms: Collection of ApmReferences. - :vartype apms: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword apms: Collection of ApmReferences. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.apms = apms - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class EurekaServerProperties(_serialization.Model): - """Eureka server properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the eureka server. Known values are: "Failed", "Succeeded", - "Updating", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerState - :ivar enabled_state: Enabled state of the eureka server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerEnabledState - :ivar error: Error when applying eureka server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - } - - def __init__( - self, - *, - enabled_state: Optional[Union[str, "_models.EurekaServerEnabledState"]] = None, - error: Optional["_models.Error"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled_state: Enabled state of the eureka server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerEnabledState - :keyword error: Error when applying eureka server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.enabled_state = enabled_state - self.error = error - - -class EurekaServerResource(ProxyResource): - """Eureka server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the eureka server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "EurekaServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.EurekaServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the eureka server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class EurekaServerResourceCollection(_serialization.Model): - """Object that includes an array of Eureka server resources and a possible link for next set. - - :ivar value: Collection of Eureka server resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[EurekaServerResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.EurekaServerResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Eureka server resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :vartype allowed_origin_patterns: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_origin_patterns": {"key": "allowedOriginPatterns", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_origin_patterns: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :paramtype allowed_origin_patterns: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_origin_patterns = allowed_origin_patterns - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCorsProperties - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayPropertiesClientAuth - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmType] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResourceRequests - :ivar addon_configs: Collection of addons for Spring Cloud Gateway. - :vartype addon_configs: dict[str, JSON] - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCorsProperties - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayPropertiesClientAuth - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmType] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResourceRequests - :keyword addon_configs: Collection of addons for Spring Cloud Gateway. - :paramtype addon_configs: dict[str, JSON] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.client_auth = client_auth - self.apm_types = apm_types - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.addon_configs = addon_configs - self.instances = None - self.operator_properties = None - - -class GatewayPropertiesClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. - :vartype certificates: list[str] - :ivar certificate_verification: Whether to enable certificate verification or not. Known values - are: "Enabled" and "Disabled". - :vartype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCertificateVerification - """ - - _validation = { - "certificates": {"unique": True}, - } - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - "certificate_verification": {"key": "certificateVerification", "type": "str"}, - } - - def __init__( - self, - *, - certificates: Optional[List[str]] = None, - certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. - :paramtype certificates: list[str] - :keyword certificate_verification: Whether to enable certificate verification or not. Known - values are: "Enabled" and "Disabled". - :paramtype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCertificateVerification - """ - super().__init__(**kwargs) - self.certificates = certificates - self.certificate_verification = certificate_verification - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class GloballyEnabledApms(_serialization.Model): - """Globally enabled APMs payload. - - :ivar value: Collection of the globally enabled APMs. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the globally enabled APMs. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class MaintenanceScheduleConfiguration(_serialization.Model): - """Configuration for the planned maintenance. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - WeeklyMaintenanceScheduleConfiguration - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.Frequency - """ - - _validation = { - "frequency": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - } - - _subtype_map = {"frequency": {"Weekly": "WeeklyMaintenanceScheduleConfiguration"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.frequency: Optional[str] = None - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_07_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_07_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2023_07_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_07_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2023_07_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2023_07_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2023_07_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2023_07_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app - connect, remote debugging) in vnet injection instance could be accessed from internet. - :vartype data_plane_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, - } - - def __init__( - self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any - ) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, - app connect, remote debugging) in vnet injection instance could be accessed from internet. - :paramtype data_plane_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - self.data_plane_public_endpoint = data_plane_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedApmType(_serialization.Model): - """Supported APM type. - - :ivar name: The name of the supported APM type. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the supported APM type. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class SupportedApmTypes(_serialization.Model): - """Supported APM types payload. - - :ivar value: Collection of the supported APM type. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedApmType] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedApmType]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedApmType"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported APM type. - :paramtype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedApmType] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_07_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_07_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages - - -class WeeklyMaintenanceScheduleConfiguration(MaintenanceScheduleConfiguration): - """Weekly planned maintenance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.Frequency - :ivar hour: The hour to run the maintenance job. Required. - :vartype hour: int - :ivar duration: The duration time to run the maintenance job, specified in ISO8601 format, e.g. - PT8H. - :vartype duration: str - :ivar day: The day to run the maintenance job. Required. Known values are: "Monday", "Tuesday", - "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :vartype day: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.WeekDay - """ - - _validation = { - "frequency": {"required": True}, - "hour": {"required": True, "maximum": 23, "minimum": 0}, - "duration": {"readonly": True}, - "day": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - "hour": {"key": "hour", "type": "int"}, - "duration": {"key": "duration", "type": "str"}, - "day": {"key": "day", "type": "str"}, - } - - def __init__(self, *, hour: int, day: Union[str, "_models.WeekDay"], **kwargs: Any) -> None: - """ - :keyword hour: The hour to run the maintenance job. Required. - :paramtype hour: int - :keyword day: The day to run the maintenance job. Required. Known values are: "Monday", - "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :paramtype day: str or ~azure.mgmt.appplatform.v2023_07_01_preview.models.WeekDay - """ - super().__init__(**kwargs) - self.frequency: str = "Weekly" - self.hour = hour - self.duration = None - self.day = day diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index a162ef0f441..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 597e5cceb34..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apms_operations.py deleted file mode 100644 index 83c109988b2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apms_operations.py +++ /dev/null @@ -1,750 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_secret_keys_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource or IO[bytes] - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index cc87f5a2903..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index eefd3ae20db..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apps_operations.py deleted file mode 100644 index 724b6a2ce06..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_bindings_operations.py deleted file mode 100644 index d84590fa66f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 2b37f0f549c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index df6619e1a74..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_operations.py deleted file mode 100644 index 0d5c6e5d7b3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService or - IO[bytes] - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> LROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 1aaaaaa4527..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_certificates_operations.py deleted file mode 100644 index f78026d81ad..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index e57d21baa7e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index ba1f2aa3c68..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,1170 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_resource_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_container_registries_operations.py deleted file mode 100644 index e80fb04bc28..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_container_registries_operations.py +++ /dev/null @@ -1,923 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index a3df8fe4e18..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index 2f13d5bc959..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 34dedc200e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2928 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, version: Optional[List[str]] = None, **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index d141f743106..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_eureka_servers_operations.py deleted file mode 100644 index 0928f169d75..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,712 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 84f4bb80a72..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index f91c5bd6a2b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateways_operations.py deleted file mode 100644 index 3b5a82448f0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1319 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 135dce5d92a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_operations.py deleted file mode 100644 index f7e35602f8b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 2d8ed742c4a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 3494bd3432d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index e0dd7b9773a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_services_operations.py deleted file mode 100644 index 4393556a5d9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,2571 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_flush_vnet_dns_setting_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_apm_types_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_globally_enabled_apms_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_07_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_skus_operations.py deleted file mode 100644 index 917774fa6d9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_storages_operations.py deleted file mode 100644 index 9b165e933c6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_07_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-07-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_07_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_07_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-07-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_app_platform_management_client.py deleted file mode 100644 index af339200eec..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,313 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_09_01_preview.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_09_01_preview.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_09_01_preview.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_09_01_preview.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_09_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_09_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_09_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_09_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_09_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_09_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_09_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_09_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_09_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_09_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_09_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_09_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_09_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_09_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_09_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_configuration.py deleted file mode 100644 index c2f4658724b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-09-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 351ed5fd017..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_09_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-09-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_configuration.py deleted file mode 100644 index fee781e990d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-09-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-09-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index aad1d3b595d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 7c1a6a2e950..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apms_operations.py deleted file mode 100644 index 1088522054b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apms_operations.py +++ /dev/null @@ -1,596 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apms_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secret_keys_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index 4111e97d756..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index dd80d17d4e5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 0ddb0186baf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 8cb90d25dd1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 16735897c26..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 8ab868ae3a9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 849887ca0f6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_create_or_update_request, - build_delete_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index e6646ce5c96..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 270c6dc937c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index e848b21fe65..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 903ed9a5e8a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, - build_validate_resource_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_container_registries_operations.py deleted file mode 100644 index 7c8dc1d96fe..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_container_registries_operations.py +++ /dev/null @@ -1,756 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._container_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index f62c85ef042..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index 942186570ff..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index cba04d28b3d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2327 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, - resource_group_name: str, - service_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 43e4d2f3cbb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_eureka_servers_operations.py deleted file mode 100644 index 97d939c3ad0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,589 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._eureka_servers_operations import ( - build_get_request, - build_list_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index f7138738500..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 467f66371e7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 6bdf41d6209..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,1066 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_restart_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index b4276abaaa1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_operations.py deleted file mode 100644 index 6d39947b700..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 391a42365ad..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index e6162c79dc7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index c6e60a358ef..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 75c6558033a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,2123 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_apm_globally_request, - build_disable_test_endpoint_request, - build_enable_apm_globally_request, - build_enable_test_endpoint_request, - build_flush_vnet_dns_setting_request, - build_get_request, - build_list_by_subscription_request, - build_list_globally_enabled_apms_request, - build_list_request, - build_list_supported_apm_types_request, - build_list_supported_server_versions_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_supported_server_versions( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedServerVersion"]: - """Lists all of the available server versions supported by Microsoft.AppPlatform provider. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedServerVersion or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedServerVersion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedServerVersions] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_server_versions_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedServerVersions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 8e9a131a929..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 1055194f698..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/__init__.py deleted file mode 100644 index 319b804b5ff..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/__init__.py +++ /dev/null @@ -1,635 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import ApmProperties -from ._models_py3 import ApmReference -from ._models_py3 import ApmResource -from ._models_py3 import ApmResourceCollection -from ._models_py3 import ApmSecretKeys -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateReference -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContainerRegistryBasicCredentials -from ._models_py3 import ContainerRegistryCredentials -from ._models_py3 import ContainerRegistryProperties -from ._models_py3 import ContainerRegistryResource -from ._models_py3 import ContainerRegistryResourceCollection -from ._models_py3 import ContainerRegistryValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import EurekaServerProperties -from ._models_py3 import EurekaServerResource -from ._models_py3 import EurekaServerResourceCollection -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesClientAuth -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import GloballyEnabledApms -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import MaintenanceScheduleConfiguration -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedApmType -from ._models_py3 import SupportedApmTypes -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedServerVersion -from ._models_py3 import SupportedServerVersions -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages -from ._models_py3 import WarUploadedUserSourceInfo -from ._models_py3 import WeeklyMaintenanceScheduleConfiguration - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerEnabledState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceGeneration -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import ContainerRegistryProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorType -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import EurekaServerEnabledState -from ._app_platform_management_client_enums import EurekaServerState -from ._app_platform_management_client_enums import Frequency -from ._app_platform_management_client_enums import GatewayCertificateVerification -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import GitImplementation -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import KeyVaultCertificateAutoSync -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import Type -from ._app_platform_management_client_enums import WeekDay -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "ApmProperties", - "ApmReference", - "ApmResource", - "ApmResourceCollection", - "ApmSecretKeys", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateReference", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContainerRegistryBasicCredentials", - "ContainerRegistryCredentials", - "ContainerRegistryProperties", - "ContainerRegistryResource", - "ContainerRegistryResourceCollection", - "ContainerRegistryValidateResult", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "EurekaServerProperties", - "EurekaServerResource", - "EurekaServerResourceCollection", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesClientAuth", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "GloballyEnabledApms", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "MaintenanceScheduleConfiguration", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedApmType", - "SupportedApmTypes", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedServerVersion", - "SupportedServerVersions", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "WarUploadedUserSourceInfo", - "WeeklyMaintenanceScheduleConfiguration", - "ActionType", - "ApiPortalProvisioningState", - "ApmProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerEnabledState", - "ConfigServerState", - "ConfigurationServiceGeneration", - "ConfigurationServiceProvisioningState", - "ContainerRegistryProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorType", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "EurekaServerEnabledState", - "EurekaServerState", - "Frequency", - "GatewayCertificateVerification", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "GitImplementation", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "KeyVaultCertificateAutoSync", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "Type", - "WeekDay", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 5b5f5ff9187..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,543 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the APM.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the config server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the config server.""" - DISABLED = "Disabled" - """Disable the config server.""" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The generation of the Application Configuration Service.""" - - GEN1 = "Gen1" - GEN2 = "Gen2" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ContainerRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Container Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the customized accelerator.""" - - ACCELERATOR = "Accelerator" - FRAGMENT = "Fragment" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class EurekaServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the eureka server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the eureka server.""" - DISABLED = "Disabled" - """Disable the eureka server.""" - - -class EurekaServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the eureka server.""" - - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - CANCELED = "Canceled" - - -class Frequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The frequency to run the maintenance job.""" - - WEEKLY = "Weekly" - - -class GatewayCertificateVerification(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether to enable certificate verification or not.""" - - ENABLED = "Enabled" - """Enable certificate verification in Spring Cloud Gateway.""" - DISABLED = "Disabled" - """Disable certificate verification in Spring Cloud Gateway.""" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class GitImplementation(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Git libraries used to support various repository providers.""" - - GO_GIT = "go-git" - LIBGIT2 = "libgit2" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KeyVaultCertificateAutoSync(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Indicates whether to automatically synchronize certificate from key vault or not.""" - - DISABLED = "Disabled" - ENABLED = "Enabled" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" - - -class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The day to run the maintenance job.""" - - MONDAY = "Monday" - TUESDAY = "Tuesday" - WEDNESDAY = "Wednesday" - THURSDAY = "Thursday" - FRIDAY = "Friday" - SATURDAY = "Saturday" - SUNDAY = "Sunday" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_models_py3.py deleted file mode 100644 index cd7441052c8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_models_py3.py +++ /dev/null @@ -1,10678 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - self, *, username: str, ca_cert_resource_id: Optional[str] = None, password: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.ca_cert_resource_id = ca_cert_resource_id - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.AcceleratorAuthSetting - :ivar sub_path: Folder path inside the git repository to consider as the root of the - accelerator or fragment. - :vartype sub_path: str - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - "sub_path": {"key": "subPath", "type": "str"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - sub_path: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.AcceleratorAuthSetting - :keyword sub_path: Folder path inside the git repository to consider as the root of the - accelerator or fragment. - :paramtype sub_path: str - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - self.sub_path = sub_path - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__(self, *, ca_cert_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - self.ca_cert_resource_id = ca_cert_resource_id - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SsoProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApmProperties(_serialization.Model): - """Properties of an APM. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: APM Type. Required. - :vartype type: str - :ivar provisioning_state: State of the APM. Known values are: "Creating", "Updating", - "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmProvisioningState - :ivar properties: Non-sensitive properties for the APM. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for the APM. - :vartype secrets: dict[str, str] - """ - - _validation = { - "type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, - *, - type: str, - properties: Optional[Dict[str, str]] = None, - secrets: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: APM Type. Required. - :paramtype type: str - :keyword properties: Non-sensitive properties for the APM. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for the APM. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.type = type - self.provisioning_state = None - self.properties = properties - self.secrets = secrets - - -class ApmReference(_serialization.Model): - """A reference to the APM. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the APM. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the APM. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class ApmResource(ProxyResource): - """APM Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of an APM. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApmProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApmProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of an APM. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApmResourceCollection(_serialization.Model): - """Object that includes an array of APM resources and a possible link for next set. - - :ivar value: Collection of APM resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApmResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ApmResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of APM resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApmSecretKeys(_serialization.Model): - """Keys of APM sensitive properties. - - :ivar value: Collection of the keys for the APM sensitive properties. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the keys for the APM sensitive properties. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2023_09_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2023_09_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.Secret] - :ivar workload_profile_name: The workload profile used for this app. Supported for Consumption - + Dedicated plan. - :vartype workload_profile_name: str - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - "workload_profile_name": {"key": "workloadProfileName", "type": "str"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - workload_profile_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2023_09_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2023_09_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.Secret] - :keyword workload_profile_name: The workload profile used for this app. Supported for - Consumption + Dedicated plan. - :paramtype workload_profile_name: str - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - self.workload_profile_name = workload_profile_name - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar apms: The APMs for this build. - :vartype apms: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference] - :ivar certificates: The CA Certificates for this build. - :vartype certificates: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateReference] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "certificates": {"key": "certificates", "type": "[CertificateReference]"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - certificates: Optional[List["_models.CertificateReference"]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword apms: The APMs for this build. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference] - :keyword certificates: The CA Certificates for this build. - :paramtype certificates: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateReference] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.apms = apms - self.certificates = certificates - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildStageProperties] - :ivar image: The container registry image of this build result. - :vartype image: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - "image": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - self.image = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar container_registry: The resource id of the container registry used in this build service. - :vartype container_registry: str - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "k_pack_version": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "container_registry": {"key": "containerRegistry", "type": "str"}, - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - container_registry: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_registry: The resource id of the container registry used in this build - service. - :paramtype container_registry: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.container_registry = container_registry - self.k_pack_version = None - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateReference(_serialization.Model): - """A reference to the certificate. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the certificate. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the certificate. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceVNetAddons - :ivar maintenance_schedule_configuration: Additional Service settings for planned maintenance. - :vartype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MaintenanceScheduleConfiguration - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "maintenance_schedule_configuration": { - "key": "maintenanceScheduleConfiguration", - "type": "MaintenanceScheduleConfiguration", - }, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - maintenance_schedule_configuration: Optional["_models.MaintenanceScheduleConfiguration"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceVNetAddons - :keyword maintenance_schedule_configuration: Additional Service settings for planned - maintenance. - :paramtype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MaintenanceScheduleConfiguration - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.maintenance_schedule_configuration = maintenance_schedule_configuration - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - :ivar enabled_state: Enabled state of the config server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerEnabledState - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - enabled_state: Optional[Union[str, "_models.ConfigServerEnabledState"]] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - :keyword enabled_state: Enabled state of the config server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerEnabledState - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.enabled_state = enabled_state - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - :ivar git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :vartype git_implementation: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GitImplementation - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - "git_implementation": {"key": "gitImplementation", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - git_implementation: Optional[Union[str, "_models.GitImplementation"]] = None, - ca_cert_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - :keyword git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :paramtype git_implementation: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GitImplementation - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - self.git_implementation = git_implementation - self.ca_cert_resource_id = ca_cert_resource_id - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceProvisioningState - :ivar generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :vartype generation: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGeneration - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "generation": {"key": "generation", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__( - self, - *, - generation: Union[str, "_models.ConfigurationServiceGeneration"] = "Gen1", - settings: Optional["_models.ConfigurationServiceSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :paramtype generation: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGeneration - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.generation = generation - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContainerRegistryCredentials(_serialization.Model): - """The credential for the container registry resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContainerRegistryBasicCredentials - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"BasicAuth": "ContainerRegistryBasicCredentials"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ContainerRegistryBasicCredentials(ContainerRegistryCredentials): - """The basic authentication properties for the container registry resource. - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - :ivar server: The login server of the Container Registry. Required. - :vartype server: str - :ivar username: The username of the Container Registry. Required. - :vartype username: str - :ivar password: The password of the Container Registry. Required. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, server: str, username: str, password: str, **kwargs: Any) -> None: - """ - :keyword server: The login server of the Container Registry. Required. - :paramtype server: str - :keyword username: The username of the Container Registry. Required. - :paramtype username: str - :keyword password: The password of the Container Registry. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: str = "BasicAuth" - self.server = server - self.username = username - self.password = password - - -class ContainerRegistryProperties(_serialization.Model): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar credentials: The credentials of the container registry resource. Required. - :vartype credentials: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryCredentials - :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProvisioningState - """ - - _validation = { - "credentials": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: - """ - :keyword credentials: The credentials of the container registry resource. Required. - :paramtype credentials: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryCredentials - """ - super().__init__(**kwargs) - self.credentials = credentials - self.provisioning_state = None - - -class ContainerRegistryResource(ProxyResource): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the container registry resource payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the container registry resource payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ContainerRegistryResourceCollection(_serialization.Model): - """Collection compose of container registry resources list and a possible link for next page. - - :ivar value: The container registry resources list. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ContainerRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The container registry resources list. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerRegistryValidateResult(_serialization.Model): - """Validation result for container registry properties. - - :ivar is_valid: Indicate if the container registry properties are valid. - :vartype is_valid: bool - :ivar message: Detailed validation messages. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicate if the container registry properties are valid. - :paramtype is_valid: bool - :keyword message: Detailed validation messages. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. Supported values: - "springboot", "", null. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. Supported - values: "springboot", "", null. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and - "Fragment". - :vartype accelerator_type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorType - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar imports: Imports references all imports that this accelerator/fragment depends upon. - :vartype imports: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "imports": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "accelerator_type": {"key": "acceleratorType", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "imports": {"key": "imports", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - accelerator_type: Optional[Union[str, "_models.CustomizedAcceleratorType"]] = None, - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" - and "Fragment". - :paramtype accelerator_type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorType - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.accelerator_type = accelerator_type - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.imports = None - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2023_09_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2023_09_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar apms: Collection of ApmReferences. - :vartype apms: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword apms: Collection of ApmReferences. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.apms = apms - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class EurekaServerProperties(_serialization.Model): - """Eureka server properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the eureka server. Known values are: "Failed", "Succeeded", - "Updating", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerState - :ivar enabled_state: Enabled state of the eureka server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerEnabledState - :ivar error: Error when applying eureka server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - } - - def __init__( - self, - *, - enabled_state: Optional[Union[str, "_models.EurekaServerEnabledState"]] = None, - error: Optional["_models.Error"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled_state: Enabled state of the eureka server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerEnabledState - :keyword error: Error when applying eureka server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.enabled_state = enabled_state - self.error = error - - -class EurekaServerResource(ProxyResource): - """Eureka server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the eureka server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "EurekaServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.EurekaServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the eureka server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class EurekaServerResourceCollection(_serialization.Model): - """Object that includes an array of Eureka server resources and a possible link for next set. - - :ivar value: Collection of Eureka server resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[EurekaServerResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.EurekaServerResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Eureka server resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :vartype allowed_origin_patterns: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_origin_patterns": {"key": "allowedOriginPatterns", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_origin_patterns: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :paramtype allowed_origin_patterns: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_origin_patterns = allowed_origin_patterns - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCorsProperties - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayPropertiesClientAuth - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmType] - :ivar apms: Collection of ApmReferences in service level. - :vartype apms: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResourceRequests - :ivar addon_configs: Collection of addons for Spring Cloud Gateway. - :vartype addon_configs: dict[str, JSON] - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayOperatorProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCorsProperties - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayPropertiesClientAuth - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmType] - :keyword apms: Collection of ApmReferences in service level. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResourceRequests - :keyword addon_configs: Collection of addons for Spring Cloud Gateway. - :paramtype addon_configs: dict[str, JSON] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.client_auth = client_auth - self.apm_types = apm_types - self.apms = apms - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.addon_configs = addon_configs - self.instances = None - self.operator_properties = None - - -class GatewayPropertiesClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. - :vartype certificates: list[str] - :ivar certificate_verification: Whether to enable certificate verification or not. Known values - are: "Enabled" and "Disabled". - :vartype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCertificateVerification - """ - - _validation = { - "certificates": {"unique": True}, - } - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - "certificate_verification": {"key": "certificateVerification", "type": "str"}, - } - - def __init__( - self, - *, - certificates: Optional[List[str]] = None, - certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. - :paramtype certificates: list[str] - :keyword certificate_verification: Whether to enable certificate verification or not. Known - values are: "Enabled" and "Disabled". - :paramtype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCertificateVerification - """ - super().__init__(**kwargs) - self.certificates = certificates - self.certificate_verification = certificate_verification - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class GloballyEnabledApms(_serialization.Model): - """Globally enabled APMs payload. - - :ivar value: Collection of the globally enabled APMs. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the globally enabled APMs. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo, - WarUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - "War": "WarUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - :ivar auto_sync: Indicates whether to automatically synchronize certificate from key vault or - not. Known values are: "Disabled" and "Enabled". - :vartype auto_sync: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.KeyVaultCertificateAutoSync - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - "auto_sync": {"key": "autoSync", "type": "str"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - auto_sync: Union[str, "_models.KeyVaultCertificateAutoSync"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - :keyword auto_sync: Indicates whether to automatically synchronize certificate from key vault - or not. Known values are: "Disabled" and "Enabled". - :paramtype auto_sync: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.KeyVaultCertificateAutoSync - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - self.auto_sync = auto_sync - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class MaintenanceScheduleConfiguration(_serialization.Model): - """Configuration for the planned maintenance. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - WeeklyMaintenanceScheduleConfiguration - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.Frequency - """ - - _validation = { - "frequency": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - } - - _subtype_map = {"frequency": {"Weekly": "WeeklyMaintenanceScheduleConfiguration"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.frequency: Optional[str] = None - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_09_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_09_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2023_09_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_09_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2023_09_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2023_09_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2023_09_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2023_09_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app - connect, remote debugging) in vnet injection instance could be accessed from internet. - :vartype data_plane_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, - } - - def __init__( - self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any - ) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, - app connect, remote debugging) in vnet injection instance could be accessed from internet. - :paramtype data_plane_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - self.data_plane_public_endpoint = data_plane_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedApmType(_serialization.Model): - """Supported APM type. - - :ivar name: The name of the supported APM type. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the supported APM type. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class SupportedApmTypes(_serialization.Model): - """Supported APM types payload. - - :ivar value: Collection of the supported APM type. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedApmType] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedApmType]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedApmType"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported APM type. - :paramtype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedApmType] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedServerVersion(_serialization.Model): - """Supported server version. - - :ivar value: The raw server version value which could be passed to deployment CRUD operations. - :vartype value: str - :ivar server: The server name. - :vartype server: str - :ivar version: The Server version. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, *, value: Optional[str] = None, server: Optional[str] = None, version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The raw server version value which could be passed to deployment CRUD - operations. - :paramtype value: str - :keyword server: The server name. - :paramtype server: str - :keyword version: The Server version. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.server = server - self.version = version - - -class SupportedServerVersions(_serialization.Model): - """Supported server versions. - - :ivar value: Collection of the supported server versions. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedServerVersion] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedServerVersion]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedServerVersion"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported server versions. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedServerVersion] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_09_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_09_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - :ivar id: The unique build id of this build result. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages - - -class WarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded War binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the war file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar server_version: Server version, currently only Apache Tomcat is supported. - :vartype server_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - server_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the war file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword server_version: Server version, currently only Apache Tomcat is supported. - :paramtype server_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "War" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - self.server_version = server_version - - -class WeeklyMaintenanceScheduleConfiguration(MaintenanceScheduleConfiguration): - """Weekly planned maintenance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.Frequency - :ivar hour: The hour to run the maintenance job. Required. - :vartype hour: int - :ivar duration: The duration time to run the maintenance job, specified in ISO8601 format, e.g. - PT8H. - :vartype duration: str - :ivar day: The day to run the maintenance job. Required. Known values are: "Monday", "Tuesday", - "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :vartype day: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.WeekDay - """ - - _validation = { - "frequency": {"required": True}, - "hour": {"required": True, "maximum": 23, "minimum": 0}, - "duration": {"readonly": True}, - "day": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - "hour": {"key": "hour", "type": "int"}, - "duration": {"key": "duration", "type": "str"}, - "day": {"key": "day", "type": "str"}, - } - - def __init__(self, *, hour: int, day: Union[str, "_models.WeekDay"], **kwargs: Any) -> None: - """ - :keyword hour: The hour to run the maintenance job. Required. - :paramtype hour: int - :keyword day: The day to run the maintenance job. Required. Known values are: "Monday", - "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :paramtype day: str or ~azure.mgmt.appplatform.v2023_09_01_preview.models.WeekDay - """ - super().__init__(**kwargs) - self.frequency: str = "Weekly" - self.hour = hour - self.duration = None - self.day = day diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 94986b0c9e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index d254628617a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apms_operations.py deleted file mode 100644 index a7dfe8c40f0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apms_operations.py +++ /dev/null @@ -1,750 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_secret_keys_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource or IO[bytes] - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index 468d1ed7b82..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index 3ce4077b387..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apps_operations.py deleted file mode 100644 index 90f2d0518a1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_bindings_operations.py deleted file mode 100644 index c0224d049e8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 2d16c2031a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 9babdf1c0ce..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_operations.py deleted file mode 100644 index 403b9d30d61..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService or - IO[bytes] - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> LROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index a230478094a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_certificates_operations.py deleted file mode 100644 index f6aa0729402..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 972c3f8a95e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 42c7903f070..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,1170 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_resource_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_container_registries_operations.py deleted file mode 100644 index e3522a8e203..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_container_registries_operations.py +++ /dev/null @@ -1,923 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index d9c51e2e2ab..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index 332ea65f929..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_deployments_operations.py deleted file mode 100644 index 78bb0739dc4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2946 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, - resource_group_name: str, - service_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 8745b37b836..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_eureka_servers_operations.py deleted file mode 100644 index 3cd19c0cdbd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,712 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 4c84735c5ed..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index bbd5cc3ed3d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateways_operations.py deleted file mode 100644 index 1f427d1e4ef..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1319 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 84ce63706da..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_operations.py deleted file mode 100644 index c788e60eac8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 52dbfeb089b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 5b452e89ad5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index 1a25f24ccc3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_services_operations.py deleted file mode 100644 index a7d2c5c6e96..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,2691 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_flush_vnet_dns_setting_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_apm_types_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_globally_enabled_apms_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_server_versions_request( # pylint: disable=name-too-long - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedServerVersions", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_09_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_supported_server_versions( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedServerVersion"]: - """Lists all of the available server versions supported by Microsoft.AppPlatform provider. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedServerVersion or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.SupportedServerVersion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.SupportedServerVersions] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_server_versions_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedServerVersions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_skus_operations.py deleted file mode 100644 index 089f89d0094..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_storages_operations.py deleted file mode 100644 index e4ae4180f0b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_09_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-09-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_09_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_09_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-09-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_app_platform_management_client.py deleted file mode 100644 index 0b608ad1709..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,313 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_11_01_preview.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_11_01_preview.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_11_01_preview.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_11_01_preview.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_11_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_11_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_11_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_11_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_11_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_11_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_11_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_11_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_11_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_11_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_11_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_11_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_11_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_11_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_11_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_configuration.py deleted file mode 100644 index 9b869db0d95..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-11-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index 2332ecdc5f6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2023_11_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2023-11-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_configuration.py deleted file mode 100644 index c687fc1c4f7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2023-11-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 1cb514249eb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 03e865384ea..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apms_operations.py deleted file mode 100644 index 704321efea0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apms_operations.py +++ /dev/null @@ -1,596 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apms_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secret_keys_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index ce70d132b0e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index 2bf6c5f6920..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index 5f110d5dd9e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index 9bec964d779..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 46ecf93e28d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 6ec3812b205..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 03a1dba8f65..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_create_or_update_request, - build_delete_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index 0c30e4f7575..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 4ad4043f1a9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index 379c0b4d33c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 99408d5d385..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, - build_validate_resource_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_container_registries_operations.py deleted file mode 100644 index 55330226b23..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_container_registries_operations.py +++ /dev/null @@ -1,756 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._container_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index 2fd93617da8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index b5f678e8472..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,731 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 307f87c1ff1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2327 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, - resource_group_name: str, - service_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index b490318d0f5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,531 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_eureka_servers_operations.py deleted file mode 100644 index 6bbe8f8854d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,589 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._eureka_servers_operations import ( - build_get_request, - build_list_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index ec4886a7f8c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 935d3985099..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index 3baa321d2fd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,1066 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_restart_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index e8d80622a48..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_operations.py deleted file mode 100644 index ccc9d303e0a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 6645951488c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,461 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 49113b24979..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 72035d9e079..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index c0f9e8d7c77..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,2123 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_apm_globally_request, - build_disable_test_endpoint_request, - build_enable_apm_globally_request, - build_enable_test_endpoint_request, - build_flush_vnet_dns_setting_request, - build_get_request, - build_list_by_subscription_request, - build_list_globally_enabled_apms_request, - build_list_request, - build_list_supported_apm_types_request, - build_list_supported_server_versions_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_supported_server_versions( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedServerVersion"]: - """Lists all of the available server versions supported by Microsoft.AppPlatform provider. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedServerVersion or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedServerVersion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedServerVersions] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_server_versions_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedServerVersions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index 5414fdf5ae8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index d3e2ca8aa20..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/__init__.py deleted file mode 100644 index ae9cee6837f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/__init__.py +++ /dev/null @@ -1,645 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import ApmProperties -from ._models_py3 import ApmReference -from ._models_py3 import ApmResource -from ._models_py3 import ApmResourceCollection -from ._models_py3 import ApmSecretKeys -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateReference -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContainerRegistryBasicCredentials -from ._models_py3 import ContainerRegistryCredentials -from ._models_py3 import ContainerRegistryProperties -from ._models_py3 import ContainerRegistryResource -from ._models_py3 import ContainerRegistryResourceCollection -from ._models_py3 import ContainerRegistryValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import EurekaServerProperties -from ._models_py3 import EurekaServerResource -from ._models_py3 import EurekaServerResourceCollection -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayLocalResponseCachePerInstanceProperties -from ._models_py3 import GatewayLocalResponseCachePerRouteProperties -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesClientAuth -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayResponseCacheProperties -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import GloballyEnabledApms -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import MaintenanceScheduleConfiguration -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedApmType -from ._models_py3 import SupportedApmTypes -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedServerVersion -from ._models_py3 import SupportedServerVersions -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages -from ._models_py3 import WarUploadedUserSourceInfo -from ._models_py3 import WeeklyMaintenanceScheduleConfiguration - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalApiTryOutEnabledState -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerEnabledState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceGeneration -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import ContainerRegistryProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorType -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import EurekaServerEnabledState -from ._app_platform_management_client_enums import EurekaServerState -from ._app_platform_management_client_enums import Frequency -from ._app_platform_management_client_enums import GatewayCertificateVerification -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import GitImplementation -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import KeyVaultCertificateAutoSync -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import TriggeredBuildResultProvisioningState -from ._app_platform_management_client_enums import Type -from ._app_platform_management_client_enums import WeekDay -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "ApmProperties", - "ApmReference", - "ApmResource", - "ApmResourceCollection", - "ApmSecretKeys", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateReference", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContainerRegistryBasicCredentials", - "ContainerRegistryCredentials", - "ContainerRegistryProperties", - "ContainerRegistryResource", - "ContainerRegistryResourceCollection", - "ContainerRegistryValidateResult", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "EurekaServerProperties", - "EurekaServerResource", - "EurekaServerResourceCollection", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayLocalResponseCachePerInstanceProperties", - "GatewayLocalResponseCachePerRouteProperties", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesClientAuth", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayResponseCacheProperties", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "GloballyEnabledApms", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "MaintenanceScheduleConfiguration", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedApmType", - "SupportedApmTypes", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedServerVersion", - "SupportedServerVersions", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "WarUploadedUserSourceInfo", - "WeeklyMaintenanceScheduleConfiguration", - "ActionType", - "ApiPortalApiTryOutEnabledState", - "ApiPortalProvisioningState", - "ApmProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerEnabledState", - "ConfigServerState", - "ConfigurationServiceGeneration", - "ConfigurationServiceProvisioningState", - "ContainerRegistryProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorType", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "EurekaServerEnabledState", - "EurekaServerState", - "Frequency", - "GatewayCertificateVerification", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "GitImplementation", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "KeyVaultCertificateAutoSync", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestKeyType", - "TrafficDirection", - "TriggeredBuildResultProvisioningState", - "Type", - "WeekDay", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index fa407cd8889..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,564 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalApiTryOutEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try - out the API by sending requests and viewing responses in API portal. When disabled, users - cannot try out the API. - """ - - ENABLED = "Enabled" - DISABLED = "Disabled" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the APM.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the config server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the config server.""" - DISABLED = "Disabled" - """Disable the config server.""" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The generation of the Application Configuration Service.""" - - GEN1 = "Gen1" - GEN2 = "Gen2" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ContainerRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Container Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the customized accelerator.""" - - ACCELERATOR = "Accelerator" - FRAGMENT = "Fragment" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class EurekaServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the eureka server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the eureka server.""" - DISABLED = "Disabled" - """Disable the eureka server.""" - - -class EurekaServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the eureka server.""" - - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - CANCELED = "Canceled" - - -class Frequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The frequency to run the maintenance job.""" - - WEEKLY = "Weekly" - - -class GatewayCertificateVerification(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether to enable certificate verification or not.""" - - ENABLED = "Enabled" - """Enable certificate verification in Spring Cloud Gateway.""" - DISABLED = "Disabled" - """Disable certificate verification in Spring Cloud Gateway.""" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class GitImplementation(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Git libraries used to support various repository providers.""" - - GO_GIT = "go-git" - LIBGIT2 = "libgit2" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KeyVaultCertificateAutoSync(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Indicates whether to automatically synchronize certificate from key vault or not.""" - - DISABLED = "Disabled" - ENABLED = "Enabled" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - NET_CORE31 = "NetCore_31" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class TriggeredBuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" - - -class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The day to run the maintenance job.""" - - MONDAY = "Monday" - TUESDAY = "Tuesday" - WEDNESDAY = "Wednesday" - THURSDAY = "Thursday" - FRIDAY = "Friday" - SATURDAY = "Saturday" - SUNDAY = "Sunday" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_models_py3.py deleted file mode 100644 index 49cda2ab61c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_models_py3.py +++ /dev/null @@ -1,10858 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - self, *, username: str, ca_cert_resource_id: Optional[str] = None, password: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.ca_cert_resource_id = ca_cert_resource_id - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.AcceleratorAuthSetting - :ivar sub_path: Folder path inside the git repository to consider as the root of the - accelerator or fragment. - :vartype sub_path: str - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - "sub_path": {"key": "subPath", "type": "str"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - sub_path: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.AcceleratorAuthSetting - :keyword sub_path: Folder path inside the git repository to consider as the root of the - accelerator or fragment. - :paramtype sub_path: str - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - self.sub_path = sub_path - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__(self, *, ca_cert_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - self.ca_cert_resource_id = ca_cert_resource_id - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalInstance] - :ivar api_try_out_enabled_state: Indicates whether the API try-out feature is enabled or - disabled. When enabled, users can try out the API by sending requests and viewing responses in - API portal. When disabled, users cannot try out the API. Known values are: "Enabled" and - "Disabled". - :vartype api_try_out_enabled_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalApiTryOutEnabledState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - "api_try_out_enabled_state": {"key": "apiTryOutEnabledState", "type": "str"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - api_try_out_enabled_state: Union[str, "_models.ApiPortalApiTryOutEnabledState"] = "Enabled", - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SsoProperties - :keyword api_try_out_enabled_state: Indicates whether the API try-out feature is enabled or - disabled. When enabled, users can try out the API by sending requests and viewing responses in - API portal. When disabled, users cannot try out the API. Known values are: "Enabled" and - "Disabled". - :paramtype api_try_out_enabled_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalApiTryOutEnabledState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - self.api_try_out_enabled_state = api_try_out_enabled_state - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApmProperties(_serialization.Model): - """Properties of an APM. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: APM Type. Required. - :vartype type: str - :ivar provisioning_state: State of the APM. Known values are: "Creating", "Updating", - "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmProvisioningState - :ivar properties: Non-sensitive properties for the APM. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for the APM. - :vartype secrets: dict[str, str] - """ - - _validation = { - "type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, - *, - type: str, - properties: Optional[Dict[str, str]] = None, - secrets: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: APM Type. Required. - :paramtype type: str - :keyword properties: Non-sensitive properties for the APM. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for the APM. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.type = type - self.provisioning_state = None - self.properties = properties - self.secrets = secrets - - -class ApmReference(_serialization.Model): - """A reference to the APM. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the APM. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the APM. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class ApmResource(ProxyResource): - """APM Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of an APM. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApmProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApmProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of an APM. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApmResourceCollection(_serialization.Model): - """Object that includes an array of APM resources and a possible link for next set. - - :ivar value: Collection of APM resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApmResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ApmResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of APM resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApmSecretKeys(_serialization.Model): - """Keys of APM sensitive properties. - - :ivar value: Collection of the keys for the APM sensitive properties. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the keys for the APM sensitive properties. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2023_11_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2023_11_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.Secret] - :ivar workload_profile_name: The workload profile used for this app. Supported for Consumption - + Dedicated plan. - :vartype workload_profile_name: str - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - "workload_profile_name": {"key": "workloadProfileName", "type": "str"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - workload_profile_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2023_11_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2023_11_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.Secret] - :keyword workload_profile_name: The workload profile used for this app. Supported for - Consumption + Dedicated plan. - :paramtype workload_profile_name: str - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - self.workload_profile_name = workload_profile_name - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - :ivar id: Id of the buildpack. - :vartype id: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar apms: The APMs for this build. - :vartype apms: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference] - :ivar certificates: The CA Certificates for this build. - :vartype certificates: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateReference] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "certificates": {"key": "certificates", "type": "[CertificateReference]"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - certificates: Optional[List["_models.CertificateReference"]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword apms: The APMs for this build. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference] - :keyword certificates: The CA Certificates for this build. - :paramtype certificates: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateReference] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.apms = apms - self.certificates = certificates - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildStageProperties] - :ivar image: The container registry image of this build result. - :vartype image: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - "image": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - self.image = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar container_registry: The resource id of the container registry used in this build service. - :vartype container_registry: str - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "k_pack_version": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "container_registry": {"key": "containerRegistry", "type": "str"}, - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - container_registry: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_registry: The resource id of the container registry used in this build - service. - :paramtype container_registry: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.container_registry = container_registry - self.k_pack_version = None - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateReference(_serialization.Model): - """A reference to the certificate. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the certificate. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the certificate. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceVNetAddons - :ivar maintenance_schedule_configuration: Additional Service settings for planned maintenance. - :vartype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MaintenanceScheduleConfiguration - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "maintenance_schedule_configuration": { - "key": "maintenanceScheduleConfiguration", - "type": "MaintenanceScheduleConfiguration", - }, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - maintenance_schedule_configuration: Optional["_models.MaintenanceScheduleConfiguration"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceVNetAddons - :keyword maintenance_schedule_configuration: Additional Service settings for planned - maintenance. - :paramtype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MaintenanceScheduleConfiguration - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.maintenance_schedule_configuration = maintenance_schedule_configuration - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - :ivar enabled_state: Enabled state of the config server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerEnabledState - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - enabled_state: Optional[Union[str, "_models.ConfigServerEnabledState"]] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - :keyword enabled_state: Enabled state of the config server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerEnabledState - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.enabled_state = enabled_state - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - :ivar git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :vartype git_implementation: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GitImplementation - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - "git_implementation": {"key": "gitImplementation", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - git_implementation: Optional[Union[str, "_models.GitImplementation"]] = None, - ca_cert_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - :keyword git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :paramtype git_implementation: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GitImplementation - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - self.git_implementation = git_implementation - self.ca_cert_resource_id = ca_cert_resource_id - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceProvisioningState - :ivar generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :vartype generation: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGeneration - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "generation": {"key": "generation", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__( - self, - *, - generation: Union[str, "_models.ConfigurationServiceGeneration"] = "Gen1", - settings: Optional["_models.ConfigurationServiceSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :paramtype generation: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGeneration - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.generation = generation - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - } - - def __init__( - self, *, git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContainerRegistryCredentials(_serialization.Model): - """The credential for the container registry resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContainerRegistryBasicCredentials - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"BasicAuth": "ContainerRegistryBasicCredentials"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ContainerRegistryBasicCredentials(ContainerRegistryCredentials): - """The basic authentication properties for the container registry resource. - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - :ivar server: The login server of the Container Registry. Required. - :vartype server: str - :ivar username: The username of the Container Registry. Required. - :vartype username: str - :ivar password: The password of the Container Registry. Required. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, server: str, username: str, password: str, **kwargs: Any) -> None: - """ - :keyword server: The login server of the Container Registry. Required. - :paramtype server: str - :keyword username: The username of the Container Registry. Required. - :paramtype username: str - :keyword password: The password of the Container Registry. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: str = "BasicAuth" - self.server = server - self.username = username - self.password = password - - -class ContainerRegistryProperties(_serialization.Model): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar credentials: The credentials of the container registry resource. Required. - :vartype credentials: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryCredentials - :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProvisioningState - """ - - _validation = { - "credentials": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: - """ - :keyword credentials: The credentials of the container registry resource. Required. - :paramtype credentials: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryCredentials - """ - super().__init__(**kwargs) - self.credentials = credentials - self.provisioning_state = None - - -class ContainerRegistryResource(ProxyResource): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the container registry resource payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the container registry resource payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ContainerRegistryResourceCollection(_serialization.Model): - """Collection compose of container registry resources list and a possible link for next page. - - :ivar value: The container registry resources list. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ContainerRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The container registry resources list. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerRegistryValidateResult(_serialization.Model): - """Validation result for container registry properties. - - :ivar is_valid: Indicate if the container registry properties are valid. - :vartype is_valid: bool - :ivar message: Detailed validation messages. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicate if the container registry properties are valid. - :paramtype is_valid: bool - :keyword message: Detailed validation messages. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. Supported values: - "springboot", "", null. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. Supported - values: "springboot", "", null. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and - "Fragment". - :vartype accelerator_type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorType - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar imports: Imports references all imports that this accelerator/fragment depends upon. - :vartype imports: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "imports": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "accelerator_type": {"key": "acceleratorType", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "imports": {"key": "imports", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - accelerator_type: Optional[Union[str, "_models.CustomizedAcceleratorType"]] = None, - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" - and "Fragment". - :paramtype accelerator_type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorType - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.accelerator_type = accelerator_type - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.imports = None - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2023_11_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2023_11_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar apms: Collection of ApmReferences. - :vartype apms: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword apms: Collection of ApmReferences. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.apms = apms - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class EurekaServerProperties(_serialization.Model): - """Eureka server properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the eureka server. Known values are: "Failed", "Succeeded", - "Updating", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerState - :ivar enabled_state: Enabled state of the eureka server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerEnabledState - :ivar error: Error when applying eureka server settings. - :vartype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - } - - def __init__( - self, - *, - enabled_state: Optional[Union[str, "_models.EurekaServerEnabledState"]] = None, - error: Optional["_models.Error"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled_state: Enabled state of the eureka server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerEnabledState - :keyword error: Error when applying eureka server settings. - :paramtype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.enabled_state = enabled_state - self.error = error - - -class EurekaServerResource(ProxyResource): - """Eureka server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the eureka server resource. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "EurekaServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.EurekaServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the eureka server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class EurekaServerResourceCollection(_serialization.Model): - """Object that includes an array of Eureka server resources and a possible link for next set. - - :ivar value: Collection of Eureka server resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[EurekaServerResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.EurekaServerResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Eureka server resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :vartype allowed_origin_patterns: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_origin_patterns": {"key": "allowedOriginPatterns", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_origin_patterns: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :paramtype allowed_origin_patterns: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_origin_patterns = allowed_origin_patterns - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayResponseCacheProperties(_serialization.Model): - """Spring Cloud Gateway response cache properties. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - GatewayLocalResponseCachePerInstanceProperties, GatewayLocalResponseCachePerRouteProperties - - All required parameters must be populated in order to send to server. - - :ivar response_cache_type: The type of the response cache. Required. - :vartype response_cache_type: str - """ - - _validation = { - "response_cache_type": {"required": True}, - } - - _attribute_map = { - "response_cache_type": {"key": "responseCacheType", "type": "str"}, - } - - _subtype_map = { - "response_cache_type": { - "LocalCachePerInstance": "GatewayLocalResponseCachePerInstanceProperties", - "LocalCachePerRoute": "GatewayLocalResponseCachePerRouteProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.response_cache_type: Optional[str] = None - - -class GatewayLocalResponseCachePerInstanceProperties(GatewayResponseCacheProperties): # pylint: disable=name-too-long - """Spring Cloud Gateway local response cache per instance properties. - - All required parameters must be populated in order to send to server. - - :ivar response_cache_type: The type of the response cache. Required. - :vartype response_cache_type: str - :ivar size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :vartype size: str - :ivar time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :vartype time_to_live: str - """ - - _validation = { - "response_cache_type": {"required": True}, - } - - _attribute_map = { - "response_cache_type": {"key": "responseCacheType", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "time_to_live": {"key": "timeToLive", "type": "str"}, - } - - def __init__(self, *, size: Optional[str] = None, time_to_live: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :paramtype size: str - :keyword time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :paramtype time_to_live: str - """ - super().__init__(**kwargs) - self.response_cache_type: str = "LocalCachePerInstance" - self.size = size - self.time_to_live = time_to_live - - -class GatewayLocalResponseCachePerRouteProperties(GatewayResponseCacheProperties): # pylint: disable=name-too-long - """Spring Cloud Gateway local response cache per route properties. - - All required parameters must be populated in order to send to server. - - :ivar response_cache_type: The type of the response cache. Required. - :vartype response_cache_type: str - :ivar size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :vartype size: str - :ivar time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :vartype time_to_live: str - """ - - _validation = { - "response_cache_type": {"required": True}, - } - - _attribute_map = { - "response_cache_type": {"key": "responseCacheType", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "time_to_live": {"key": "timeToLive", "type": "str"}, - } - - def __init__(self, *, size: Optional[str] = None, time_to_live: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :paramtype size: str - :keyword time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :paramtype time_to_live: str - """ - super().__init__(**kwargs) - self.response_cache_type: str = "LocalCachePerRoute" - self.size = size - self.time_to_live = time_to_live - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCorsProperties - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayPropertiesClientAuth - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmType] - :ivar apms: Collection of ApmReferences in service level. - :vartype apms: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResourceRequests - :ivar addon_configs: Collection of addons for Spring Cloud Gateway. - :vartype addon_configs: dict[str, JSON] - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayOperatorProperties - :ivar response_cache_properties: The properties to configure different types of response cache - for Spring Cloud Gateway. - :vartype response_cache_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResponseCacheProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - "response_cache_properties": {"key": "responseCacheProperties", "type": "GatewayResponseCacheProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - response_cache_properties: Optional["_models.GatewayResponseCacheProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCorsProperties - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayPropertiesClientAuth - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmType] - :keyword apms: Collection of ApmReferences in service level. - :paramtype apms: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResourceRequests - :keyword addon_configs: Collection of addons for Spring Cloud Gateway. - :paramtype addon_configs: dict[str, JSON] - :keyword response_cache_properties: The properties to configure different types of response - cache for Spring Cloud Gateway. - :paramtype response_cache_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResponseCacheProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.client_auth = client_auth - self.apm_types = apm_types - self.apms = apms - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.addon_configs = addon_configs - self.instances = None - self.operator_properties = None - self.response_cache_properties = response_cache_properties - - -class GatewayPropertiesClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. - :vartype certificates: list[str] - :ivar certificate_verification: Whether to enable certificate verification or not. Known values - are: "Enabled" and "Disabled". - :vartype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCertificateVerification - """ - - _validation = { - "certificates": {"unique": True}, - } - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - "certificate_verification": {"key": "certificateVerification", "type": "str"}, - } - - def __init__( - self, - *, - certificates: Optional[List[str]] = None, - certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. - :paramtype certificates: list[str] - :keyword certificate_verification: Whether to enable certificate verification or not. Known - values are: "Enabled" and "Disabled". - :paramtype certificate_verification: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCertificateVerification - """ - super().__init__(**kwargs) - self.certificates = certificates - self.certificate_verification = certificate_verification - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class GloballyEnabledApms(_serialization.Model): - """Globally enabled APMs payload. - - :ivar value: Collection of the globally enabled APMs. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the globally enabled APMs. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo, - WarUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - "War": "WarUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - :ivar auto_sync: Indicates whether to automatically synchronize certificate from key vault or - not. Known values are: "Disabled" and "Enabled". - :vartype auto_sync: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.KeyVaultCertificateAutoSync - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - "auto_sync": {"key": "autoSync", "type": "str"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - auto_sync: Union[str, "_models.KeyVaultCertificateAutoSync"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - :keyword auto_sync: Indicates whether to automatically synchronize certificate from key vault - or not. Known values are: "Disabled" and "Enabled". - :paramtype auto_sync: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.KeyVaultCertificateAutoSync - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - self.auto_sync = auto_sync - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class MaintenanceScheduleConfiguration(_serialization.Model): - """Configuration for the planned maintenance. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - WeeklyMaintenanceScheduleConfiguration - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.Frequency - """ - - _validation = { - "frequency": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - } - - _subtype_map = {"frequency": {"Weekly": "WeeklyMaintenanceScheduleConfiguration"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.frequency: Optional[str] = None - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_11_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2023_11_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2023_11_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2023_11_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2023_11_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2023_11_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2023_11_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2023_11_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app - connect, remote debugging) in vnet injection instance could be accessed from internet. - :vartype data_plane_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, - } - - def __init__( - self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any - ) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, - app connect, remote debugging) in vnet injection instance could be accessed from internet. - :paramtype data_plane_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - self.data_plane_public_endpoint = data_plane_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedApmType(_serialization.Model): - """Supported APM type. - - :ivar name: The name of the supported APM type. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the supported APM type. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class SupportedApmTypes(_serialization.Model): - """Supported APM types payload. - - :ivar value: Collection of the supported APM type. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedApmType] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedApmType]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedApmType"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported APM type. - :paramtype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedApmType] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedServerVersion(_serialization.Model): - """Supported server version. - - :ivar value: The raw server version value which could be passed to deployment CRUD operations. - :vartype value: str - :ivar server: The server name. - :vartype server: str - :ivar version: The Server version. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, *, value: Optional[str] = None, server: Optional[str] = None, version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The raw server version value which could be passed to deployment CRUD - operations. - :paramtype value: str - :keyword server: The server name. - :paramtype server: str - :keyword version: The Server version. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.server = server - self.version = version - - -class SupportedServerVersions(_serialization.Model): - """Supported server versions. - - :ivar value: Collection of the supported server versions. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedServerVersion] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedServerVersion]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedServerVersion"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported server versions. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedServerVersion] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2023_11_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The unique build id of this build result. - :vartype id: str - :ivar provisioning_state: The provisioning state of this build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2023_11_01_preview.models.TriggeredBuildResultProvisioningState - :ivar image: The container image of this build result. - :vartype image: str - :ivar last_transition_time: The last transition time of this build result. - :vartype last_transition_time: ~datetime.datetime - :ivar last_transition_reason: The last transition reason of this build result. - :vartype last_transition_reason: str - :ivar last_transition_status: The last transition status of this build result. - :vartype last_transition_status: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "image": {"key": "image", "type": "str"}, - "last_transition_time": {"key": "lastTransitionTime", "type": "iso-8601"}, - "last_transition_reason": {"key": "lastTransitionReason", "type": "str"}, - "last_transition_status": {"key": "lastTransitionStatus", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - image: Optional[str] = None, - last_transition_time: Optional[datetime.datetime] = None, - last_transition_reason: Optional[str] = None, - last_transition_status: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - :keyword image: The container image of this build result. - :paramtype image: str - :keyword last_transition_time: The last transition time of this build result. - :paramtype last_transition_time: ~datetime.datetime - :keyword last_transition_reason: The last transition reason of this build result. - :paramtype last_transition_reason: str - :keyword last_transition_status: The last transition status of this build result. - :paramtype last_transition_status: str - """ - super().__init__(**kwargs) - self.id = id - self.provisioning_state = None - self.image = image - self.last_transition_time = last_transition_time - self.last_transition_reason = last_transition_reason - self.last_transition_status = last_transition_status - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages - - -class WarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded War binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the war file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar server_version: Server version, currently only Apache Tomcat is supported. - :vartype server_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - server_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the war file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword server_version: Server version, currently only Apache Tomcat is supported. - :paramtype server_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "War" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - self.server_version = server_version - - -class WeeklyMaintenanceScheduleConfiguration(MaintenanceScheduleConfiguration): - """Weekly planned maintenance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.Frequency - :ivar hour: The hour to run the maintenance job. Required. - :vartype hour: int - :ivar duration: The duration time to run the maintenance job, specified in ISO8601 format, e.g. - PT8H. - :vartype duration: str - :ivar day: The day to run the maintenance job. Required. Known values are: "Monday", "Tuesday", - "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :vartype day: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.WeekDay - """ - - _validation = { - "frequency": {"required": True}, - "hour": {"required": True, "maximum": 23, "minimum": 0}, - "duration": {"readonly": True}, - "day": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - "hour": {"key": "hour", "type": "int"}, - "duration": {"key": "duration", "type": "str"}, - "day": {"key": "day", "type": "str"}, - } - - def __init__(self, *, hour: int, day: Union[str, "_models.WeekDay"], **kwargs: Any) -> None: - """ - :keyword hour: The hour to run the maintenance job. Required. - :paramtype hour: int - :keyword day: The day to run the maintenance job. Required. Known values are: "Monday", - "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :paramtype day: str or ~azure.mgmt.appplatform.v2023_11_01_preview.models.WeekDay - """ - super().__init__(**kwargs) - self.frequency: str = "Weekly" - self.hour = hour - self.duration = None - self.day = day diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 99012d1df55..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 268e7ccf64e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apms_operations.py deleted file mode 100644 index 79a9b48ddb4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apms_operations.py +++ /dev/null @@ -1,750 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_secret_keys_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource or IO[bytes] - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index 744cfabe407..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,664 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index 46eb3bed0eb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url("application_live_view_name", application_live_view_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apps_operations.py deleted file mode 100644 index fade2000c8b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 1234c3e9b38..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index d4202e9aaa0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index b49119bfb92..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_operations.py deleted file mode 100644 index d52a323d48d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService or - IO[bytes] - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> LROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 616940d0a6e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_certificates_operations.py deleted file mode 100644 index 782948284f7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 6b4bf519da0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 3012bec88a5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,1170 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_resource_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_container_registries_operations.py deleted file mode 100644 index 42a7cb5c6a3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_container_registries_operations.py +++ /dev/null @@ -1,923 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index 01396b1261e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index e145dfdc8b9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,927 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "customizedAcceleratorName": _SERIALIZER.url("customized_accelerator_name", customized_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: CustomizedAcceleratorValidateResult or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomizedAcceleratorValidateResult - or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_deployments_operations.py deleted file mode 100644 index e79817ef125..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2946 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, - resource_group_name: str, - service_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 3afa74f6b96..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,656 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url("dev_tool_portal_name", dev_tool_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_eureka_servers_operations.py deleted file mode 100644 index 7b25ead7f6e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,712 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index e29338d9ba3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 4bff9126085..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateways_operations.py deleted file mode 100644 index d304e3abcba..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1319 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index 213ab64191f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_operations.py deleted file mode 100644 index e8fe70607be..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index fb4cd729874..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,612 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str" - ), - "predefinedAcceleratorName": _SERIALIZER.url("predefined_accelerator_name", predefined_accelerator_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 4f4799ece31..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index f2036c12ade..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_services_operations.py deleted file mode 100644 index 1029587dde8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,2691 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_flush_vnet_dns_setting_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_apm_types_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_globally_enabled_apms_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_server_versions_request( # pylint: disable=name-too-long - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedServerVersions", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2023_11_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_supported_server_versions( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedServerVersion"]: - """Lists all of the available server versions supported by Microsoft.AppPlatform provider. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedServerVersion or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.SupportedServerVersion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.SupportedServerVersions] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_server_versions_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedServerVersions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_skus_operations.py deleted file mode 100644 index 8eba5994cc8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_storages_operations.py deleted file mode 100644 index bd05c21c4d3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2023_11_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-11-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2023_11_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2023_11_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2023-11-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/__init__.py deleted file mode 100644 index d0d782a6dee..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/__init__.py +++ /dev/null @@ -1,26 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient -from ._version import VERSION - -__version__ = VERSION - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_app_platform_management_client.py deleted file mode 100644 index f65eae6db88..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_app_platform_management_client.py +++ /dev/null @@ -1,313 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import HttpRequest, HttpResponse -from azure.mgmt.core import ARMPipelineClient -from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy - -from . import models as _models -from .._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2024_01_01_preview.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2024_01_01_preview.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2024_01_01_preview.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2024_01_01_preview.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2024_01_01_preview.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2024_01_01_preview.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2024_01_01_preview.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2024_01_01_preview.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2024_01_01_preview.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2024_01_01_preview.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2024_01_01_preview.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2024_01_01_preview.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2024_01_01_preview.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2024_01_01_preview.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2024_01_01_preview.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2024_01_01_preview.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2024_01_01_preview.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2024_01_01_preview.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2024_01_01_preview.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2024-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "TokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - ARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - - def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.HttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - def close(self) -> None: - self._client.close() - - def __enter__(self) -> "AppPlatformManagementClient": - self._client.__enter__() - return self - - def __exit__(self, *exc_details: Any) -> None: - self._client.__exit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_configuration.py deleted file mode 100644 index 800fe8b41ec..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy - -from ._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials import TokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2024-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-01-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = ARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_vendor.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_vendor.py deleted file mode 100644 index 0dafe0e287f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_vendor.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.pipeline.transport import HttpRequest - - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_version.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_version.py deleted file mode 100644 index 92453d8691d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "6.1.0" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/__init__.py deleted file mode 100644 index 99174a0dabf..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._app_platform_management_client import AppPlatformManagementClient - -try: - from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import -except ImportError: - _patch_all = [] -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AppPlatformManagementClient", -] -__all__.extend([p for p in _patch_all if p not in __all__]) - -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_app_platform_management_client.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_app_platform_management_client.py deleted file mode 100644 index a5974e6ffad..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_app_platform_management_client.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from copy import deepcopy -from typing import Any, Awaitable, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.mgmt.core import AsyncARMPipelineClient -from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy - -from .. import models as _models -from ..._serialization import Deserializer, Serializer -from ._configuration import AppPlatformManagementClientConfiguration -from .operations import ( - ApiPortalCustomDomainsOperations, - ApiPortalsOperations, - ApmsOperations, - ApplicationAcceleratorsOperations, - ApplicationLiveViewsOperations, - AppsOperations, - BindingsOperations, - BuildServiceAgentPoolOperations, - BuildServiceBuilderOperations, - BuildServiceOperations, - BuildpackBindingOperations, - CertificatesOperations, - ConfigServersOperations, - ConfigurationServicesOperations, - ContainerRegistriesOperations, - CustomDomainsOperations, - CustomizedAcceleratorsOperations, - DeploymentsOperations, - DevToolPortalsOperations, - EurekaServersOperations, - GatewayCustomDomainsOperations, - GatewayRouteConfigsOperations, - GatewaysOperations, - MonitoringSettingsOperations, - Operations, - PredefinedAcceleratorsOperations, - RuntimeVersionsOperations, - ServiceRegistriesOperations, - ServicesOperations, - SkusOperations, - StoragesOperations, -) - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes - """REST API for Azure Spring Apps. - - :ivar services: ServicesOperations operations - :vartype services: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ServicesOperations - :ivar apms: ApmsOperations operations - :vartype apms: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApmsOperations - :ivar eureka_servers: EurekaServersOperations operations - :vartype eureka_servers: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.EurekaServersOperations - :ivar config_servers: ConfigServersOperations operations - :vartype config_servers: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ConfigServersOperations - :ivar configuration_services: ConfigurationServicesOperations operations - :vartype configuration_services: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ConfigurationServicesOperations - :ivar service_registries: ServiceRegistriesOperations operations - :vartype service_registries: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ServiceRegistriesOperations - :ivar application_live_views: ApplicationLiveViewsOperations operations - :vartype application_live_views: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApplicationLiveViewsOperations - :ivar dev_tool_portals: DevToolPortalsOperations operations - :vartype dev_tool_portals: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.DevToolPortalsOperations - :ivar container_registries: ContainerRegistriesOperations operations - :vartype container_registries: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ContainerRegistriesOperations - :ivar build_service: BuildServiceOperations operations - :vartype build_service: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceOperations - :ivar buildpack_binding: BuildpackBindingOperations operations - :vartype buildpack_binding: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildpackBindingOperations - :ivar build_service_builder: BuildServiceBuilderOperations operations - :vartype build_service_builder: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceBuilderOperations - :ivar build_service_agent_pool: BuildServiceAgentPoolOperations operations - :vartype build_service_agent_pool: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BuildServiceAgentPoolOperations - :ivar monitoring_settings: MonitoringSettingsOperations operations - :vartype monitoring_settings: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.MonitoringSettingsOperations - :ivar apps: AppsOperations operations - :vartype apps: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.AppsOperations - :ivar bindings: BindingsOperations operations - :vartype bindings: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.BindingsOperations - :ivar storages: StoragesOperations operations - :vartype storages: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.StoragesOperations - :ivar certificates: CertificatesOperations operations - :vartype certificates: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CertificatesOperations - :ivar custom_domains: CustomDomainsOperations operations - :vartype custom_domains: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CustomDomainsOperations - :ivar deployments: DeploymentsOperations operations - :vartype deployments: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.DeploymentsOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.Operations - :ivar runtime_versions: RuntimeVersionsOperations operations - :vartype runtime_versions: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.RuntimeVersionsOperations - :ivar skus: SkusOperations operations - :vartype skus: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.SkusOperations - :ivar gateways: GatewaysOperations operations - :vartype gateways: azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewaysOperations - :ivar gateway_route_configs: GatewayRouteConfigsOperations operations - :vartype gateway_route_configs: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewayRouteConfigsOperations - :ivar gateway_custom_domains: GatewayCustomDomainsOperations operations - :vartype gateway_custom_domains: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.GatewayCustomDomainsOperations - :ivar api_portals: ApiPortalsOperations operations - :vartype api_portals: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApiPortalsOperations - :ivar api_portal_custom_domains: ApiPortalCustomDomainsOperations operations - :vartype api_portal_custom_domains: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApiPortalCustomDomainsOperations - :ivar application_accelerators: ApplicationAcceleratorsOperations operations - :vartype application_accelerators: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.ApplicationAcceleratorsOperations - :ivar customized_accelerators: CustomizedAcceleratorsOperations operations - :vartype customized_accelerators: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.CustomizedAcceleratorsOperations - :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations - :vartype predefined_accelerators: - azure.mgmt.appplatform.v2024_01_01_preview.aio.operations.PredefinedAcceleratorsOperations - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :param base_url: Service URL. Default value is "https://management.azure.com". - :type base_url: str - :keyword api_version: Api Version. Default value is "2024-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: str = "https://management.azure.com", - **kwargs: Any - ) -> None: - self._config = AppPlatformManagementClientConfiguration( - credential=credential, subscription_id=subscription_id, **kwargs - ) - _policies = kwargs.pop("policies", None) - if _policies is None: - _policies = [ - policies.RequestIdPolicy(**kwargs), - self._config.headers_policy, - self._config.user_agent_policy, - self._config.proxy_policy, - policies.ContentDecodePolicy(**kwargs), - AsyncARMAutoResourceProviderRegistrationPolicy(), - self._config.redirect_policy, - self._config.retry_policy, - self._config.authentication_policy, - self._config.custom_hook_policy, - self._config.logging_policy, - policies.DistributedTracingPolicy(**kwargs), - policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, - self._config.http_logging_policy, - ] - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) - - client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - self._serialize.client_side_validation = False - self.services = ServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview") - self.eureka_servers = EurekaServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.config_servers = ConfigServersOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.configuration_services = ConfigurationServicesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.service_registries = ServiceRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.application_live_views = ApplicationLiveViewsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.dev_tool_portals = DevToolPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.container_registries = ContainerRegistriesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.build_service = BuildServiceOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.buildpack_binding = BuildpackBindingOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.build_service_builder = BuildServiceBuilderOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.build_service_agent_pool = BuildServiceAgentPoolOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.monitoring_settings = MonitoringSettingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.apps = AppsOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview") - self.bindings = BindingsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.storages = StoragesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.certificates = CertificatesOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.custom_domains = CustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.deployments = DeploymentsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.runtime_versions = RuntimeVersionsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview") - self.gateways = GatewaysOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.gateway_route_configs = GatewayRouteConfigsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.gateway_custom_domains = GatewayCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.api_portals = ApiPortalsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.api_portal_custom_domains = ApiPortalCustomDomainsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.application_accelerators = ApplicationAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.customized_accelerators = CustomizedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - self.predefined_accelerators = PredefinedAcceleratorsOperations( - self._client, self._config, self._serialize, self._deserialize, "2024-01-01-preview" - ) - - def _send_request( - self, request: HttpRequest, *, stream: bool = False, **kwargs: Any - ) -> Awaitable[AsyncHttpResponse]: - """Runs the network request through the client's chained policies. - - >>> from azure.core.rest import HttpRequest - >>> request = HttpRequest("GET", "https://www.example.org/") - - >>> response = await client._send_request(request) - - - For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request - - :param request: The network request you want to make. Required. - :type request: ~azure.core.rest.HttpRequest - :keyword bool stream: Whether the response payload will be streamed. Defaults to False. - :return: The response of your network call. Does not do error handling on your response. - :rtype: ~azure.core.rest.AsyncHttpResponse - """ - - request_copy = deepcopy(request) - request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "AppPlatformManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details: Any) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_configuration.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_configuration.py deleted file mode 100644 index 5c113976459..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_configuration.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, TYPE_CHECKING - -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy - -from .._version import VERSION - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - - -class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long - """Configuration for AppPlatformManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. Required. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. Required. - :type subscription_id: str - :keyword api_version: Api Version. Default value is "2024-01-01-preview". Note that overriding - this default value may result in unsupported behavior. - :paramtype api_version: str - """ - - def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - api_version: str = kwargs.pop("api_version", "2024-01-01-preview") - - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = api_version - self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) - kwargs.setdefault("sdk_moniker", "mgmt-appplatform/{}".format(VERSION)) - self.polling_interval = kwargs.get("polling_interval", 30) - self._configure(**kwargs) - - def _configure(self, **kwargs: Any) -> None: - self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) - self.authentication_policy = kwargs.get("authentication_policy") - if self.credential and not self.authentication_policy: - self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( - self.credential, *self.credential_scopes, **kwargs - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index 6b7baa3a7b7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portal_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portals_operations.py deleted file mode 100644 index 4d78b3a3ae6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_api_portals_operations.py +++ /dev/null @@ -1,675 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._api_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apms_operations.py deleted file mode 100644 index 779867bfc67..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apms_operations.py +++ /dev/null @@ -1,596 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apms_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_list_secret_keys_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_accelerators_operations.py deleted file mode 100644 index 073b7211df4..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,537 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationAcceleratorResource or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_live_views_operations.py deleted file mode 100644 index 634de7dfda8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_application_live_views_operations.py +++ /dev/null @@ -1,535 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._application_live_views_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ApplicationLiveViewResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apps_operations.py deleted file mode 100644 index c97d7813a11..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_apps_operations.py +++ /dev/null @@ -1,1171 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._apps_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_get_resource_upload_url_request, - build_list_request, - build_set_active_deployments_request, - build_update_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncIterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of AsyncLROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_bindings_operations.py deleted file mode 100644 index a7e5356e4dd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_bindings_operations.py +++ /dev/null @@ -1,778 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._bindings_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index aa08a44a937..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,444 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_agent_pool_operations import ( - build_get_request, - build_list_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_builder_operations.py deleted file mode 100644 index 45f9e49381d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,618 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_builder_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_deployments_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_operations.py deleted file mode 100644 index 5b98cd8b1fd..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_build_service_operations.py +++ /dev/null @@ -1,1431 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._build_service_operations import ( - build_create_or_update_build_request, - build_create_or_update_request, - build_delete_build_request, - build_get_build_request, - build_get_build_result_log_request, - build_get_build_result_request, - build_get_build_service_request, - build_get_resource_upload_url_request, - build_get_supported_buildpack_request, - build_get_supported_stack_request, - build_list_build_results_request, - build_list_build_services_request, - build_list_builds_request, - build_list_supported_buildpacks_request, - build_list_supported_stacks_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_buildpack_binding_operations.py deleted file mode 100644 index 50d388460c1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,685 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._buildpack_binding_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either BuildpackBindingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_certificates_operations.py deleted file mode 100644 index 80706a2ea7b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_certificates_operations.py +++ /dev/null @@ -1,533 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._certificates_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_config_servers_operations.py deleted file mode 100644 index f22553c4acc..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_config_servers_operations.py +++ /dev/null @@ -1,720 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._config_servers_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigServerSettingsValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_configuration_services_operations.py deleted file mode 100644 index 185f1c6a9fb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_configuration_services_operations.py +++ /dev/null @@ -1,967 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._configuration_services_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, - build_validate_resource_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_container_registries_operations.py deleted file mode 100644 index a11017b70d8..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_container_registries_operations.py +++ /dev/null @@ -1,756 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._container_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ContainerRegistryValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_custom_domains_operations.py deleted file mode 100644 index c24a618da73..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_custom_domains_operations.py +++ /dev/null @@ -1,779 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_customized_accelerators_operations.py deleted file mode 100644 index b63d71bda8a..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._customized_accelerators_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, - build_validate_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _validate_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: An instance of AsyncLROPoller that returns either CustomizedAcceleratorValidateResult - or the result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - properties=properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.CustomizedAcceleratorValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.CustomizedAcceleratorValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_deployments_operations.py deleted file mode 100644 index 47692f9e724..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_deployments_operations.py +++ /dev/null @@ -1,2327 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._deployments_operations import ( - build_create_or_update_request, - build_delete_request, - build_disable_remote_debugging_request, - build_enable_remote_debugging_request, - build_generate_heap_dump_request, - build_generate_thread_dump_request, - build_get_log_file_url_request, - build_get_remote_debugging_config_request, - build_get_request, - build_list_for_cluster_request, - build_list_request, - build_restart_request, - build_start_jfr_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, - resource_group_name: str, - service_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> AsyncIterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of AsyncLROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_dev_tool_portals_operations.py deleted file mode 100644 index d72915fe417..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,535 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._dev_tool_portals_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either DevToolPortalResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_eureka_servers_operations.py deleted file mode 100644 index ee40b6ed203..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,589 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._eureka_servers_operations import ( - build_get_request, - build_list_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either EurekaServerResource or the result - of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index c2cda1e6d4e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,555 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_custom_domains_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_route_configs_operations.py deleted file mode 100644 index 4211b6f3be5..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateway_route_configs_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayRouteConfigResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateways_operations.py deleted file mode 100644 index e9241b3f935..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_gateways_operations.py +++ /dev/null @@ -1,1066 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._gateways_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_env_secrets_request, - build_list_request, - build_restart_request, - build_update_capacity_request, - build_validate_domain_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of AsyncLROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace_async - async def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_monitoring_settings_operations.py deleted file mode 100644 index 3352d0d535e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,519 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._monitoring_settings_operations import ( - build_get_request, - build_update_patch_request, - build_update_put_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either MonitoringSettingResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_operations.py deleted file mode 100644 index da9d89541b7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_operations.py +++ /dev/null @@ -1,132 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_predefined_accelerators_operations.py deleted file mode 100644 index ff27283a7d6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,469 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._predefined_accelerators_operations import ( - build_disable_request, - build_enable_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> AsyncIterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_runtime_versions_operations.py deleted file mode 100644 index 66def19d4fb..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,102 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._runtime_versions_operations import build_list_runtime_versions_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_service_registries_operations.py deleted file mode 100644 index 9cb63fa574d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_service_registries_operations.py +++ /dev/null @@ -1,436 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._service_registries_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either ServiceRegistryResource or the - result of cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_services_operations.py deleted file mode 100644 index 1b54d2d9253..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_services_operations.py +++ /dev/null @@ -1,2122 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._services_operations import ( - build_check_name_availability_request, - build_create_or_update_request, - build_delete_request, - build_disable_apm_globally_request, - build_disable_test_endpoint_request, - build_enable_apm_globally_request, - build_enable_test_endpoint_request, - build_flush_vnet_dns_setting_request, - build_get_request, - build_list_by_subscription_request, - build_list_globally_enabled_apms_request, - build_list_request, - build_list_supported_apm_types_request, - build_list_supported_server_versions_request, - build_list_test_keys_request, - build_regenerate_test_key_request, - build_start_request, - build_stop_request, - build_update_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of AsyncLROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace_async - async def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace_async - async def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def enable_test_endpoint( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> AsyncLROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace_async - async def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace_async - async def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - async def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference or IO[bytes] - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast( - AsyncPollingMethod, - AsyncARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs), - ) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) - - @distributed_trace - def list_supported_server_versions( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.SupportedServerVersion"]: - """Lists all of the available server versions supported by Microsoft.AppPlatform provider. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedServerVersion or the result of - cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedServerVersion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedServerVersions] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_server_versions_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedServerVersions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_skus_operations.py deleted file mode 100644 index ff6cc606ed9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_skus_operations.py +++ /dev/null @@ -1,133 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._skus_operations import build_list_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_storages_operations.py deleted file mode 100644 index 8ce932570fe..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/aio/operations/_storages_operations.py +++ /dev/null @@ -1,532 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse -from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling - -from ... import models as _models -from ..._vendor import _convert_request -from ...operations._storages_operations import ( - build_create_or_update_request, - build_delete_request, - build_get_request, - build_list_request, -) - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.aio.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace_async - async def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace_async - async def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> AsyncLROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of AsyncLROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - async def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace_async - async def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> AsyncLROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = await self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) - else: - polling_method = polling - if cont_token: - return AsyncLROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> AsyncIterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/__init__.py deleted file mode 100644 index 4540a6d22c6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/__init__.py +++ /dev/null @@ -1,647 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._models_py3 import AcceleratorAuthSetting -from ._models_py3 import AcceleratorBasicAuthSetting -from ._models_py3 import AcceleratorGitRepository -from ._models_py3 import AcceleratorPublicSetting -from ._models_py3 import AcceleratorSshSetting -from ._models_py3 import ActiveDeploymentCollection -from ._models_py3 import ApiPortalCustomDomainProperties -from ._models_py3 import ApiPortalCustomDomainResource -from ._models_py3 import ApiPortalCustomDomainResourceCollection -from ._models_py3 import ApiPortalInstance -from ._models_py3 import ApiPortalProperties -from ._models_py3 import ApiPortalResource -from ._models_py3 import ApiPortalResourceCollection -from ._models_py3 import ApiPortalResourceRequests -from ._models_py3 import ApmProperties -from ._models_py3 import ApmReference -from ._models_py3 import ApmResource -from ._models_py3 import ApmResourceCollection -from ._models_py3 import ApmSecretKeys -from ._models_py3 import AppResource -from ._models_py3 import AppResourceCollection -from ._models_py3 import AppResourceProperties -from ._models_py3 import AppVNetAddons -from ._models_py3 import ApplicationAcceleratorComponent -from ._models_py3 import ApplicationAcceleratorInstance -from ._models_py3 import ApplicationAcceleratorProperties -from ._models_py3 import ApplicationAcceleratorResource -from ._models_py3 import ApplicationAcceleratorResourceCollection -from ._models_py3 import ApplicationAcceleratorResourceRequests -from ._models_py3 import ApplicationInsightsAgentVersions -from ._models_py3 import ApplicationLiveViewComponent -from ._models_py3 import ApplicationLiveViewInstance -from ._models_py3 import ApplicationLiveViewProperties -from ._models_py3 import ApplicationLiveViewResource -from ._models_py3 import ApplicationLiveViewResourceCollection -from ._models_py3 import ApplicationLiveViewResourceRequests -from ._models_py3 import AvailableOperations -from ._models_py3 import AvailableRuntimeVersions -from ._models_py3 import AzureFileVolume -from ._models_py3 import BindingResource -from ._models_py3 import BindingResourceCollection -from ._models_py3 import BindingResourceProperties -from ._models_py3 import Build -from ._models_py3 import BuildCollection -from ._models_py3 import BuildProperties -from ._models_py3 import BuildResourceRequests -from ._models_py3 import BuildResult -from ._models_py3 import BuildResultCollection -from ._models_py3 import BuildResultLog -from ._models_py3 import BuildResultProperties -from ._models_py3 import BuildResultUserSourceInfo -from ._models_py3 import BuildService -from ._models_py3 import BuildServiceAgentPoolProperties -from ._models_py3 import BuildServiceAgentPoolResource -from ._models_py3 import BuildServiceAgentPoolResourceCollection -from ._models_py3 import BuildServiceAgentPoolSizeProperties -from ._models_py3 import BuildServiceCollection -from ._models_py3 import BuildServiceProperties -from ._models_py3 import BuildServicePropertiesResourceRequests -from ._models_py3 import BuildStageProperties -from ._models_py3 import BuilderProperties -from ._models_py3 import BuilderResource -from ._models_py3 import BuilderResourceCollection -from ._models_py3 import BuildpackBindingLaunchProperties -from ._models_py3 import BuildpackBindingProperties -from ._models_py3 import BuildpackBindingResource -from ._models_py3 import BuildpackBindingResourceCollection -from ._models_py3 import BuildpackProperties -from ._models_py3 import BuildpacksGroupProperties -from ._models_py3 import CertificateProperties -from ._models_py3 import CertificateReference -from ._models_py3 import CertificateResource -from ._models_py3 import CertificateResourceCollection -from ._models_py3 import CloudErrorBody -from ._models_py3 import ClusterResourceProperties -from ._models_py3 import ConfigServerGitProperty -from ._models_py3 import ConfigServerProperties -from ._models_py3 import ConfigServerResource -from ._models_py3 import ConfigServerSettings -from ._models_py3 import ConfigServerSettingsErrorRecord -from ._models_py3 import ConfigServerSettingsValidateResult -from ._models_py3 import ConfigurationServiceGitProperty -from ._models_py3 import ConfigurationServiceGitPropertyValidateResult -from ._models_py3 import ConfigurationServiceGitRepository -from ._models_py3 import ConfigurationServiceInstance -from ._models_py3 import ConfigurationServiceProperties -from ._models_py3 import ConfigurationServiceResource -from ._models_py3 import ConfigurationServiceResourceCollection -from ._models_py3 import ConfigurationServiceResourceRequests -from ._models_py3 import ConfigurationServiceSettings -from ._models_py3 import ConfigurationServiceSettingsValidateResult -from ._models_py3 import ContainerProbeSettings -from ._models_py3 import ContainerRegistryBasicCredentials -from ._models_py3 import ContainerRegistryCredentials -from ._models_py3 import ContainerRegistryProperties -from ._models_py3 import ContainerRegistryResource -from ._models_py3 import ContainerRegistryResourceCollection -from ._models_py3 import ContainerRegistryValidateResult -from ._models_py3 import ContentCertificateProperties -from ._models_py3 import CustomContainer -from ._models_py3 import CustomContainerUserSourceInfo -from ._models_py3 import CustomDomainProperties -from ._models_py3 import CustomDomainResource -from ._models_py3 import CustomDomainResourceCollection -from ._models_py3 import CustomDomainValidatePayload -from ._models_py3 import CustomDomainValidateResult -from ._models_py3 import CustomPersistentDiskProperties -from ._models_py3 import CustomPersistentDiskResource -from ._models_py3 import CustomScaleRule -from ._models_py3 import CustomizedAcceleratorProperties -from ._models_py3 import CustomizedAcceleratorResource -from ._models_py3 import CustomizedAcceleratorResourceCollection -from ._models_py3 import CustomizedAcceleratorValidateResult -from ._models_py3 import DeploymentInstance -from ._models_py3 import DeploymentList -from ._models_py3 import DeploymentResource -from ._models_py3 import DeploymentResourceCollection -from ._models_py3 import DeploymentResourceProperties -from ._models_py3 import DeploymentSettings -from ._models_py3 import DevToolPortalComponent -from ._models_py3 import DevToolPortalFeatureDetail -from ._models_py3 import DevToolPortalFeatureSettings -from ._models_py3 import DevToolPortalInstance -from ._models_py3 import DevToolPortalProperties -from ._models_py3 import DevToolPortalResource -from ._models_py3 import DevToolPortalResourceCollection -from ._models_py3 import DevToolPortalResourceRequests -from ._models_py3 import DevToolPortalSsoProperties -from ._models_py3 import DiagnosticParameters -from ._models_py3 import Error -from ._models_py3 import EurekaServerProperties -from ._models_py3 import EurekaServerResource -from ._models_py3 import EurekaServerResourceCollection -from ._models_py3 import ExecAction -from ._models_py3 import GatewayApiMetadataProperties -from ._models_py3 import GatewayApiRoute -from ._models_py3 import GatewayCorsProperties -from ._models_py3 import GatewayCustomDomainProperties -from ._models_py3 import GatewayCustomDomainResource -from ._models_py3 import GatewayCustomDomainResourceCollection -from ._models_py3 import GatewayInstance -from ._models_py3 import GatewayLocalResponseCachePerInstanceProperties -from ._models_py3 import GatewayLocalResponseCachePerRouteProperties -from ._models_py3 import GatewayOperatorProperties -from ._models_py3 import GatewayOperatorResourceRequests -from ._models_py3 import GatewayProperties -from ._models_py3 import GatewayPropertiesClientAuth -from ._models_py3 import GatewayPropertiesEnvironmentVariables -from ._models_py3 import GatewayResource -from ._models_py3 import GatewayResourceCollection -from ._models_py3 import GatewayResourceRequests -from ._models_py3 import GatewayResponseCacheProperties -from ._models_py3 import GatewayRouteConfigOpenApiProperties -from ._models_py3 import GatewayRouteConfigProperties -from ._models_py3 import GatewayRouteConfigResource -from ._models_py3 import GatewayRouteConfigResourceCollection -from ._models_py3 import GitPatternRepository -from ._models_py3 import GloballyEnabledApms -from ._models_py3 import HTTPGetAction -from ._models_py3 import HttpScaleRule -from ._models_py3 import ImageRegistryCredential -from ._models_py3 import IngressConfig -from ._models_py3 import IngressSettings -from ._models_py3 import IngressSettingsClientAuth -from ._models_py3 import JarUploadedUserSourceInfo -from ._models_py3 import KeyVaultCertificateProperties -from ._models_py3 import LoadedCertificate -from ._models_py3 import LogFileUrlResponse -from ._models_py3 import LogSpecification -from ._models_py3 import MaintenanceScheduleConfiguration -from ._models_py3 import ManagedIdentityProperties -from ._models_py3 import MarketplaceResource -from ._models_py3 import MetricDimension -from ._models_py3 import MetricSpecification -from ._models_py3 import MonitoringSettingProperties -from ._models_py3 import MonitoringSettingResource -from ._models_py3 import NameAvailability -from ._models_py3 import NameAvailabilityParameters -from ._models_py3 import NetCoreZipUploadedUserSourceInfo -from ._models_py3 import NetworkProfile -from ._models_py3 import NetworkProfileOutboundIPs -from ._models_py3 import OperationDetail -from ._models_py3 import OperationDisplay -from ._models_py3 import OperationProperties -from ._models_py3 import PersistentDisk -from ._models_py3 import PredefinedAcceleratorProperties -from ._models_py3 import PredefinedAcceleratorResource -from ._models_py3 import PredefinedAcceleratorResourceCollection -from ._models_py3 import Probe -from ._models_py3 import ProbeAction -from ._models_py3 import ProxyResource -from ._models_py3 import QueueScaleRule -from ._models_py3 import RegenerateTestKeyRequestPayload -from ._models_py3 import RemoteDebugging -from ._models_py3 import RemoteDebuggingPayload -from ._models_py3 import RequiredTraffic -from ._models_py3 import Resource -from ._models_py3 import ResourceRequests -from ._models_py3 import ResourceSku -from ._models_py3 import ResourceSkuCapabilities -from ._models_py3 import ResourceSkuCollection -from ._models_py3 import ResourceSkuLocationInfo -from ._models_py3 import ResourceSkuRestrictionInfo -from ._models_py3 import ResourceSkuRestrictions -from ._models_py3 import ResourceSkuZoneDetails -from ._models_py3 import ResourceUploadDefinition -from ._models_py3 import Scale -from ._models_py3 import ScaleRule -from ._models_py3 import ScaleRuleAuth -from ._models_py3 import Secret -from ._models_py3 import ServiceRegistryInstance -from ._models_py3 import ServiceRegistryProperties -from ._models_py3 import ServiceRegistryResource -from ._models_py3 import ServiceRegistryResourceCollection -from ._models_py3 import ServiceRegistryResourceRequests -from ._models_py3 import ServiceResource -from ._models_py3 import ServiceResourceList -from ._models_py3 import ServiceSpecification -from ._models_py3 import ServiceVNetAddons -from ._models_py3 import Sku -from ._models_py3 import SkuCapacity -from ._models_py3 import SkuObject -from ._models_py3 import SourceUploadedUserSourceInfo -from ._models_py3 import SsoProperties -from ._models_py3 import StackProperties -from ._models_py3 import StorageAccount -from ._models_py3 import StorageProperties -from ._models_py3 import StorageResource -from ._models_py3 import StorageResourceCollection -from ._models_py3 import SupportedApmType -from ._models_py3 import SupportedApmTypes -from ._models_py3 import SupportedBuildpackResource -from ._models_py3 import SupportedBuildpackResourceProperties -from ._models_py3 import SupportedBuildpacksCollection -from ._models_py3 import SupportedRuntimeVersion -from ._models_py3 import SupportedServerVersion -from ._models_py3 import SupportedServerVersions -from ._models_py3 import SupportedStackResource -from ._models_py3 import SupportedStackResourceProperties -from ._models_py3 import SupportedStacksCollection -from ._models_py3 import SystemData -from ._models_py3 import TCPSocketAction -from ._models_py3 import TcpScaleRule -from ._models_py3 import TemporaryDisk -from ._models_py3 import TestKeys -from ._models_py3 import TrackedResource -from ._models_py3 import TriggeredBuildResult -from ._models_py3 import UploadedUserSourceInfo -from ._models_py3 import UserAssignedManagedIdentity -from ._models_py3 import UserSourceInfo -from ._models_py3 import ValidationMessages -from ._models_py3 import WarUploadedUserSourceInfo -from ._models_py3 import WeeklyMaintenanceScheduleConfiguration - -from ._app_platform_management_client_enums import ActionType -from ._app_platform_management_client_enums import ApiPortalApiTryOutEnabledState -from ._app_platform_management_client_enums import ApiPortalProvisioningState -from ._app_platform_management_client_enums import ApmProvisioningState -from ._app_platform_management_client_enums import ApmType -from ._app_platform_management_client_enums import AppResourceProvisioningState -from ._app_platform_management_client_enums import ApplicationAcceleratorProvisioningState -from ._app_platform_management_client_enums import ApplicationLiveViewProvisioningState -from ._app_platform_management_client_enums import BackendProtocol -from ._app_platform_management_client_enums import BindingType -from ._app_platform_management_client_enums import BuildProvisioningState -from ._app_platform_management_client_enums import BuildResultProvisioningState -from ._app_platform_management_client_enums import BuildServiceProvisioningState -from ._app_platform_management_client_enums import BuilderProvisioningState -from ._app_platform_management_client_enums import BuildpackBindingProvisioningState -from ._app_platform_management_client_enums import CertificateResourceProvisioningState -from ._app_platform_management_client_enums import ConfigServerEnabledState -from ._app_platform_management_client_enums import ConfigServerState -from ._app_platform_management_client_enums import ConfigurationServiceGeneration -from ._app_platform_management_client_enums import ConfigurationServiceProvisioningState -from ._app_platform_management_client_enums import ContainerRegistryProvisioningState -from ._app_platform_management_client_enums import CreatedByType -from ._app_platform_management_client_enums import CustomDomainResourceProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorProvisioningState -from ._app_platform_management_client_enums import CustomizedAcceleratorType -from ._app_platform_management_client_enums import CustomizedAcceleratorValidateResultState -from ._app_platform_management_client_enums import DeploymentResourceProvisioningState -from ._app_platform_management_client_enums import DeploymentResourceStatus -from ._app_platform_management_client_enums import DevToolPortalFeatureState -from ._app_platform_management_client_enums import DevToolPortalProvisioningState -from ._app_platform_management_client_enums import EurekaServerEnabledState -from ._app_platform_management_client_enums import EurekaServerState -from ._app_platform_management_client_enums import Frequency -from ._app_platform_management_client_enums import GatewayCertificateVerification -from ._app_platform_management_client_enums import GatewayProvisioningState -from ._app_platform_management_client_enums import GatewayRouteConfigProtocol -from ._app_platform_management_client_enums import GitImplementation -from ._app_platform_management_client_enums import HTTPSchemeType -from ._app_platform_management_client_enums import KPackBuildStageProvisioningState -from ._app_platform_management_client_enums import KeyVaultCertificateAutoSync -from ._app_platform_management_client_enums import LastModifiedByType -from ._app_platform_management_client_enums import ManagedIdentityType -from ._app_platform_management_client_enums import MonitoringSettingState -from ._app_platform_management_client_enums import PowerState -from ._app_platform_management_client_enums import PredefinedAcceleratorProvisioningState -from ._app_platform_management_client_enums import PredefinedAcceleratorState -from ._app_platform_management_client_enums import ProbeActionType -from ._app_platform_management_client_enums import ProvisioningState -from ._app_platform_management_client_enums import ResourceSkuRestrictionsReasonCode -from ._app_platform_management_client_enums import ResourceSkuRestrictionsType -from ._app_platform_management_client_enums import ServiceRegistryProvisioningState -from ._app_platform_management_client_enums import SessionAffinity -from ._app_platform_management_client_enums import SkuScaleType -from ._app_platform_management_client_enums import StorageType -from ._app_platform_management_client_enums import SupportedRuntimePlatform -from ._app_platform_management_client_enums import SupportedRuntimeValue -from ._app_platform_management_client_enums import TestEndpointAuthState -from ._app_platform_management_client_enums import TestKeyType -from ._app_platform_management_client_enums import TrafficDirection -from ._app_platform_management_client_enums import TriggeredBuildResultProvisioningState -from ._app_platform_management_client_enums import Type -from ._app_platform_management_client_enums import WeekDay -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "AcceleratorAuthSetting", - "AcceleratorBasicAuthSetting", - "AcceleratorGitRepository", - "AcceleratorPublicSetting", - "AcceleratorSshSetting", - "ActiveDeploymentCollection", - "ApiPortalCustomDomainProperties", - "ApiPortalCustomDomainResource", - "ApiPortalCustomDomainResourceCollection", - "ApiPortalInstance", - "ApiPortalProperties", - "ApiPortalResource", - "ApiPortalResourceCollection", - "ApiPortalResourceRequests", - "ApmProperties", - "ApmReference", - "ApmResource", - "ApmResourceCollection", - "ApmSecretKeys", - "AppResource", - "AppResourceCollection", - "AppResourceProperties", - "AppVNetAddons", - "ApplicationAcceleratorComponent", - "ApplicationAcceleratorInstance", - "ApplicationAcceleratorProperties", - "ApplicationAcceleratorResource", - "ApplicationAcceleratorResourceCollection", - "ApplicationAcceleratorResourceRequests", - "ApplicationInsightsAgentVersions", - "ApplicationLiveViewComponent", - "ApplicationLiveViewInstance", - "ApplicationLiveViewProperties", - "ApplicationLiveViewResource", - "ApplicationLiveViewResourceCollection", - "ApplicationLiveViewResourceRequests", - "AvailableOperations", - "AvailableRuntimeVersions", - "AzureFileVolume", - "BindingResource", - "BindingResourceCollection", - "BindingResourceProperties", - "Build", - "BuildCollection", - "BuildProperties", - "BuildResourceRequests", - "BuildResult", - "BuildResultCollection", - "BuildResultLog", - "BuildResultProperties", - "BuildResultUserSourceInfo", - "BuildService", - "BuildServiceAgentPoolProperties", - "BuildServiceAgentPoolResource", - "BuildServiceAgentPoolResourceCollection", - "BuildServiceAgentPoolSizeProperties", - "BuildServiceCollection", - "BuildServiceProperties", - "BuildServicePropertiesResourceRequests", - "BuildStageProperties", - "BuilderProperties", - "BuilderResource", - "BuilderResourceCollection", - "BuildpackBindingLaunchProperties", - "BuildpackBindingProperties", - "BuildpackBindingResource", - "BuildpackBindingResourceCollection", - "BuildpackProperties", - "BuildpacksGroupProperties", - "CertificateProperties", - "CertificateReference", - "CertificateResource", - "CertificateResourceCollection", - "CloudErrorBody", - "ClusterResourceProperties", - "ConfigServerGitProperty", - "ConfigServerProperties", - "ConfigServerResource", - "ConfigServerSettings", - "ConfigServerSettingsErrorRecord", - "ConfigServerSettingsValidateResult", - "ConfigurationServiceGitProperty", - "ConfigurationServiceGitPropertyValidateResult", - "ConfigurationServiceGitRepository", - "ConfigurationServiceInstance", - "ConfigurationServiceProperties", - "ConfigurationServiceResource", - "ConfigurationServiceResourceCollection", - "ConfigurationServiceResourceRequests", - "ConfigurationServiceSettings", - "ConfigurationServiceSettingsValidateResult", - "ContainerProbeSettings", - "ContainerRegistryBasicCredentials", - "ContainerRegistryCredentials", - "ContainerRegistryProperties", - "ContainerRegistryResource", - "ContainerRegistryResourceCollection", - "ContainerRegistryValidateResult", - "ContentCertificateProperties", - "CustomContainer", - "CustomContainerUserSourceInfo", - "CustomDomainProperties", - "CustomDomainResource", - "CustomDomainResourceCollection", - "CustomDomainValidatePayload", - "CustomDomainValidateResult", - "CustomPersistentDiskProperties", - "CustomPersistentDiskResource", - "CustomScaleRule", - "CustomizedAcceleratorProperties", - "CustomizedAcceleratorResource", - "CustomizedAcceleratorResourceCollection", - "CustomizedAcceleratorValidateResult", - "DeploymentInstance", - "DeploymentList", - "DeploymentResource", - "DeploymentResourceCollection", - "DeploymentResourceProperties", - "DeploymentSettings", - "DevToolPortalComponent", - "DevToolPortalFeatureDetail", - "DevToolPortalFeatureSettings", - "DevToolPortalInstance", - "DevToolPortalProperties", - "DevToolPortalResource", - "DevToolPortalResourceCollection", - "DevToolPortalResourceRequests", - "DevToolPortalSsoProperties", - "DiagnosticParameters", - "Error", - "EurekaServerProperties", - "EurekaServerResource", - "EurekaServerResourceCollection", - "ExecAction", - "GatewayApiMetadataProperties", - "GatewayApiRoute", - "GatewayCorsProperties", - "GatewayCustomDomainProperties", - "GatewayCustomDomainResource", - "GatewayCustomDomainResourceCollection", - "GatewayInstance", - "GatewayLocalResponseCachePerInstanceProperties", - "GatewayLocalResponseCachePerRouteProperties", - "GatewayOperatorProperties", - "GatewayOperatorResourceRequests", - "GatewayProperties", - "GatewayPropertiesClientAuth", - "GatewayPropertiesEnvironmentVariables", - "GatewayResource", - "GatewayResourceCollection", - "GatewayResourceRequests", - "GatewayResponseCacheProperties", - "GatewayRouteConfigOpenApiProperties", - "GatewayRouteConfigProperties", - "GatewayRouteConfigResource", - "GatewayRouteConfigResourceCollection", - "GitPatternRepository", - "GloballyEnabledApms", - "HTTPGetAction", - "HttpScaleRule", - "ImageRegistryCredential", - "IngressConfig", - "IngressSettings", - "IngressSettingsClientAuth", - "JarUploadedUserSourceInfo", - "KeyVaultCertificateProperties", - "LoadedCertificate", - "LogFileUrlResponse", - "LogSpecification", - "MaintenanceScheduleConfiguration", - "ManagedIdentityProperties", - "MarketplaceResource", - "MetricDimension", - "MetricSpecification", - "MonitoringSettingProperties", - "MonitoringSettingResource", - "NameAvailability", - "NameAvailabilityParameters", - "NetCoreZipUploadedUserSourceInfo", - "NetworkProfile", - "NetworkProfileOutboundIPs", - "OperationDetail", - "OperationDisplay", - "OperationProperties", - "PersistentDisk", - "PredefinedAcceleratorProperties", - "PredefinedAcceleratorResource", - "PredefinedAcceleratorResourceCollection", - "Probe", - "ProbeAction", - "ProxyResource", - "QueueScaleRule", - "RegenerateTestKeyRequestPayload", - "RemoteDebugging", - "RemoteDebuggingPayload", - "RequiredTraffic", - "Resource", - "ResourceRequests", - "ResourceSku", - "ResourceSkuCapabilities", - "ResourceSkuCollection", - "ResourceSkuLocationInfo", - "ResourceSkuRestrictionInfo", - "ResourceSkuRestrictions", - "ResourceSkuZoneDetails", - "ResourceUploadDefinition", - "Scale", - "ScaleRule", - "ScaleRuleAuth", - "Secret", - "ServiceRegistryInstance", - "ServiceRegistryProperties", - "ServiceRegistryResource", - "ServiceRegistryResourceCollection", - "ServiceRegistryResourceRequests", - "ServiceResource", - "ServiceResourceList", - "ServiceSpecification", - "ServiceVNetAddons", - "Sku", - "SkuCapacity", - "SkuObject", - "SourceUploadedUserSourceInfo", - "SsoProperties", - "StackProperties", - "StorageAccount", - "StorageProperties", - "StorageResource", - "StorageResourceCollection", - "SupportedApmType", - "SupportedApmTypes", - "SupportedBuildpackResource", - "SupportedBuildpackResourceProperties", - "SupportedBuildpacksCollection", - "SupportedRuntimeVersion", - "SupportedServerVersion", - "SupportedServerVersions", - "SupportedStackResource", - "SupportedStackResourceProperties", - "SupportedStacksCollection", - "SystemData", - "TCPSocketAction", - "TcpScaleRule", - "TemporaryDisk", - "TestKeys", - "TrackedResource", - "TriggeredBuildResult", - "UploadedUserSourceInfo", - "UserAssignedManagedIdentity", - "UserSourceInfo", - "ValidationMessages", - "WarUploadedUserSourceInfo", - "WeeklyMaintenanceScheduleConfiguration", - "ActionType", - "ApiPortalApiTryOutEnabledState", - "ApiPortalProvisioningState", - "ApmProvisioningState", - "ApmType", - "AppResourceProvisioningState", - "ApplicationAcceleratorProvisioningState", - "ApplicationLiveViewProvisioningState", - "BackendProtocol", - "BindingType", - "BuildProvisioningState", - "BuildResultProvisioningState", - "BuildServiceProvisioningState", - "BuilderProvisioningState", - "BuildpackBindingProvisioningState", - "CertificateResourceProvisioningState", - "ConfigServerEnabledState", - "ConfigServerState", - "ConfigurationServiceGeneration", - "ConfigurationServiceProvisioningState", - "ContainerRegistryProvisioningState", - "CreatedByType", - "CustomDomainResourceProvisioningState", - "CustomizedAcceleratorProvisioningState", - "CustomizedAcceleratorType", - "CustomizedAcceleratorValidateResultState", - "DeploymentResourceProvisioningState", - "DeploymentResourceStatus", - "DevToolPortalFeatureState", - "DevToolPortalProvisioningState", - "EurekaServerEnabledState", - "EurekaServerState", - "Frequency", - "GatewayCertificateVerification", - "GatewayProvisioningState", - "GatewayRouteConfigProtocol", - "GitImplementation", - "HTTPSchemeType", - "KPackBuildStageProvisioningState", - "KeyVaultCertificateAutoSync", - "LastModifiedByType", - "ManagedIdentityType", - "MonitoringSettingState", - "PowerState", - "PredefinedAcceleratorProvisioningState", - "PredefinedAcceleratorState", - "ProbeActionType", - "ProvisioningState", - "ResourceSkuRestrictionsReasonCode", - "ResourceSkuRestrictionsType", - "ServiceRegistryProvisioningState", - "SessionAffinity", - "SkuScaleType", - "StorageType", - "SupportedRuntimePlatform", - "SupportedRuntimeValue", - "TestEndpointAuthState", - "TestKeyType", - "TrafficDirection", - "TriggeredBuildResultProvisioningState", - "Type", - "WeekDay", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_app_platform_management_client_enums.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_app_platform_management_client_enums.py deleted file mode 100644 index 59607833f09..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_app_platform_management_client_enums.py +++ /dev/null @@ -1,577 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum -from azure.core import CaseInsensitiveEnumMeta - - -class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" - - INTERNAL = "Internal" - - -class ApiPortalApiTryOutEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try - out the API by sending requests and viewing responses in API portal. When disabled, users - cannot try out the API. - """ - - ENABLED = "Enabled" - DISABLED = "Disabled" - - -class ApiPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the API portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ApmProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the APM.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class ApmType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of application performance monitoring.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - - -class ApplicationAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the application accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class ApplicationLiveViewProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Live View.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class AppResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the App.""" - - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CREATING = "Creating" - UPDATING = "Updating" - DELETING = "Deleting" - - -class BackendProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """How ingress should communicate with this app backend service.""" - - GRPC = "GRPC" - DEFAULT = "Default" - - -class BindingType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Buildpack Binding Type.""" - - APPLICATION_INSIGHTS = "ApplicationInsights" - APACHE_SKY_WALKING = "ApacheSkyWalking" - APP_DYNAMICS = "AppDynamics" - DYNATRACE = "Dynatrace" - NEW_RELIC = "NewRelic" - ELASTIC_APM = "ElasticAPM" - CA_CERTIFICATES = "CACertificates" - - -class BuilderProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Builder provision status.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildpackBindingProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Buildpack Binding.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class BuildServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the KPack build service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CertificateResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Certificate.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ConfigServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the config server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the config server.""" - DISABLED = "Disabled" - """Disable the config server.""" - - -class ConfigServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the config server.""" - - NOT_AVAILABLE = "NotAvailable" - DELETED = "Deleted" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class ConfigurationServiceGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The generation of the Application Configuration Service.""" - - GEN1 = "Gen1" - GEN2 = "Gen2" - - -class ConfigurationServiceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Application Configuration Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class ContainerRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Container Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that created the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class CustomDomainResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Domain.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class CustomizedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class CustomizedAcceleratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the customized accelerator.""" - - ACCELERATOR = "Accelerator" - FRAGMENT = "Fragment" - - -class CustomizedAcceleratorValidateResultState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the customized accelerator validation result.""" - - VALID = "Valid" - """Customized accelerator properties are valid.""" - INVALID = "Invalid" - """Customized accelerator properties are invalid.""" - - -class DeploymentResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Deployment.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class DeploymentResourceStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Status of the Deployment.""" - - STOPPED = "Stopped" - RUNNING = "Running" - - -class DevToolPortalFeatureState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the plugin.""" - - ENABLED = "Enabled" - """Enable the plugin in Dev Tool Portal.""" - DISABLED = "Disabled" - """Disable the plugin in Dev Tool Portal.""" - - -class DevToolPortalProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Dev Tool Portal.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class EurekaServerEnabledState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Enabled state of the eureka server. This is only used in Consumption tier.""" - - ENABLED = "Enabled" - """Enable the eureka server.""" - DISABLED = "Disabled" - """Disable the eureka server.""" - - -class EurekaServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the eureka server.""" - - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - CANCELED = "Canceled" - - -class Frequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The frequency to run the maintenance job.""" - - WEEKLY = "Weekly" - - -class GatewayCertificateVerification(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Whether to enable certificate verification or not.""" - - ENABLED = "Enabled" - """Enable certificate verification in Spring Cloud Gateway.""" - DISABLED = "Disabled" - """Disable certificate verification in Spring Cloud Gateway.""" - - -class GatewayProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Spring Cloud Gateway.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class GatewayRouteConfigProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Protocol of routed Azure Spring Apps applications.""" - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class GitImplementation(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Git libraries used to support various repository providers.""" - - GO_GIT = "go-git" - LIBGIT2 = "libgit2" - - -class HTTPSchemeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. - """ - - HTTP = "HTTP" - HTTPS = "HTTPS" - - -class KeyVaultCertificateAutoSync(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Indicates whether to automatically synchronize certificate from key vault or not.""" - - DISABLED = "Disabled" - ENABLED = "Enabled" - - -class KPackBuildStageProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build stage resource.""" - - NOT_STARTED = "NotStarted" - RUNNING = "Running" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - - -class LastModifiedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of identity that last modified the resource.""" - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - - -class ManagedIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the managed identity.""" - - NONE = "None" - SYSTEM_ASSIGNED = "SystemAssigned" - USER_ASSIGNED = "UserAssigned" - SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" - - -class MonitoringSettingState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Monitoring Setting.""" - - NOT_AVAILABLE = "NotAvailable" - FAILED = "Failed" - SUCCEEDED = "Succeeded" - UPDATING = "Updating" - - -class PowerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Power state of the Service.""" - - RUNNING = "Running" - STOPPED = "Stopped" - - -class PredefinedAcceleratorProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the predefined accelerator.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - CANCELED = "Canceled" - - -class PredefinedAcceleratorState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the predefined accelerator.""" - - ENABLED = "Enabled" - """Enable the predefined accelerator.""" - DISABLED = "Disabled" - """Disable the predefined accelerator.""" - - -class ProbeActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the action to take to perform the health check.""" - - HTTP_GET_ACTION = "HTTPGetAction" - TCP_SOCKET_ACTION = "TCPSocketAction" - EXEC_ACTION = "ExecAction" - - -class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Provisioning state of the Service.""" - - CREATING = "Creating" - UPDATING = "Updating" - STARTING = "Starting" - STOPPING = "Stopping" - DELETING = "Deleting" - DELETED = "Deleted" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - MOVING = "Moving" - MOVED = "Moved" - MOVE_FAILED = "MoveFailed" - - -class ResourceSkuRestrictionsReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. - """ - - QUOTA_ID = "QuotaId" - NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription" - - -class ResourceSkuRestrictionsType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets the type of restrictions. Possible values include: 'Location', 'Zone'.""" - - LOCATION = "Location" - ZONE = "Zone" - - -class ServiceRegistryProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of the Service Registry.""" - - CREATING = "Creating" - UPDATING = "Updating" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - - -class SessionAffinity(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the affinity, set this to Cookie to enable session affinity.""" - - COOKIE = "Cookie" - NONE = "None" - - -class SkuScaleType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Gets or sets the type of the scale.""" - - NONE = "None" - MANUAL = "Manual" - AUTOMATIC = "Automatic" - - -class StorageType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the storage.""" - - STORAGE_ACCOUNT = "StorageAccount" - - -class SupportedRuntimePlatform(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The platform of this runtime version (possible values: "Java" or ".NET").""" - - JAVA = "Java" - _NET_CORE = ".NET Core" - - -class SupportedRuntimeValue(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The raw value which could be passed to deployment CRUD operations.""" - - JAVA8 = "Java_8" - JAVA11 = "Java_11" - JAVA17 = "Java_17" - JAVA21 = "Java_21" - NET_CORE31 = "NetCore_31" - - -class TestEndpointAuthState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """State of test endpoint auth.""" - - ENABLED = "Enabled" - """Enable test endpoint auth.""" - DISABLED = "Disabled" - """Disable test endpoint auth""" - - -class TestKeyType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Type of the test key.""" - - PRIMARY = "Primary" - SECONDARY = "Secondary" - - -class TrafficDirection(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The direction of required traffic.""" - - INBOUND = "Inbound" - OUTBOUND = "Outbound" - - -class TriggeredBuildResultProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The provisioning state of this build result.""" - - QUEUING = "Queuing" - BUILDING = "Building" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - DELETING = "Deleting" - CANCELED = "Canceled" - - -class Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The type of the underlying resource to mount as a persistent disk.""" - - AZURE_FILE_VOLUME = "AzureFileVolume" - - -class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The day to run the maintenance job.""" - - MONDAY = "Monday" - TUESDAY = "Tuesday" - WEDNESDAY = "Wednesday" - THURSDAY = "Thursday" - FRIDAY = "Friday" - SATURDAY = "Saturday" - SUNDAY = "Sunday" diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_models_py3.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_models_py3.py deleted file mode 100644 index 962a30c4a8c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_models_py3.py +++ /dev/null @@ -1,10897 +0,0 @@ -# coding=utf-8 -# pylint: disable=too-many-lines -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import datetime -import sys -from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union - -from ... import _serialization - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from .. import models as _models -JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object - - -class AcceleratorAuthSetting(_serialization.Model): - """Auth setting payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AcceleratorBasicAuthSetting, AcceleratorPublicSetting, AcceleratorSshSetting - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - } - - _subtype_map = { - "auth_type": { - "BasicAuth": "AcceleratorBasicAuthSetting", - "Public": "AcceleratorPublicSetting", - "SSH": "AcceleratorSshSetting", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.auth_type: Optional[str] = None - - -class AcceleratorBasicAuthSetting(AcceleratorAuthSetting): - """Auth setting for basic auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - :ivar username: Username of git repository basic auth. Required. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - """ - - _validation = { - "auth_type": {"required": True}, - "username": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__( - self, *, username: str, ca_cert_resource_id: Optional[str] = None, password: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - :keyword username: Username of git repository basic auth. Required. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - """ - super().__init__(**kwargs) - self.auth_type: str = "BasicAuth" - self.ca_cert_resource_id = ca_cert_resource_id - self.username = username - self.password = password - - -class AcceleratorGitRepository(_serialization.Model): - """AcceleratorGitRepository. - - All required parameters must be populated in order to send to server. - - :ivar url: Git repository URL for the accelerator. Required. - :vartype url: str - :ivar interval_in_seconds: Interval for checking for updates to Git or image repository. - :vartype interval_in_seconds: int - :ivar branch: Git repository branch to be used. - :vartype branch: str - :ivar commit: Git repository commit to be used. - :vartype commit: str - :ivar git_tag: Git repository tag to be used. - :vartype git_tag: str - :ivar auth_setting: Properties of the auth setting payload. Required. - :vartype auth_setting: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.AcceleratorAuthSetting - :ivar sub_path: Folder path inside the git repository to consider as the root of the - accelerator or fragment. - :vartype sub_path: str - """ - - _validation = { - "url": {"required": True}, - "auth_setting": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - "interval_in_seconds": {"key": "intervalInSeconds", "type": "int"}, - "branch": {"key": "branch", "type": "str"}, - "commit": {"key": "commit", "type": "str"}, - "git_tag": {"key": "gitTag", "type": "str"}, - "auth_setting": {"key": "authSetting", "type": "AcceleratorAuthSetting"}, - "sub_path": {"key": "subPath", "type": "str"}, - } - - def __init__( - self, - *, - url: str, - auth_setting: "_models.AcceleratorAuthSetting", - interval_in_seconds: Optional[int] = None, - branch: Optional[str] = None, - commit: Optional[str] = None, - git_tag: Optional[str] = None, - sub_path: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword url: Git repository URL for the accelerator. Required. - :paramtype url: str - :keyword interval_in_seconds: Interval for checking for updates to Git or image repository. - :paramtype interval_in_seconds: int - :keyword branch: Git repository branch to be used. - :paramtype branch: str - :keyword commit: Git repository commit to be used. - :paramtype commit: str - :keyword git_tag: Git repository tag to be used. - :paramtype git_tag: str - :keyword auth_setting: Properties of the auth setting payload. Required. - :paramtype auth_setting: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.AcceleratorAuthSetting - :keyword sub_path: Folder path inside the git repository to consider as the root of the - accelerator or fragment. - :paramtype sub_path: str - """ - super().__init__(**kwargs) - self.url = url - self.interval_in_seconds = interval_in_seconds - self.branch = branch - self.commit = commit - self.git_tag = git_tag - self.auth_setting = auth_setting - self.sub_path = sub_path - - -class AcceleratorPublicSetting(AcceleratorAuthSetting): - """Auth setting for public url. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__(self, *, ca_cert_resource_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.auth_type: str = "Public" - self.ca_cert_resource_id = ca_cert_resource_id - - -class AcceleratorSshSetting(AcceleratorAuthSetting): - """Auth setting for SSH auth. - - All required parameters must be populated in order to send to server. - - :ivar auth_type: The type of the auth setting. Required. - :vartype auth_type: str - :ivar host_key: Public SSH Key of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SSH Key algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private SSH Key algorithm of git repository. - :vartype private_key: str - """ - - _validation = { - "auth_type": {"required": True}, - } - - _attribute_map = { - "auth_type": {"key": "authType", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - } - - def __init__( - self, - *, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword host_key: Public SSH Key of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SSH Key algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private SSH Key algorithm of git repository. - :paramtype private_key: str - """ - super().__init__(**kwargs) - self.auth_type: str = "SSH" - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - - -class ActiveDeploymentCollection(_serialization.Model): - """Object that includes an array of Deployment resource name and set them as active. - - :ivar active_deployment_names: Collection of Deployment name. - :vartype active_deployment_names: list[str] - """ - - _attribute_map = { - "active_deployment_names": {"key": "activeDeploymentNames", "type": "[str]"}, - } - - def __init__(self, *, active_deployment_names: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword active_deployment_names: Collection of Deployment name. - :paramtype active_deployment_names: list[str] - """ - super().__init__(**kwargs) - self.active_deployment_names = active_deployment_names - - -class ApiPortalCustomDomainProperties(_serialization.Model): - """The properties of custom domain for API portal. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class Resource(_serialization.Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.system_data = None - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have everything other than - required location and tags. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - """ - - -class ApiPortalCustomDomainResource(ProxyResource): - """Custom domain of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: The properties of custom domain for API portal. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalCustomDomainProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.ApiPortalCustomDomainProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: The properties of custom domain for API portal. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApiPortalCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of API portal custom domain resources and a possible link for - next set. - - :ivar value: Collection of API portal custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalInstance(_serialization.Model): - """Collection of instances belong to the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the API portal instance. - :vartype name: str - :ivar status: Status of the API portal instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApiPortalProperties(_serialization.Model): - """API portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the API portal. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalProvisioningState - :ivar public: Indicates whether the API portal exposes endpoint. - :vartype public: bool - :ivar url: URL of the API portal, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :vartype gateway_ids: list[str] - :ivar source_urls: Collection of OpenAPI source URL locations. - :vartype source_urls: list[str] - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SsoProperties - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResourceRequests - :ivar instances: Collection of instances belong to API portal. - :vartype instances: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalInstance] - :ivar api_try_out_enabled_state: Indicates whether the API try-out feature is enabled or - disabled. When enabled, users can try out the API by sending requests and viewing responses in - API portal. When disabled, users cannot try out the API. Known values are: "Enabled" and - "Disabled". - :vartype api_try_out_enabled_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalApiTryOutEnabledState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "gateway_ids": {"key": "gatewayIds", "type": "[str]"}, - "source_urls": {"key": "sourceUrls", "type": "[str]"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "resource_requests": {"key": "resourceRequests", "type": "ApiPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[ApiPortalInstance]"}, - "api_try_out_enabled_state": {"key": "apiTryOutEnabledState", "type": "str"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - gateway_ids: Optional[List[str]] = None, - source_urls: Optional[List[str]] = None, - sso_properties: Optional["_models.SsoProperties"] = None, - api_try_out_enabled_state: Union[str, "_models.ApiPortalApiTryOutEnabledState"] = "Enabled", - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the API portal exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword gateway_ids: The array of resource Ids of gateway to integrate with API portal. - :paramtype gateway_ids: list[str] - :keyword source_urls: Collection of OpenAPI source URL locations. - :paramtype source_urls: list[str] - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SsoProperties - :keyword api_try_out_enabled_state: Indicates whether the API try-out feature is enabled or - disabled. When enabled, users can try out the API by sending requests and viewing responses in - API portal. When disabled, users cannot try out the API. Known values are: "Enabled" and - "Disabled". - :paramtype api_try_out_enabled_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalApiTryOutEnabledState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.gateway_ids = gateway_ids - self.source_urls = source_urls - self.sso_properties = sso_properties - self.resource_requests = None - self.instances = None - self.api_try_out_enabled_state = api_try_out_enabled_state - - -class ApiPortalResource(ProxyResource): - """API portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: API portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalProperties - :ivar sku: Sku of the API portal resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApiPortalProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApiPortalProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: API portal properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalProperties - :keyword sku: Sku of the API portal resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApiPortalResourceCollection(_serialization.Model): - """Object that includes an array of API portal resources and a possible link for next set. - - :ivar value: Collection of API portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApiPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApiPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of API portal resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApiPortalResourceRequests(_serialization.Model): - """Resource requests of the API portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each API portal instance. - :vartype cpu: str - :ivar memory: Memory allocated to each API portal instance. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class ApmProperties(_serialization.Model): - """Properties of an APM. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: APM Type. Required. - :vartype type: str - :ivar provisioning_state: State of the APM. Known values are: "Creating", "Updating", - "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmProvisioningState - :ivar properties: Non-sensitive properties for the APM. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for the APM. - :vartype secrets: dict[str, str] - """ - - _validation = { - "type": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, - *, - type: str, - properties: Optional[Dict[str, str]] = None, - secrets: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: APM Type. Required. - :paramtype type: str - :keyword properties: Non-sensitive properties for the APM. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for the APM. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.type = type - self.provisioning_state = None - self.properties = properties - self.secrets = secrets - - -class ApmReference(_serialization.Model): - """A reference to the APM. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the APM. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the APM. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class ApmResource(ProxyResource): - """APM Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of an APM. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApmProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApmProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of an APM. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApmResourceCollection(_serialization.Model): - """Object that includes an array of APM resources and a possible link for next set. - - :ivar value: Collection of APM resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApmResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ApmResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of APM resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApmSecretKeys(_serialization.Model): - """Keys of APM sensitive properties. - - :ivar value: Collection of the keys for the APM sensitive properties. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the keys for the APM sensitive properties. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class ApplicationAcceleratorComponent(_serialization.Model): - """ApplicationAcceleratorComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResourceRequests - :ivar instances: - :vartype instances: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorInstance] - """ - - _validation = { - "name": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationAcceleratorResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationAcceleratorInstance]"}, - } - - def __init__( - self, *, resource_requests: Optional["_models.ApplicationAcceleratorResourceRequests"] = None, **kwargs: Any - ) -> None: - """ - :keyword resource_requests: - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResourceRequests - """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = resource_requests - self.instances = None - - -class ApplicationAcceleratorInstance(_serialization.Model): - """ApplicationAcceleratorInstance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Accelerator instance. - :vartype name: str - :ivar status: Status of the Application Accelerator instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationAcceleratorProperties(_serialization.Model): - """Application accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the application accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorProvisioningState - :ivar components: Collection of components belong to application accelerator. - :vartype components: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationAcceleratorComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationAcceleratorResource(ProxyResource): - """Application accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Application accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorProperties - :ivar sku: Sku of the application accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.ApplicationAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Application accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorProperties - :keyword sku: Sku of the application accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class ApplicationAcceleratorResourceCollection(_serialization.Model): - """Object that includes an array of application accelerator resources and a possible link for next - set. - - :ivar value: Collection of application accelerator resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of application accelerator resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationAcceleratorResourceRequests(_serialization.Model): - """ApplicationAcceleratorResourceRequests. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each application accelerator component. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory allocated to each application accelerator component. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Instance count of the application accelerator component. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ApplicationInsightsAgentVersions(_serialization.Model): - """Application Insights agent versions properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar java: Indicates the version of application insight java agent. - :vartype java: str - """ - - _validation = { - "java": {"readonly": True}, - } - - _attribute_map = { - "java": {"key": "java", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.java = None - - -class ApplicationLiveViewComponent(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the component. - :vartype name: any - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResourceRequests - :ivar instances: Collection of instances belong to Application Live View. - :vartype instances: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "object"}, - "resource_requests": {"key": "resourceRequests", "type": "ApplicationLiveViewResourceRequests"}, - "instances": {"key": "instances", "type": "[ApplicationLiveViewInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class ApplicationLiveViewInstance(_serialization.Model): - """Collection of instances belong to the Application Live View. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Live View instance. - :vartype name: str - :ivar status: Status of the Application Live View instance. It can be Pending, Running, - Succeeded, Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ApplicationLiveViewProperties(_serialization.Model): - """Application Live View properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Live View. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewProvisioningState - :ivar components: Component details of Application Live View. - :vartype components: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewComponent] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[ApplicationLiveViewComponent]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - - -class ApplicationLiveViewResource(ProxyResource): - """Application Live View resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Application Live View properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ApplicationLiveViewProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ApplicationLiveViewProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Live View properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ApplicationLiveViewResourceCollection(_serialization.Model): - """Object that includes an array of Application Live View resources and a possible link for next - set. - - :ivar value: Collection of Application Live View resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ApplicationLiveViewResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ApplicationLiveViewResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Application Live View resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ApplicationLiveViewResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Application Live View component. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Application Live View component instance. 1 core can - be represented by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Application Live View component instance. 1 GB - can be represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Application Live View component instance. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class AppResource(ProxyResource): - """App resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the App resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResourceProperties - :ivar identity: The Managed Identity type of the app resource. - :vartype identity: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ManagedIdentityProperties - :ivar location: The GEO location of the application, always the same with its parent resource. - :vartype location: str - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "AppResourceProperties"}, - "identity": {"key": "identity", "type": "ManagedIdentityProperties"}, - "location": {"key": "location", "type": "str"}, - } - - def __init__( - self, - *, - properties: Optional["_models.AppResourceProperties"] = None, - identity: Optional["_models.ManagedIdentityProperties"] = None, - location: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the App resource. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResourceProperties - :keyword identity: The Managed Identity type of the app resource. - :paramtype identity: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ManagedIdentityProperties - :keyword location: The GEO location of the application, always the same with its parent - resource. - :paramtype location: str - """ - super().__init__(**kwargs) - self.properties = properties - self.identity = identity - self.location = location - - -class AppResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of App resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[AppResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.AppResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of App resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AppResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """App resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public: Indicates whether the App exposes public endpoint. - :vartype public: bool - :ivar url: URL of the App. - :vartype url: str - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar provisioning_state: Provisioning state of the App. Known values are: "Succeeded", - "Failed", "Creating", "Updating", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResourceProvisioningState - :ivar fqdn: Fully qualified dns Name. - :vartype fqdn: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar temporary_disk: Temporary disk settings. - :vartype temporary_disk: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TemporaryDisk - :ivar persistent_disk: Persistent disk settings. - :vartype persistent_disk: ~azure.mgmt.appplatform.v2024_01_01_preview.models.PersistentDisk - :ivar custom_persistent_disks: List of custom persistent disks. - :vartype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomPersistentDiskResource] - :ivar enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :vartype enable_end_to_end_tls: bool - :ivar loaded_certificates: Collection of loaded certificates. - :vartype loaded_certificates: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.LoadedCertificate] - :ivar vnet_addons: Additional App settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppVNetAddons - :ivar ingress_settings: App ingress settings payload. - :vartype ingress_settings: ~azure.mgmt.appplatform.v2024_01_01_preview.models.IngressSettings - :ivar secrets: Collection of auth secrets. - :vartype secrets: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.Secret] - :ivar workload_profile_name: The workload profile used for this app. Supported for Consumption - + Dedicated plan. - :vartype workload_profile_name: str - :ivar test_endpoint_auth_state: State of test endpoint auth. Known values are: "Enabled" and - "Disabled". - :vartype test_endpoint_auth_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestEndpointAuthState - """ - - _validation = { - "url": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "temporary_disk": {"key": "temporaryDisk", "type": "TemporaryDisk"}, - "persistent_disk": {"key": "persistentDisk", "type": "PersistentDisk"}, - "custom_persistent_disks": {"key": "customPersistentDisks", "type": "[CustomPersistentDiskResource]"}, - "enable_end_to_end_tls": {"key": "enableEndToEndTLS", "type": "bool"}, - "loaded_certificates": {"key": "loadedCertificates", "type": "[LoadedCertificate]"}, - "vnet_addons": {"key": "vnetAddons", "type": "AppVNetAddons"}, - "ingress_settings": {"key": "ingressSettings", "type": "IngressSettings"}, - "secrets": {"key": "secrets", "type": "[Secret]"}, - "workload_profile_name": {"key": "workloadProfileName", "type": "str"}, - "test_endpoint_auth_state": {"key": "testEndpointAuthState", "type": "str"}, - } - - def __init__( - self, - *, - public: Optional[bool] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - https_only: bool = False, - temporary_disk: Optional["_models.TemporaryDisk"] = None, - persistent_disk: Optional["_models.PersistentDisk"] = None, - custom_persistent_disks: Optional[List["_models.CustomPersistentDiskResource"]] = None, - enable_end_to_end_tls: bool = False, - loaded_certificates: Optional[List["_models.LoadedCertificate"]] = None, - vnet_addons: Optional["_models.AppVNetAddons"] = None, - ingress_settings: Optional["_models.IngressSettings"] = None, - secrets: Optional[List["_models.Secret"]] = None, - workload_profile_name: Optional[str] = None, - test_endpoint_auth_state: Union[str, "_models.TestEndpointAuthState"] = "Enabled", - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the App exposes public endpoint. - :paramtype public: bool - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword temporary_disk: Temporary disk settings. - :paramtype temporary_disk: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TemporaryDisk - :keyword persistent_disk: Persistent disk settings. - :paramtype persistent_disk: ~azure.mgmt.appplatform.v2024_01_01_preview.models.PersistentDisk - :keyword custom_persistent_disks: List of custom persistent disks. - :paramtype custom_persistent_disks: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomPersistentDiskResource] - :keyword enable_end_to_end_tls: Indicate if end to end TLS is enabled. - :paramtype enable_end_to_end_tls: bool - :keyword loaded_certificates: Collection of loaded certificates. - :paramtype loaded_certificates: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.LoadedCertificate] - :keyword vnet_addons: Additional App settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppVNetAddons - :keyword ingress_settings: App ingress settings payload. - :paramtype ingress_settings: ~azure.mgmt.appplatform.v2024_01_01_preview.models.IngressSettings - :keyword secrets: Collection of auth secrets. - :paramtype secrets: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.Secret] - :keyword workload_profile_name: The workload profile used for this app. Supported for - Consumption + Dedicated plan. - :paramtype workload_profile_name: str - :keyword test_endpoint_auth_state: State of test endpoint auth. Known values are: "Enabled" and - "Disabled". - :paramtype test_endpoint_auth_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestEndpointAuthState - """ - super().__init__(**kwargs) - self.public = public - self.url = None - self.addon_configs = addon_configs - self.provisioning_state = None - self.fqdn = None - self.https_only = https_only - self.temporary_disk = temporary_disk - self.persistent_disk = persistent_disk - self.custom_persistent_disks = custom_persistent_disks - self.enable_end_to_end_tls = enable_end_to_end_tls - self.loaded_certificates = loaded_certificates - self.vnet_addons = vnet_addons - self.ingress_settings = ingress_settings - self.secrets = secrets - self.workload_profile_name = workload_profile_name - self.test_endpoint_auth_state = test_endpoint_auth_state - - -class AppVNetAddons(_serialization.Model): - """Additional App settings in vnet injection instance. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :vartype public_endpoint: bool - :ivar public_endpoint_url: URL of the App in vnet injection instance which could be accessed - from internet. - :vartype public_endpoint_url: str - """ - - _validation = { - "public_endpoint_url": {"readonly": True}, - } - - _attribute_map = { - "public_endpoint": {"key": "publicEndpoint", "type": "bool"}, - "public_endpoint_url": {"key": "publicEndpointUrl", "type": "str"}, - } - - def __init__(self, *, public_endpoint: bool = False, **kwargs: Any) -> None: - """ - :keyword public_endpoint: Indicates whether the App in vnet injection instance exposes endpoint - which could be accessed from internet. - :paramtype public_endpoint: bool - """ - super().__init__(**kwargs) - self.public_endpoint = public_endpoint - self.public_endpoint_url = None - - -class AvailableOperations(_serialization.Model): - """Available operations of the service. - - :ivar value: Collection of available operation details. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationDetail] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[OperationDetail]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.OperationDetail"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of available operation details. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationDetail] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class AvailableRuntimeVersions(_serialization.Model): - """AvailableRuntimeVersions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of all supported runtime versions. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedRuntimeVersion] - """ - - _validation = { - "value": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedRuntimeVersion]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.value = None - - -class CustomPersistentDiskProperties(_serialization.Model): - """Custom persistent disk resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - AzureFileVolume - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - } - - _subtype_map = {"type": {"AzureFileVolume": "AzureFileVolume"}} - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.mount_path = mount_path - self.read_only = read_only - self.enable_sub_path = enable_sub_path - self.mount_options = mount_options - - -class AzureFileVolume(CustomPersistentDiskProperties): - """The properties of the Azure File volume. Azure File shares are mounted as volumes. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the underlying resource to mount as a persistent disk. Required. - "AzureFileVolume" - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.Type - :ivar mount_path: The mount path of the persistent disk. Required. - :vartype mount_path: str - :ivar read_only: Indicates whether the persistent disk is a readOnly one. - :vartype read_only: bool - :ivar enable_sub_path: If set to true, it will create and mount a dedicated directory for every - individual app instance. - :vartype enable_sub_path: bool - :ivar mount_options: These are the mount options for a persistent disk. - :vartype mount_options: list[str] - :ivar share_name: The share name of the Azure File share. - :vartype share_name: str - """ - - _validation = { - "type": {"required": True}, - "mount_path": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "mount_path": {"key": "mountPath", "type": "str"}, - "read_only": {"key": "readOnly", "type": "bool"}, - "enable_sub_path": {"key": "enableSubPath", "type": "bool"}, - "mount_options": {"key": "mountOptions", "type": "[str]"}, - "share_name": {"key": "shareName", "type": "str"}, - } - - def __init__( - self, - *, - mount_path: str, - read_only: Optional[bool] = None, - enable_sub_path: bool = False, - mount_options: Optional[List[str]] = None, - share_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword mount_path: The mount path of the persistent disk. Required. - :paramtype mount_path: str - :keyword read_only: Indicates whether the persistent disk is a readOnly one. - :paramtype read_only: bool - :keyword enable_sub_path: If set to true, it will create and mount a dedicated directory for - every individual app instance. - :paramtype enable_sub_path: bool - :keyword mount_options: These are the mount options for a persistent disk. - :paramtype mount_options: list[str] - :keyword share_name: The share name of the Azure File share. - :paramtype share_name: str - """ - super().__init__( - mount_path=mount_path, - read_only=read_only, - enable_sub_path=enable_sub_path, - mount_options=mount_options, - **kwargs - ) - self.type: str = "AzureFileVolume" - self.share_name = share_name - - -class BindingResource(ProxyResource): - """Binding resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the Binding resource. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BindingResourceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BindingResourceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Binding resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BindingResourceCollection(_serialization.Model): - """Object that includes an array of Binding resources and a possible link for next set. - - :ivar value: Collection of Binding resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BindingResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Binding resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BindingResourceProperties(_serialization.Model): - """Binding resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_name: The name of the bound resource. - :vartype resource_name: str - :ivar resource_type: The standard Azure resource type of the bound resource. - :vartype resource_type: str - :ivar resource_id: The Azure resource id of the bound resource. - :vartype resource_id: str - :ivar key: The key of the bound resource. - :vartype key: str - :ivar binding_parameters: Binding parameters of the Binding resource. - :vartype binding_parameters: dict[str, str] - :ivar generated_properties: The generated Spring Boot property file for this binding. The - secret will be deducted. - :vartype generated_properties: str - :ivar created_at: Creation time of the Binding resource. - :vartype created_at: str - :ivar updated_at: Update time of the Binding resource. - :vartype updated_at: str - """ - - _validation = { - "resource_name": {"readonly": True}, - "resource_type": {"readonly": True}, - "generated_properties": {"readonly": True}, - "created_at": {"readonly": True}, - "updated_at": {"readonly": True}, - } - - _attribute_map = { - "resource_name": {"key": "resourceName", "type": "str"}, - "resource_type": {"key": "resourceType", "type": "str"}, - "resource_id": {"key": "resourceId", "type": "str"}, - "key": {"key": "key", "type": "str"}, - "binding_parameters": {"key": "bindingParameters", "type": "{str}"}, - "generated_properties": {"key": "generatedProperties", "type": "str"}, - "created_at": {"key": "createdAt", "type": "str"}, - "updated_at": {"key": "updatedAt", "type": "str"}, - } - - def __init__( - self, - *, - resource_id: Optional[str] = None, - key: Optional[str] = None, - binding_parameters: Optional[Dict[str, str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_id: The Azure resource id of the bound resource. - :paramtype resource_id: str - :keyword key: The key of the bound resource. - :paramtype key: str - :keyword binding_parameters: Binding parameters of the Binding resource. - :paramtype binding_parameters: dict[str, str] - """ - super().__init__(**kwargs) - self.resource_name = None - self.resource_type = None - self.resource_id = resource_id - self.key = key - self.binding_parameters = binding_parameters - self.generated_properties = None - self.created_at = None - self.updated_at = None - - -class Build(ProxyResource): - """Build resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildCollection(_serialization.Model): - """Object that includes an array of Build resources and a possible link for next set. - - :ivar value: Collection of Build resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.Build] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[Build]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.Build"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.Build] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuilderProperties(_serialization.Model): - """KPack Builder properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Builder provision status. Known values are: "Creating", "Updating", - "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderProvisioningState - :ivar stack: Builder cluster stack property. - :vartype stack: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StackProperties - :ivar buildpack_groups: Builder buildpack groups. - :vartype buildpack_groups: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpacksGroupProperties] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "stack": {"key": "stack", "type": "StackProperties"}, - "buildpack_groups": {"key": "buildpackGroups", "type": "[BuildpacksGroupProperties]"}, - } - - def __init__( - self, - *, - stack: Optional["_models.StackProperties"] = None, - buildpack_groups: Optional[List["_models.BuildpacksGroupProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword stack: Builder cluster stack property. - :paramtype stack: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StackProperties - :keyword buildpack_groups: Builder buildpack groups. - :paramtype buildpack_groups: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpacksGroupProperties] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.stack = stack - self.buildpack_groups = buildpack_groups - - -class BuilderResource(ProxyResource): - """KPack Builder resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Property of the Builder resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuilderProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuilderProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Property of the Builder resource. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuilderResourceCollection(_serialization.Model): - """Object that includes an array of Builder resources and a possible link for next set. - - :ivar value: Collection of Builder resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuilderResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuilderResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Builder resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackBindingLaunchProperties(_serialization.Model): - """Buildpack Binding Launch Properties. - - :ivar properties: Non-sensitive properties for launchProperties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties for launchProperties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties for launchProperties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties for launchProperties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class BuildpackBindingProperties(_serialization.Model): - """Properties of a buildpack binding. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :vartype binding_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingType - :ivar provisioning_state: State of the Buildpack Binding. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingProvisioningState - :ivar launch_properties: The object describes the buildpack binding launch properties. - :vartype launch_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingLaunchProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "binding_type": {"key": "bindingType", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "launch_properties": {"key": "launchProperties", "type": "BuildpackBindingLaunchProperties"}, - } - - def __init__( - self, - *, - binding_type: Optional[Union[str, "_models.BindingType"]] = None, - launch_properties: Optional["_models.BuildpackBindingLaunchProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword binding_type: Buildpack Binding Type. Known values are: "ApplicationInsights", - "ApacheSkyWalking", "AppDynamics", "Dynatrace", "NewRelic", "ElasticAPM", and "CACertificates". - :paramtype binding_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingType - :keyword launch_properties: The object describes the buildpack binding launch properties. - :paramtype launch_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingLaunchProperties - """ - super().__init__(**kwargs) - self.binding_type = binding_type - self.provisioning_state = None - self.launch_properties = launch_properties - - -class BuildpackBindingResource(ProxyResource): - """Buildpack Binding Resource object. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of a buildpack binding. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildpackBindingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildpackBindingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of a buildpack binding. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildpackBindingResourceCollection(_serialization.Model): - """Object that includes an array of BuildpackBinding resources and a possible link for next set. - - :ivar value: Collection of BuildpackBinding resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildpackBindingResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildpackBindingResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of BuildpackBinding resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildpackProperties(_serialization.Model): - """Buildpack properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Id of the buildpack. - :vartype id: str - :ivar version: Version of the buildpack. - :vartype version: str - """ - - _validation = { - "version": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylint: disable=redefined-builtin - """ - :keyword id: Id of the buildpack. - :paramtype id: str - """ - super().__init__(**kwargs) - self.id = id - self.version = None - - -class BuildpacksGroupProperties(_serialization.Model): - """Buildpack group properties of the Builder. - - :ivar name: Buildpack group name. - :vartype name: str - :ivar buildpacks: Buildpacks in the buildpack group. - :vartype buildpacks: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackProperties] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "buildpacks": {"key": "buildpacks", "type": "[BuildpackProperties]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - buildpacks: Optional[List["_models.BuildpackProperties"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Buildpack group name. - :paramtype name: str - :keyword buildpacks: Buildpacks in the buildpack group. - :paramtype buildpacks: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackProperties] - """ - super().__init__(**kwargs) - self.name = name - self.buildpacks = buildpacks - - -class BuildProperties(_serialization.Model): - """Build resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar relative_path: The relative path of source code. - :vartype relative_path: str - :ivar builder: The resource id of builder to build the source code. - :vartype builder: str - :ivar agent_pool: The resource id of agent pool. - :vartype agent_pool: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildProvisioningState - :ivar env: The environment variables for this build. - :vartype env: dict[str, str] - :ivar apms: The APMs for this build. - :vartype apms: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference] - :ivar certificates: The CA Certificates for this build. - :vartype certificates: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateReference] - :ivar triggered_build_result: The build result triggered by this build. - :vartype triggered_build_result: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.TriggeredBuildResult - :ivar resource_requests: The customized build resource for this build. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResourceRequests - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "triggered_build_result": {"readonly": True}, - } - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "builder": {"key": "builder", "type": "str"}, - "agent_pool": {"key": "agentPool", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "env": {"key": "env", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "certificates": {"key": "certificates", "type": "[CertificateReference]"}, - "triggered_build_result": {"key": "triggeredBuildResult", "type": "TriggeredBuildResult"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildResourceRequests"}, - } - - def __init__( - self, - *, - relative_path: Optional[str] = None, - builder: Optional[str] = None, - agent_pool: Optional[str] = None, - env: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - certificates: Optional[List["_models.CertificateReference"]] = None, - resource_requests: Optional["_models.BuildResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword relative_path: The relative path of source code. - :paramtype relative_path: str - :keyword builder: The resource id of builder to build the source code. - :paramtype builder: str - :keyword agent_pool: The resource id of agent pool. - :paramtype agent_pool: str - :keyword env: The environment variables for this build. - :paramtype env: dict[str, str] - :keyword apms: The APMs for this build. - :paramtype apms: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference] - :keyword certificates: The CA Certificates for this build. - :paramtype certificates: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateReference] - :keyword resource_requests: The customized build resource for this build. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResourceRequests - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.builder = builder - self.agent_pool = agent_pool - self.provisioning_state = None - self.env = env - self.apms = apms - self.certificates = certificates - self.triggered_build_result = None - self.resource_requests = resource_requests - - -class BuildResourceRequests(_serialization.Model): - """Resource request payload of Build Resource. - - :ivar cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :vartype cpu: str - :ivar memory: Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi - or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Optional Cpu allocated to the build resource. 1 core can be represented by 1 or - 1000m. - The default value is 1, this should not exceed build service agent pool cpu size. - :paramtype cpu: str - :keyword memory: Optional Memory allocated to the build resource. 1 GB can be represented by - 1Gi or 1024Mi. - The default value is 2Gi, this should not exceed build service agent pool memory size. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class BuildResult(ProxyResource): - """Build result resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the build result resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResultProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildResultProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildResultProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build result resource. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResultProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildResultCollection(_serialization.Model): - """Object that includes an array of Build result resources and a possible link for next set. - - :ivar value: Collection of Build result resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResult] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildResult]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildResult"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build result resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResult] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildResultLog(_serialization.Model): - """Build result log resource properties payload. - - :ivar blob_url: The public download URL of this build result log. - :vartype blob_url: str - """ - - _attribute_map = { - "blob_url": {"key": "blobUrl", "type": "str"}, - } - - def __init__(self, *, blob_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword blob_url: The public download URL of this build result log. - :paramtype blob_url: str - """ - super().__init__(**kwargs) - self.blob_url = blob_url - - -class BuildResultProperties(_serialization.Model): - """Build result resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build result. - :vartype name: str - :ivar provisioning_state: Provisioning state of the KPack build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResultProvisioningState - :ivar error: Error when build is failed. - :vartype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - :ivar build_pod_name: The build pod name which can be used to get the build log streaming. - :vartype build_pod_name: str - :ivar build_stages: All of the build stage (init-container and container) resources in build - pod. - :vartype build_stages: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildStageProperties] - :ivar image: The container registry image of this build result. - :vartype image: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "build_stages": {"readonly": True}, - "image": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "build_pod_name": {"key": "buildPodName", "type": "str"}, - "build_stages": {"key": "buildStages", "type": "[BuildStageProperties]"}, - "image": {"key": "image", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - error: Optional["_models.Error"] = None, - build_pod_name: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of this build result. - :paramtype name: str - :keyword error: Error when build is failed. - :paramtype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - :keyword build_pod_name: The build pod name which can be used to get the build log streaming. - :paramtype build_pod_name: str - """ - super().__init__(**kwargs) - self.name = name - self.provisioning_state = None - self.error = error - self.build_pod_name = build_pod_name - self.build_stages = None - self.image = None - - -class UserSourceInfo(_serialization.Model): - """Source information for a deployment. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - BuildResultUserSourceInfo, CustomContainerUserSourceInfo, UploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - _subtype_map = { - "type": { - "BuildResult": "BuildResultUserSourceInfo", - "Container": "CustomContainerUserSourceInfo", - "UploadedUserSourceInfo": "UploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.version = version - - -class BuildResultUserSourceInfo(UserSourceInfo): - """Reference to a build result. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar build_result_id: Resource id of an existing succeeded build result under the same Spring - instance. - :vartype build_result_id: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "build_result_id": {"key": "buildResultId", "type": "str"}, - } - - def __init__(self, *, version: Optional[str] = None, build_result_id: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword build_result_id: Resource id of an existing succeeded build result under the same - Spring instance. - :paramtype build_result_id: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "BuildResult" - self.build_result_id = build_result_id - - -class BuildService(ProxyResource): - """Build service resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the build resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.BuildServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the build resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolProperties(_serialization.Model): - """Build service agent pool properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the build service agent pool. - :vartype provisioning_state: str - :ivar pool_size: build service agent pool size properties. - :vartype pool_size: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "pool_size": {"key": "poolSize", "type": "BuildServiceAgentPoolSizeProperties"}, - } - - def __init__( - self, *, pool_size: Optional["_models.BuildServiceAgentPoolSizeProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword pool_size: build service agent pool size properties. - :paramtype pool_size: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolSizeProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.pool_size = pool_size - - -class BuildServiceAgentPoolResource(ProxyResource): - """The build service agent pool resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: build service agent pool properties. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "BuildServiceAgentPoolProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.BuildServiceAgentPoolProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: build service agent pool properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class BuildServiceAgentPoolResourceCollection(_serialization.Model): - """Object that includes an array of build service agent pool resources and a possible link for - next set. - - :ivar value: Collection of build service agent pool resource. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildServiceAgentPoolResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.BuildServiceAgentPoolResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of build service agent pool resource. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceAgentPoolSizeProperties(_serialization.Model): - """Build service agent pool size properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of build service agent pool size. - :vartype name: str - :ivar cpu: The cpu property of build service agent pool size. - :vartype cpu: str - :ivar memory: The memory property of build service agent pool size. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of build service agent pool size. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - self.cpu = None - self.memory = None - - -class BuildServiceCollection(_serialization.Model): - """Object that includes an array of Build service resources and a possible link for next set. - - :ivar value: Collection of Build service resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[BuildService]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.BuildService"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Build service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class BuildServiceProperties(_serialization.Model): - """Build service resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar container_registry: The resource id of the container registry used in this build service. - :vartype container_registry: str - :ivar k_pack_version: The installed KPack version in this build service. - :vartype k_pack_version: str - :ivar provisioning_state: Provisioning state of the KPack build service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceProvisioningState - :ivar resource_requests: The runtime resource configuration of this build service. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServicePropertiesResourceRequests - """ - - _validation = { - "k_pack_version": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "container_registry": {"key": "containerRegistry", "type": "str"}, - "k_pack_version": {"key": "kPackVersion", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "BuildServicePropertiesResourceRequests"}, - } - - def __init__( - self, - *, - container_registry: Optional[str] = None, - resource_requests: Optional["_models.BuildServicePropertiesResourceRequests"] = None, - **kwargs: Any - ) -> None: - """ - :keyword container_registry: The resource id of the container registry used in this build - service. - :paramtype container_registry: str - :keyword resource_requests: The runtime resource configuration of this build service. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServicePropertiesResourceRequests - """ - super().__init__(**kwargs) - self.container_registry = container_registry - self.k_pack_version = None - self.provisioning_state = None - self.resource_requests = resource_requests - - -class BuildServicePropertiesResourceRequests(_serialization.Model): - """The runtime resource configuration of this build service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: vCPU allocated to the entire build service node pool. - :vartype cpu: str - :ivar memory: Memory allocated to the entire build service node pool. - :vartype memory: str - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - - -class BuildStageProperties(_serialization.Model): - """The build stage (init-container and container) resources in build pod. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of this build stage resource. - :vartype name: str - :ivar status: The provisioning state of this build stage resource. Known values are: - "NotStarted", "Running", "Succeeded", and "Failed". - :vartype status: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.KPackBuildStageProvisioningState - :ivar exit_code: The exit code of this build init container. - :vartype exit_code: str - :ivar reason: The reason of this build init container. - :vartype reason: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "exit_code": {"readonly": True}, - "reason": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "exit_code": {"key": "exitCode", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.exit_code = None - self.reason = None - - -class CertificateProperties(_serialization.Model): - """Certificate resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContentCertificateProperties, KeyVaultCertificateProperties - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResourceProvisioningState - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - _subtype_map = { - "type": { - "ContentCertificate": "ContentCertificateProperties", - "KeyVaultCertificate": "KeyVaultCertificateProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - self.thumbprint = None - self.issuer = None - self.issued_date = None - self.expiration_date = None - self.activate_date = None - self.subject_name = None - self.dns_names = None - self.provisioning_state = None - - -class CertificateReference(_serialization.Model): - """A reference to the certificate. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of the certificate. Required. - :vartype resource_id: str - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - } - - def __init__(self, *, resource_id: str, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of the certificate. Required. - :paramtype resource_id: str - """ - super().__init__(**kwargs) - self.resource_id = resource_id - - -class CertificateResource(ProxyResource): - """Certificate resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the certificate resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CertificateProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CertificateProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the certificate resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CertificateResourceCollection(_serialization.Model): - """Collection compose of certificate resources list and a possible link for next page. - - :ivar value: The certificate resources list. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :ivar next_link: The link to next page of certificate list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CertificateResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CertificateResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The certificate resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :keyword next_link: The link to next page of certificate list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CloudErrorBody(_serialization.Model): - """An error response from the service. - - :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :vartype code: str - :ivar message: A message describing the error, intended to be suitable for display in a user - interface. - :vartype message: str - :ivar target: The target of the particular error. For example, the name of the property in - error. - :vartype target: str - :ivar details: A list of additional details about the error. - :vartype details: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CloudErrorBody] - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - "target": {"key": "target", "type": "str"}, - "details": {"key": "details", "type": "[CloudErrorBody]"}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - details: Optional[List["_models.CloudErrorBody"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :paramtype code: str - :keyword message: A message describing the error, intended to be suitable for display in a user - interface. - :paramtype message: str - :keyword target: The target of the particular error. For example, the name of the property in - error. - :paramtype target: str - :keyword details: A list of additional details about the error. - :paramtype details: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CloudErrorBody] - """ - super().__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details - - -class ClusterResourceProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the Service. Known values are: "Creating", - "Updating", "Starting", "Stopping", "Deleting", "Deleted", "Succeeded", "Failed", "Moving", - "Moved", and "MoveFailed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProvisioningState - :ivar network_profile: Network profile of the Service. - :vartype network_profile: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NetworkProfile - :ivar vnet_addons: Additional Service settings in vnet injection instance. - :vartype vnet_addons: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceVNetAddons - :ivar maintenance_schedule_configuration: Additional Service settings for planned maintenance. - :vartype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MaintenanceScheduleConfiguration - :ivar version: Version of the Service. - :vartype version: int - :ivar service_id: ServiceInstanceEntity Id which uniquely identifies a created resource. - :vartype service_id: str - :ivar managed_environment_id: The resource Id of the Managed Environment that the Spring Apps - instance builds on. - :vartype managed_environment_id: str - :ivar infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :vartype infra_resource_group: str - :ivar power_state: Power state of the Service. Known values are: "Running" and "Stopped". - :vartype power_state: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.PowerState - :ivar zone_redundant: - :vartype zone_redundant: bool - :ivar fqdn: Fully qualified dns name of the service instance. - :vartype fqdn: str - :ivar marketplace_resource: Purchasing 3rd party product of the Service resource. - :vartype marketplace_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MarketplaceResource - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "version": {"readonly": True}, - "service_id": {"readonly": True}, - "power_state": {"readonly": True}, - "fqdn": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "network_profile": {"key": "networkProfile", "type": "NetworkProfile"}, - "vnet_addons": {"key": "vnetAddons", "type": "ServiceVNetAddons"}, - "maintenance_schedule_configuration": { - "key": "maintenanceScheduleConfiguration", - "type": "MaintenanceScheduleConfiguration", - }, - "version": {"key": "version", "type": "int"}, - "service_id": {"key": "serviceId", "type": "str"}, - "managed_environment_id": {"key": "managedEnvironmentId", "type": "str"}, - "infra_resource_group": {"key": "infraResourceGroup", "type": "str"}, - "power_state": {"key": "powerState", "type": "str"}, - "zone_redundant": {"key": "zoneRedundant", "type": "bool"}, - "fqdn": {"key": "fqdn", "type": "str"}, - "marketplace_resource": {"key": "marketplaceResource", "type": "MarketplaceResource"}, - } - - def __init__( - self, - *, - network_profile: Optional["_models.NetworkProfile"] = None, - vnet_addons: Optional["_models.ServiceVNetAddons"] = None, - maintenance_schedule_configuration: Optional["_models.MaintenanceScheduleConfiguration"] = None, - managed_environment_id: Optional[str] = None, - infra_resource_group: Optional[str] = None, - zone_redundant: bool = False, - marketplace_resource: Optional["_models.MarketplaceResource"] = None, - **kwargs: Any - ) -> None: - """ - :keyword network_profile: Network profile of the Service. - :paramtype network_profile: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NetworkProfile - :keyword vnet_addons: Additional Service settings in vnet injection instance. - :paramtype vnet_addons: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceVNetAddons - :keyword maintenance_schedule_configuration: Additional Service settings for planned - maintenance. - :paramtype maintenance_schedule_configuration: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MaintenanceScheduleConfiguration - :keyword managed_environment_id: The resource Id of the Managed Environment that the Spring - Apps instance builds on. - :paramtype managed_environment_id: str - :keyword infra_resource_group: The name of the resource group that contains the infrastructure - resources. - :paramtype infra_resource_group: str - :keyword zone_redundant: - :paramtype zone_redundant: bool - :keyword marketplace_resource: Purchasing 3rd party product of the Service resource. - :paramtype marketplace_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MarketplaceResource - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.network_profile = network_profile - self.vnet_addons = vnet_addons - self.maintenance_schedule_configuration = maintenance_schedule_configuration - self.version = None - self.service_id = None - self.managed_environment_id = managed_environment_id - self.infra_resource_group = infra_resource_group - self.power_state = None - self.zone_redundant = zone_redundant - self.fqdn = None - self.marketplace_resource = marketplace_resource - - -class ConfigServerGitProperty(_serialization.Model): - """Property of git. - - All required parameters must be populated in order to send to server. - - :ivar repositories: Repositories of git. - :vartype repositories: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GitPatternRepository] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "uri": {"required": True}, - } - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[GitPatternRepository]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - uri: str, - repositories: Optional[List["_models.GitPatternRepository"]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of git. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GitPatternRepository] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.repositories = repositories - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class ConfigServerProperties(_serialization.Model): - """Config server git properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the config server. Known values are: "NotAvailable", - "Deleted", "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerState - :ivar error: Error when apply config server settings. - :vartype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - :ivar enabled_state: Enabled state of the config server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerEnabledState - :ivar config_server: Settings of config server. - :vartype config_server: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "config_server": {"key": "configServer", "type": "ConfigServerSettings"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - enabled_state: Optional[Union[str, "_models.ConfigServerEnabledState"]] = None, - config_server: Optional["_models.ConfigServerSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply config server settings. - :paramtype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - :keyword enabled_state: Enabled state of the config server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerEnabledState - :keyword config_server: Settings of config server. - :paramtype config_server: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.enabled_state = enabled_state - self.config_server = config_server - - -class ConfigServerResource(ProxyResource): - """Config Server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the Config Server resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Config Server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigServerSettings(_serialization.Model): - """The settings of config server. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerGitProperty - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigServerGitProperty"}, - } - - def __init__(self, *, git_property: Optional["_models.ConfigServerGitProperty"] = None, **kwargs: Any) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerGitProperty - """ - super().__init__(**kwargs) - self.git_property = git_property - - -class ConfigServerSettingsErrorRecord(_serialization.Model): - """Error record of the config server settings. - - :ivar name: The name of the config server settings error record. - :vartype name: str - :ivar uri: The uri of the config server settings error record. - :vartype uri: str - :ivar messages: The detail error messages of the record. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - uri: Optional[str] = None, - messages: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: The name of the config server settings error record. - :paramtype name: str - :keyword uri: The uri of the config server settings error record. - :paramtype uri: str - :keyword messages: The detail error messages of the record. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.uri = uri - self.messages = messages - - -class ConfigServerSettingsValidateResult(_serialization.Model): - """Validation result for config server settings. - - :ivar is_valid: Indicate if the config server settings are valid. - :vartype is_valid: bool - :ivar details: The detail validation results. - :vartype details: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsErrorRecord] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "details": {"key": "details", "type": "[ConfigServerSettingsErrorRecord]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - details: Optional[List["_models.ConfigServerSettingsErrorRecord"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the config server settings are valid. - :paramtype is_valid: bool - :keyword details: The detail validation results. - :paramtype details: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsErrorRecord] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.details = details - - -class ConfigurationServiceGitProperty(_serialization.Model): - """Property of git environment. - - :ivar repositories: Repositories of Application Configuration Service git property. - :vartype repositories: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGitRepository] - """ - - _attribute_map = { - "repositories": {"key": "repositories", "type": "[ConfigurationServiceGitRepository]"}, - } - - def __init__( - self, *, repositories: Optional[List["_models.ConfigurationServiceGitRepository"]] = None, **kwargs: Any - ) -> None: - """ - :keyword repositories: Repositories of Application Configuration Service git property. - :paramtype repositories: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGitRepository] - """ - super().__init__(**kwargs) - self.repositories = repositories - - -class ConfigurationServiceGitPropertyValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar is_valid: Indicate if the configuration service settings are valid. - :vartype is_valid: bool - :ivar git_repos_validation_result: The detail validation results. - :vartype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ValidationMessages] - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "git_repos_validation_result": {"key": "gitReposValidationResult", "type": "[ValidationMessages]"}, - } - - def __init__( - self, - *, - is_valid: Optional[bool] = None, - git_repos_validation_result: Optional[List["_models.ValidationMessages"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword is_valid: Indicate if the configuration service settings are valid. - :paramtype is_valid: bool - :keyword git_repos_validation_result: The detail validation results. - :paramtype git_repos_validation_result: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ValidationMessages] - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.git_repos_validation_result = git_repos_validation_result - - -class ConfigurationServiceGitRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for Application Configuration Service. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar patterns: Collection of patterns of the repository. Required. - :vartype patterns: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. Required. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - :ivar git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :vartype git_implementation: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GitImplementation - :ivar ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :vartype ca_cert_resource_id: str - """ - - _validation = { - "name": {"required": True}, - "patterns": {"required": True}, - "uri": {"required": True}, - "label": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "patterns": {"key": "patterns", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - "git_implementation": {"key": "gitImplementation", "type": "str"}, - "ca_cert_resource_id": {"key": "caCertResourceId", "type": "str"}, - } - - def __init__( - self, - *, - name: str, - patterns: List[str], - uri: str, - label: str, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - git_implementation: Optional[Union[str, "_models.GitImplementation"]] = None, - ca_cert_resource_id: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword patterns: Collection of patterns of the repository. Required. - :paramtype patterns: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. Required. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - :keyword git_implementation: Git libraries used to support various repository providers. Known - values are: "go-git" and "libgit2". - :paramtype git_implementation: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GitImplementation - :keyword ca_cert_resource_id: Resource Id of CA certificate for https URL of Git repository. - :paramtype ca_cert_resource_id: str - """ - super().__init__(**kwargs) - self.name = name - self.patterns = patterns - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - self.git_implementation = git_implementation - self.ca_cert_resource_id = ca_cert_resource_id - - -class ConfigurationServiceInstance(_serialization.Model): - """Collection of instances belong to the Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Application Configuration Service instance. - :vartype name: str - :ivar status: Status of the Application Configuration Service instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ConfigurationServiceProperties(_serialization.Model): - """Application Configuration Service properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Application Configuration Service. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceProvisioningState - :ivar generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :vartype generation: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGeneration - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResourceRequests - :ivar instances: Collection of instances belong to Application Configuration Service. - :vartype instances: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceInstance] - :ivar settings: The settings of Application Configuration Service. - :vartype settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "generation": {"key": "generation", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ConfigurationServiceResourceRequests"}, - "instances": {"key": "instances", "type": "[ConfigurationServiceInstance]"}, - "settings": {"key": "settings", "type": "ConfigurationServiceSettings"}, - } - - def __init__( - self, - *, - generation: Union[str, "_models.ConfigurationServiceGeneration"] = "Gen1", - settings: Optional["_models.ConfigurationServiceSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword generation: The generation of the Application Configuration Service. Known values are: - "Gen1" and "Gen2". - :paramtype generation: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGeneration - :keyword settings: The settings of Application Configuration Service. - :paramtype settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.generation = generation - self.resource_requests = None - self.instances = None - self.settings = settings - - -class ConfigurationServiceResource(ProxyResource): - """Application Configuration Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Application Configuration Service properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ConfigurationServiceProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ConfigurationServiceProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Application Configuration Service properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ConfigurationServiceResourceCollection(_serialization.Model): - """Object that includes an array of configuration service resources and a possible link for next - set. - - :ivar value: Collection of configuration service resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ConfigurationServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ConfigurationServiceResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of configuration service resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ConfigurationServiceResourceRequests(_serialization.Model): - """Resource request payload of Application Configuration Service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Application Configuration Service instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Application Configuration Service instance. - :vartype memory: str - :ivar instance_count: Instance count of the Application Configuration Service. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class ConfigurationServiceSettings(_serialization.Model): - """The settings of Application Configuration Service. - - :ivar git_property: Property of git environment. - :vartype git_property: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGitProperty - :ivar refresh_interval_in_seconds: How often (in seconds) to check repository updates. Minimum - value is 0. - :vartype refresh_interval_in_seconds: int - """ - - _attribute_map = { - "git_property": {"key": "gitProperty", "type": "ConfigurationServiceGitProperty"}, - "refresh_interval_in_seconds": {"key": "refreshIntervalInSeconds", "type": "int"}, - } - - def __init__( - self, - *, - git_property: Optional["_models.ConfigurationServiceGitProperty"] = None, - refresh_interval_in_seconds: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property: Property of git environment. - :paramtype git_property: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGitProperty - :keyword refresh_interval_in_seconds: How often (in seconds) to check repository updates. - Minimum value is 0. - :paramtype refresh_interval_in_seconds: int - """ - super().__init__(**kwargs) - self.git_property = git_property - self.refresh_interval_in_seconds = refresh_interval_in_seconds - - -class ConfigurationServiceSettingsValidateResult(_serialization.Model): # pylint: disable=name-too-long - """Validation result for configuration service settings. - - :ivar git_property_validation_result: Validation result for configuration service settings. - :vartype git_property_validation_result: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - - _attribute_map = { - "git_property_validation_result": { - "key": "gitPropertyValidationResult", - "type": "ConfigurationServiceGitPropertyValidateResult", - }, - } - - def __init__( - self, - *, - git_property_validation_result: Optional["_models.ConfigurationServiceGitPropertyValidateResult"] = None, - **kwargs: Any - ) -> None: - """ - :keyword git_property_validation_result: Validation result for configuration service settings. - :paramtype git_property_validation_result: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceGitPropertyValidateResult - """ - super().__init__(**kwargs) - self.git_property_validation_result = git_property_validation_result - - -class ContainerProbeSettings(_serialization.Model): - """Container liveness and readiness probe settings. - - :ivar disable_probe: Indicates whether disable the liveness and readiness probe. - :vartype disable_probe: bool - """ - - _attribute_map = { - "disable_probe": {"key": "disableProbe", "type": "bool"}, - } - - def __init__(self, *, disable_probe: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword disable_probe: Indicates whether disable the liveness and readiness probe. - :paramtype disable_probe: bool - """ - super().__init__(**kwargs) - self.disable_probe = disable_probe - - -class ContainerRegistryCredentials(_serialization.Model): - """The credential for the container registry resource. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ContainerRegistryBasicCredentials - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = {"type": {"BasicAuth": "ContainerRegistryBasicCredentials"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ContainerRegistryBasicCredentials(ContainerRegistryCredentials): - """The basic authentication properties for the container registry resource. - - All required parameters must be populated in order to send to server. - - :ivar type: The credential type of the container registry credentials. Required. - :vartype type: str - :ivar server: The login server of the Container Registry. Required. - :vartype server: str - :ivar username: The username of the Container Registry. Required. - :vartype username: str - :ivar password: The password of the Container Registry. Required. - :vartype password: str - """ - - _validation = { - "type": {"required": True}, - "server": {"required": True}, - "username": {"required": True}, - "password": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, server: str, username: str, password: str, **kwargs: Any) -> None: - """ - :keyword server: The login server of the Container Registry. Required. - :paramtype server: str - :keyword username: The username of the Container Registry. Required. - :paramtype username: str - :keyword password: The password of the Container Registry. Required. - :paramtype password: str - """ - super().__init__(**kwargs) - self.type: str = "BasicAuth" - self.server = server - self.username = username - self.password = password - - -class ContainerRegistryProperties(_serialization.Model): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar credentials: The credentials of the container registry resource. Required. - :vartype credentials: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryCredentials - :ivar provisioning_state: State of the Container Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProvisioningState - """ - - _validation = { - "credentials": {"required": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "credentials": {"key": "credentials", "type": "ContainerRegistryCredentials"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, credentials: "_models.ContainerRegistryCredentials", **kwargs: Any) -> None: - """ - :keyword credentials: The credentials of the container registry resource. Required. - :paramtype credentials: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryCredentials - """ - super().__init__(**kwargs) - self.credentials = credentials - self.provisioning_state = None - - -class ContainerRegistryResource(ProxyResource): - """Container registry resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the container registry resource payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ContainerRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ContainerRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the container registry resource payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ContainerRegistryResourceCollection(_serialization.Model): - """Collection compose of container registry resources list and a possible link for next page. - - :ivar value: The container registry resources list. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ContainerRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ContainerRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The container registry resources list. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ContainerRegistryValidateResult(_serialization.Model): - """Validation result for container registry properties. - - :ivar is_valid: Indicate if the container registry properties are valid. - :vartype is_valid: bool - :ivar message: Detailed validation messages. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicate if the container registry properties are valid. - :paramtype is_valid: bool - :keyword message: Detailed validation messages. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class ContentCertificateProperties(CertificateProperties): - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResourceProvisioningState - :ivar content: The content of uploaded certificate. - :vartype content: str - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "content": {"key": "content", "type": "str"}, - } - - def __init__(self, *, content: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword content: The content of uploaded certificate. - :paramtype content: str - """ - super().__init__(**kwargs) - self.type: str = "ContentCertificate" - self.content = content - - -class CustomContainer(_serialization.Model): - """Custom container payload. - - :ivar server: The name of the registry that contains the container image. - :vartype server: str - :ivar container_image: Container image of the custom container. This should be in the form of - :code:``::code:`` without the server name of the registry. - :vartype container_image: str - :ivar command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is - used if this is not provided. - :vartype command: list[str] - :ivar args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :vartype args: list[str] - :ivar image_registry_credential: Credential of the image registry. - :vartype image_registry_credential: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ImageRegistryCredential - :ivar language_framework: Language framework of the container image uploaded. Supported values: - "springboot", "", null. - :vartype language_framework: str - """ - - _attribute_map = { - "server": {"key": "server", "type": "str"}, - "container_image": {"key": "containerImage", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - "args": {"key": "args", "type": "[str]"}, - "image_registry_credential": {"key": "imageRegistryCredential", "type": "ImageRegistryCredential"}, - "language_framework": {"key": "languageFramework", "type": "str"}, - } - - def __init__( - self, - *, - server: Optional[str] = None, - container_image: Optional[str] = None, - command: Optional[List[str]] = None, - args: Optional[List[str]] = None, - image_registry_credential: Optional["_models.ImageRegistryCredential"] = None, - language_framework: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword server: The name of the registry that contains the container image. - :paramtype server: str - :keyword container_image: Container image of the custom container. This should be in the form - of :code:``::code:`` without the server name of the registry. - :paramtype container_image: str - :keyword command: Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT - is used if this is not provided. - :paramtype command: list[str] - :keyword args: Arguments to the entrypoint. The docker image's CMD is used if this is not - provided. - :paramtype args: list[str] - :keyword image_registry_credential: Credential of the image registry. - :paramtype image_registry_credential: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ImageRegistryCredential - :keyword language_framework: Language framework of the container image uploaded. Supported - values: "springboot", "", null. - :paramtype language_framework: str - """ - super().__init__(**kwargs) - self.server = server - self.container_image = container_image - self.command = command - self.args = args - self.image_registry_credential = image_registry_credential - self.language_framework = language_framework - - -class CustomContainerUserSourceInfo(UserSourceInfo): - """Custom container user source info. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar custom_container: Custom container payload. - :vartype custom_container: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomContainer - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "custom_container": {"key": "customContainer", "type": "CustomContainer"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - custom_container: Optional["_models.CustomContainer"] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword custom_container: Custom container payload. - :paramtype custom_container: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomContainer - """ - super().__init__(version=version, **kwargs) - self.type: str = "Container" - self.custom_container = custom_container - - -class CustomDomainProperties(_serialization.Model): - """Custom domain of app resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - :ivar app_name: The app name of domain. - :vartype app_name: str - :ivar cert_name: The bound certificate name of domain. - :vartype cert_name: str - :ivar provisioning_state: Provisioning state of the Domain. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResourceProvisioningState - """ - - _validation = { - "app_name": {"readonly": True}, - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - "app_name": {"key": "appName", "type": "str"}, - "cert_name": {"key": "certName", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, cert_name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - :keyword cert_name: The bound certificate name of domain. - :paramtype cert_name: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - self.app_name = None - self.cert_name = cert_name - self.provisioning_state = None - - -class CustomDomainResource(ProxyResource): - """Custom domain resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the custom domain resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.CustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the custom domain resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class CustomDomainResourceCollection(_serialization.Model): - """Collection compose of a custom domain resources list and a possible link for next page. - - :ivar value: The custom domain resources list. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :ivar next_link: The link to next page of custom domain list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The custom domain resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :keyword next_link: The link to next page of custom domain list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomDomainValidatePayload(_serialization.Model): - """Custom domain validate payload. - - All required parameters must be populated in order to send to server. - - :ivar name: Name to be validated. Required. - :vartype name: str - """ - - _validation = { - "name": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: str, **kwargs: Any) -> None: - """ - :keyword name: Name to be validated. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class CustomDomainValidateResult(_serialization.Model): - """Validation result for custom domain. - - :ivar is_valid: Indicates if domain name is valid. - :vartype is_valid: bool - :ivar message: Message of why domain name is invalid. - :vartype message: str - """ - - _attribute_map = { - "is_valid": {"key": "isValid", "type": "bool"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, is_valid: Optional[bool] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword is_valid: Indicates if domain name is valid. - :paramtype is_valid: bool - :keyword message: Message of why domain name is invalid. - :paramtype message: str - """ - super().__init__(**kwargs) - self.is_valid = is_valid - self.message = message - - -class CustomizedAcceleratorProperties(_serialization.Model): - """Customized accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar provisioning_state: State of the customized accelerator. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProvisioningState - :ivar accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" and - "Fragment". - :vartype accelerator_type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorType - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar imports: Imports references all imports that this accelerator/fragment depends upon. - :vartype imports: list[str] - :ivar git_repository: Required. - :vartype git_repository: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.AcceleratorGitRepository - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "imports": {"readonly": True}, - "git_repository": {"required": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "accelerator_type": {"key": "acceleratorType", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "imports": {"key": "imports", "type": "[str]"}, - "git_repository": {"key": "gitRepository", "type": "AcceleratorGitRepository"}, - } - - def __init__( - self, - *, - git_repository: "_models.AcceleratorGitRepository", - accelerator_type: Optional[Union[str, "_models.CustomizedAcceleratorType"]] = None, - display_name: Optional[str] = None, - description: Optional[str] = None, - icon_url: Optional[str] = None, - accelerator_tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword accelerator_type: Type of the customized accelerator. Known values are: "Accelerator" - and "Fragment". - :paramtype accelerator_type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorType - :keyword display_name: - :paramtype display_name: str - :keyword description: - :paramtype description: str - :keyword icon_url: - :paramtype icon_url: str - :keyword accelerator_tags: - :paramtype accelerator_tags: list[str] - :keyword git_repository: Required. - :paramtype git_repository: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.AcceleratorGitRepository - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.accelerator_type = accelerator_type - self.display_name = display_name - self.description = description - self.icon_url = icon_url - self.accelerator_tags = accelerator_tags - self.imports = None - self.git_repository = git_repository - - -class CustomizedAcceleratorResource(ProxyResource): - """Customized accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Customized accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProperties - :ivar sku: Sku of the customized accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "CustomizedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.CustomizedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Customized accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProperties - :keyword sku: Sku of the customized accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class CustomizedAcceleratorResourceCollection(_serialization.Model): - """CustomizedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[CustomizedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.CustomizedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class CustomizedAcceleratorValidateResult(_serialization.Model): - """Validation result for customized accelerator properties. - - :ivar state: State of the customized accelerator validation result. Known values are: "Valid" - and "Invalid". - :vartype state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResultState - :ivar error_message: The detail validation results. - :vartype error_message: str - """ - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "error_message": {"key": "errorMessage", "type": "str"}, - } - - def __init__( - self, - *, - state: Union[str, "_models.CustomizedAcceleratorValidateResultState"] = "Valid", - error_message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword state: State of the customized accelerator validation result. Known values are: - "Valid" and "Invalid". - :paramtype state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResultState - :keyword error_message: The detail validation results. - :paramtype error_message: str - """ - super().__init__(**kwargs) - self.state = state - self.error_message = error_message - - -class CustomPersistentDiskResource(_serialization.Model): - """Custom persistent disk resource payload. - - All required parameters must be populated in order to send to server. - - :ivar custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :vartype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomPersistentDiskProperties - :ivar storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :vartype storage_id: str - """ - - _validation = { - "storage_id": {"required": True}, - } - - _attribute_map = { - "custom_persistent_disk_properties": { - "key": "customPersistentDiskProperties", - "type": "CustomPersistentDiskProperties", - }, - "storage_id": {"key": "storageId", "type": "str"}, - } - - def __init__( - self, - *, - storage_id: str, - custom_persistent_disk_properties: Optional["_models.CustomPersistentDiskProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword custom_persistent_disk_properties: Properties of the custom persistent disk resource - payload. - :paramtype custom_persistent_disk_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomPersistentDiskProperties - :keyword storage_id: The resource id of Azure Spring Apps Storage resource. Required. - :paramtype storage_id: str - """ - super().__init__(**kwargs) - self.custom_persistent_disk_properties = custom_persistent_disk_properties - self.storage_id = storage_id - - -class CustomScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Custom scaling rule. - - :ivar type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :vartype type: str - :ivar metadata: Metadata properties to describe custom scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - type: Optional[str] = None, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the custom scale rule - eg: azure-servicebus, redis etc. - :paramtype type: str - :keyword metadata: Metadata properties to describe custom scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.type = type - self.metadata = metadata - self.auth = auth - - -class DeploymentInstance(_serialization.Model): - """Deployment instance payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the deployment instance. - :vartype name: str - :ivar status: Status of the deployment instance. - :vartype status: str - :ivar reason: Failed reason of the deployment instance. - :vartype reason: str - :ivar discovery_status: Discovery status of the deployment instance. - :vartype discovery_status: str - :ivar start_time: Start time of the deployment instance. - :vartype start_time: str - :ivar zone: Availability zone information of the deployment instance. - :vartype zone: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - "reason": {"readonly": True}, - "discovery_status": {"readonly": True}, - "start_time": {"readonly": True}, - "zone": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "reason": {"key": "reason", "type": "str"}, - "discovery_status": {"key": "discoveryStatus", "type": "str"}, - "start_time": {"key": "startTime", "type": "str"}, - "zone": {"key": "zone", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - self.reason = None - self.discovery_status = None - self.start_time = None - self.zone = None - - -class DeploymentList(_serialization.Model): - """A list of deployments resource ids. - - :ivar deployments: A list of deployment resource ids. - :vartype deployments: list[str] - """ - - _attribute_map = { - "deployments": {"key": "deployments", "type": "[str]"}, - } - - def __init__(self, *, deployments: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword deployments: A list of deployment resource ids. - :paramtype deployments: list[str] - """ - super().__init__(**kwargs) - self.deployments = deployments - - -class DeploymentResource(ProxyResource): - """Deployment resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the Deployment resource. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResourceProperties - :ivar sku: Sku of the Deployment resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DeploymentResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.DeploymentResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Properties of the Deployment resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResourceProperties - :keyword sku: Sku of the Deployment resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class DeploymentResourceCollection(_serialization.Model): - """Object that includes an array of App resources and a possible link for next set. - - :ivar value: Collection of Deployment resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DeploymentResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DeploymentResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Deployment resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DeploymentResourceProperties(_serialization.Model): - """Deployment resource properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar source: Uploaded source information of the deployment. - :vartype source: ~azure.mgmt.appplatform.v2024_01_01_preview.models.UserSourceInfo - :ivar deployment_settings: Deployment settings of the Deployment. - :vartype deployment_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentSettings - :ivar provisioning_state: Provisioning state of the Deployment. Known values are: "Creating", - "Updating", "Succeeded", and "Failed". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResourceProvisioningState - :ivar status: Status of the Deployment. Known values are: "Stopped" and "Running". - :vartype status: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResourceStatus - :ivar active: Indicates whether the Deployment is active. - :vartype active: bool - :ivar instances: Collection of instances belong to the Deployment. - :vartype instances: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "status": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "source": {"key": "source", "type": "UserSourceInfo"}, - "deployment_settings": {"key": "deploymentSettings", "type": "DeploymentSettings"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "status": {"key": "status", "type": "str"}, - "active": {"key": "active", "type": "bool"}, - "instances": {"key": "instances", "type": "[DeploymentInstance]"}, - } - - def __init__( - self, - *, - source: Optional["_models.UserSourceInfo"] = None, - deployment_settings: Optional["_models.DeploymentSettings"] = None, - active: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword source: Uploaded source information of the deployment. - :paramtype source: ~azure.mgmt.appplatform.v2024_01_01_preview.models.UserSourceInfo - :keyword deployment_settings: Deployment settings of the Deployment. - :paramtype deployment_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentSettings - :keyword active: Indicates whether the Deployment is active. - :paramtype active: bool - """ - super().__init__(**kwargs) - self.source = source - self.deployment_settings = deployment_settings - self.provisioning_state = None - self.status = None - self.active = active - self.instances = None - - -class DeploymentSettings(_serialization.Model): - """Deployment settings payload. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :vartype resource_requests: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceRequests - :ivar environment_variables: Collection of environment variables. - :vartype environment_variables: dict[str, str] - :ivar apms: Collection of ApmReferences. - :vartype apms: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference] - :ivar addon_configs: Collection of addons. - :vartype addon_configs: dict[str, JSON] - :ivar liveness_probe: Periodic probe of App Instance liveness. App Instance will be restarted - if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype liveness_probe: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Probe - :ivar readiness_probe: Periodic probe of App Instance service readiness. App Instance will be - removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype readiness_probe: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Probe - :ivar startup_probe: StartupProbe indicates that the App Instance has successfully initialized. - If specified, no other probes are executed until this completes successfully. If this probe - fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to - provide different probe parameters at the beginning of a App Instance's lifecycle, when it - might take a long time to load data or warm a cache, than during steady-state operation. This - cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype startup_probe: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Probe - :ivar termination_grace_period_seconds: Optional duration in seconds the App Instance needs to - terminate gracefully. May be decreased in delete request. Value must be non-negative integer. - The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If - this value is nil, the default grace period will be used instead. The grace period is the - duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :vartype termination_grace_period_seconds: int - :ivar scale: Scaling properties for the Azure Spring Apps App Instance. - :vartype scale: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Scale - :ivar container_probe_settings: Container liveness and readiness probe settings. - :vartype container_probe_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerProbeSettings - """ - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "ResourceRequests"}, - "environment_variables": {"key": "environmentVariables", "type": "{str}"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "liveness_probe": {"key": "livenessProbe", "type": "Probe"}, - "readiness_probe": {"key": "readinessProbe", "type": "Probe"}, - "startup_probe": {"key": "startupProbe", "type": "Probe"}, - "termination_grace_period_seconds": {"key": "terminationGracePeriodSeconds", "type": "int"}, - "scale": {"key": "scale", "type": "Scale"}, - "container_probe_settings": {"key": "containerProbeSettings", "type": "ContainerProbeSettings"}, - } - - def __init__( - self, - *, - resource_requests: Optional["_models.ResourceRequests"] = None, - environment_variables: Optional[Dict[str, str]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - liveness_probe: Optional["_models.Probe"] = None, - readiness_probe: Optional["_models.Probe"] = None, - startup_probe: Optional["_models.Probe"] = None, - termination_grace_period_seconds: int = 90, - scale: Optional["_models.Scale"] = None, - container_probe_settings: Optional["_models.ContainerProbeSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_requests: The requested resource quantity for required CPU and Memory. It is - recommended that using this field to represent the required CPU and Memory, the old field cpu - and memoryInGB will be deprecated later. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceRequests - :keyword environment_variables: Collection of environment variables. - :paramtype environment_variables: dict[str, str] - :keyword apms: Collection of ApmReferences. - :paramtype apms: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference] - :keyword addon_configs: Collection of addons. - :paramtype addon_configs: dict[str, JSON] - :keyword liveness_probe: Periodic probe of App Instance liveness. App Instance will be - restarted if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype liveness_probe: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Probe - :keyword readiness_probe: Periodic probe of App Instance service readiness. App Instance will - be removed from service endpoints if the probe fails. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype readiness_probe: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Probe - :keyword startup_probe: StartupProbe indicates that the App Instance has successfully - initialized. If specified, no other probes are executed until this completes successfully. If - this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be - used to provide different probe parameters at the beginning of a App Instance's lifecycle, when - it might take a long time to load data or warm a cache, than during steady-state operation. - This cannot be updated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype startup_probe: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Probe - :keyword termination_grace_period_seconds: Optional duration in seconds the App Instance needs - to terminate gracefully. May be decreased in delete request. Value must be non-negative - integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut - down). If this value is nil, the default grace period will be used instead. The grace period is - the duration in seconds after the processes running in the App Instance are sent a termination - signal and the time when the processes are forcibly halted with a kill signal. Set this value - longer than the expected cleanup time for your process. Defaults to 90 seconds. - :paramtype termination_grace_period_seconds: int - :keyword scale: Scaling properties for the Azure Spring Apps App Instance. - :paramtype scale: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Scale - :keyword container_probe_settings: Container liveness and readiness probe settings. - :paramtype container_probe_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerProbeSettings - """ - super().__init__(**kwargs) - self.resource_requests = resource_requests - self.environment_variables = environment_variables - self.apms = apms - self.addon_configs = addon_configs - self.liveness_probe = liveness_probe - self.readiness_probe = readiness_probe - self.startup_probe = startup_probe - self.termination_grace_period_seconds = termination_grace_period_seconds - self.scale = scale - self.container_probe_settings = container_probe_settings - - -class DevToolPortalComponent(_serialization.Model): - """DevToolPortalComponent. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: - :vartype name: str - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResourceRequests - :ivar instances: Collection of instances belong to Dev Tool Portal. - :vartype instances: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalInstance] - """ - - _validation = { - "name": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "DevToolPortalResourceRequests"}, - "instances": {"key": "instances", "type": "[DevToolPortalInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.resource_requests = None - self.instances = None - - -class DevToolPortalFeatureDetail(_serialization.Model): - """Detail settings for Dev Tool Portal feature. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar state: State of the plugin. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureState - :ivar route: Route path to visit the plugin. - :vartype route: str - """ - - _validation = { - "route": {"readonly": True}, - } - - _attribute_map = { - "state": {"key": "state", "type": "str"}, - "route": {"key": "route", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.DevToolPortalFeatureState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the plugin. Known values are: "Enabled" and "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureState - """ - super().__init__(**kwargs) - self.state = state - self.route = None - - -class DevToolPortalFeatureSettings(_serialization.Model): - """Settings for Dev Tool Portal. - - :ivar application_accelerator: Detail of Accelerator plugin. - :vartype application_accelerator: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureDetail - :ivar application_live_view: Detail of App Live View plugin. - :vartype application_live_view: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureDetail - """ - - _attribute_map = { - "application_accelerator": {"key": "applicationAccelerator", "type": "DevToolPortalFeatureDetail"}, - "application_live_view": {"key": "applicationLiveView", "type": "DevToolPortalFeatureDetail"}, - } - - def __init__( - self, - *, - application_accelerator: Optional["_models.DevToolPortalFeatureDetail"] = None, - application_live_view: Optional["_models.DevToolPortalFeatureDetail"] = None, - **kwargs: Any - ) -> None: - """ - :keyword application_accelerator: Detail of Accelerator plugin. - :paramtype application_accelerator: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureDetail - :keyword application_live_view: Detail of App Live View plugin. - :paramtype application_live_view: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureDetail - """ - super().__init__(**kwargs) - self.application_accelerator = application_accelerator - self.application_live_view = application_live_view - - -class DevToolPortalInstance(_serialization.Model): - """Collection of instances belong to the Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Dev Tool Portal instance. - :vartype name: str - :ivar status: Status of the Dev Tool Portal instance. It can be Pending, Running, Succeeded, - Failed, Unknown. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class DevToolPortalProperties(_serialization.Model): - """Dev Tool Portal properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Dev Tool Portal. Known values are: "Creating", - "Updating", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalProvisioningState - :ivar components: Collection of components belong to Dev Tool Portal. - :vartype components: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalComponent] - :ivar public: Indicates whether the resource exposes public endpoint. - :vartype public: bool - :ivar url: URL of the resource, exposed when 'public' is true. - :vartype url: str - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalSsoProperties - :ivar features: Settings for Dev Tool Portal. - :vartype features: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureSettings - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "components": {"readonly": True}, - "url": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "components": {"key": "components", "type": "[DevToolPortalComponent]"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "sso_properties": {"key": "ssoProperties", "type": "DevToolPortalSsoProperties"}, - "features": {"key": "features", "type": "DevToolPortalFeatureSettings"}, - } - - def __init__( - self, - *, - public: bool = False, - sso_properties: Optional["_models.DevToolPortalSsoProperties"] = None, - features: Optional["_models.DevToolPortalFeatureSettings"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the resource exposes public endpoint. - :paramtype public: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalSsoProperties - :keyword features: Settings for Dev Tool Portal. - :paramtype features: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalFeatureSettings - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.components = None - self.public = public - self.url = None - self.sso_properties = sso_properties - self.features = features - - -class DevToolPortalResource(ProxyResource): - """Dev Tool Portal resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Dev Tool Portal properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "DevToolPortalProperties"}, - } - - def __init__(self, *, properties: Optional["_models.DevToolPortalProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Dev Tool Portal properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class DevToolPortalResourceCollection(_serialization.Model): - """Object that includes an array of Dev Tool Portal resources and a possible link for next set. - - :ivar value: Collection of Dev Tool Portal resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[DevToolPortalResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.DevToolPortalResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Dev Tool Portal resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class DevToolPortalResourceRequests(_serialization.Model): - """The resource quantity for required CPU and Memory of Dev Tool Portal. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu quantity allocated to each Dev Tool Portal instance. 1 core can be represented - by 1 or 1000m. - :vartype cpu: str - :ivar memory: Memory quantity allocated to each Dev Tool Portal instance. 1 GB can be - represented by 1Gi or 1024Mi. - :vartype memory: str - :ivar instance_count: Desired instance count of Dev Tool Portal. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class DevToolPortalSsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scopes: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :vartype metadata_url: str - """ - - _attribute_map = { - "scopes": {"key": "scopes", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "metadata_url": {"key": "metadataUrl", "type": "str"}, - } - - def __init__( - self, - *, - scopes: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - metadata_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scopes: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scopes: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword metadata_url: The URI of a JSON file with generic OIDC provider configuration. - :paramtype metadata_url: str - """ - super().__init__(**kwargs) - self.scopes = scopes - self.client_id = client_id - self.client_secret = client_secret - self.metadata_url = metadata_url - - -class DiagnosticParameters(_serialization.Model): - """Diagnostic parameters of diagnostic operations. - - :ivar app_instance: App instance name. - :vartype app_instance: str - :ivar file_path: Your target file path in your own BYOS. - :vartype file_path: str - :ivar duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :vartype duration: str - """ - - _attribute_map = { - "app_instance": {"key": "appInstance", "type": "str"}, - "file_path": {"key": "filePath", "type": "str"}, - "duration": {"key": "duration", "type": "str"}, - } - - def __init__( - self, - *, - app_instance: Optional[str] = None, - file_path: Optional[str] = None, - duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_instance: App instance name. - :paramtype app_instance: str - :keyword file_path: Your target file path in your own BYOS. - :paramtype file_path: str - :keyword duration: Duration of your JFR. 1 min can be represented by 1m or 60s. - :paramtype duration: str - """ - super().__init__(**kwargs) - self.app_instance = app_instance - self.file_path = file_path - self.duration = duration - - -class Error(_serialization.Model): - """The error code compose of code and message. - - :ivar code: The code of error. - :vartype code: str - :ivar message: The message of error. - :vartype message: str - """ - - _attribute_map = { - "code": {"key": "code", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__(self, *, code: Optional[str] = None, message: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword code: The code of error. - :paramtype code: str - :keyword message: The message of error. - :paramtype message: str - """ - super().__init__(**kwargs) - self.code = code - self.message = message - - -class EurekaServerProperties(_serialization.Model): - """Eureka server properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the eureka server. Known values are: "Failed", "Succeeded", - "Updating", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerState - :ivar enabled_state: Enabled state of the eureka server. This is only used in Consumption tier. - Known values are: "Enabled" and "Disabled". - :vartype enabled_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerEnabledState - :ivar error: Error when applying eureka server settings. - :vartype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "enabled_state": {"key": "enabledState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - } - - def __init__( - self, - *, - enabled_state: Optional[Union[str, "_models.EurekaServerEnabledState"]] = None, - error: Optional["_models.Error"] = None, - **kwargs: Any - ) -> None: - """ - :keyword enabled_state: Enabled state of the eureka server. This is only used in Consumption - tier. Known values are: "Enabled" and "Disabled". - :paramtype enabled_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerEnabledState - :keyword error: Error when applying eureka server settings. - :paramtype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.enabled_state = enabled_state - self.error = error - - -class EurekaServerResource(ProxyResource): - """Eureka server resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the eureka server resource. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "EurekaServerProperties"}, - } - - def __init__(self, *, properties: Optional["_models.EurekaServerProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the eureka server resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class EurekaServerResourceCollection(_serialization.Model): - """Object that includes an array of Eureka server resources and a possible link for next set. - - :ivar value: Collection of Eureka server resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[EurekaServerResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.EurekaServerResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Eureka server resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ProbeAction(_serialization.Model): - """The action of the probe. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - ExecAction, HTTPGetAction, TCPSocketAction - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - _subtype_map = { - "type": {"ExecAction": "ExecAction", "HTTPGetAction": "HTTPGetAction", "TCPSocketAction": "TCPSocketAction"} - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: Optional[str] = None - - -class ExecAction(ProbeAction): - """ExecAction describes a "run in container" action. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProbeActionType - :ivar command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :vartype command: list[str] - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "command": {"key": "command", "type": "[str]"}, - } - - def __init__(self, *, command: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword command: Command is the command line to execute inside the container, the working - directory for the command is root ('/') in the container's filesystem. The command is not run - inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you - need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and - non-zero is unhealthy. - :paramtype command: list[str] - """ - super().__init__(**kwargs) - self.type: str = "ExecAction" - self.command = command - - -class GatewayApiMetadataProperties(_serialization.Model): - """API metadata property for Spring Cloud Gateway. - - :ivar title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :vartype title: str - :ivar description: Detailed description of the APIs available on the Gateway instance (default: - ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :vartype description: str - :ivar documentation: Location of additional documentation for the APIs available on the Gateway - instance. - :vartype documentation: str - :ivar version: Version of APIs available on this Gateway instance (default: ``unspecified``\ ). - :vartype version: str - :ivar server_url: Base URL that API consumers will use to access APIs on the Gateway instance. - :vartype server_url: str - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "documentation": {"key": "documentation", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "server_url": {"key": "serverUrl", "type": "str"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - documentation: Optional[str] = None, - version: Optional[str] = None, - server_url: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: Title describing the context of the APIs available on the Gateway instance - (default: ``Spring Cloud Gateway for K8S``\ ). - :paramtype title: str - :keyword description: Detailed description of the APIs available on the Gateway instance - (default: ``Generated OpenAPI 3 document that describes the API routes configured.``\ ). - :paramtype description: str - :keyword documentation: Location of additional documentation for the APIs available on the - Gateway instance. - :paramtype documentation: str - :keyword version: Version of APIs available on this Gateway instance (default: ``unspecified``\ - ). - :paramtype version: str - :keyword server_url: Base URL that API consumers will use to access APIs on the Gateway - instance. - :paramtype server_url: str - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.documentation = documentation - self.version = version - self.server_url = server_url - - -class GatewayApiRoute(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - :ivar title: A title, will be applied to methods in the generated OpenAPI documentation. - :vartype title: str - :ivar description: A description, will be applied to methods in the generated OpenAPI - documentation. - :vartype description: str - :ivar uri: Full uri, will override ``appName``. - :vartype uri: str - :ivar sso_enabled: Enable sso validation. - :vartype sso_enabled: bool - :ivar token_relay: Pass currently-authenticated user's identity token to application service, - default is 'false'. - :vartype token_relay: bool - :ivar predicates: A number of conditions to evaluate a route for each request. Each predicate - may be evaluated against request headers and parameter values. All of the predicates associated - with a route must evaluate to true for the route to be matched to the request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response. - :vartype filters: list[str] - :ivar order: Route processing order. - :vartype order: int - :ivar tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :vartype tags: list[str] - """ - - _attribute_map = { - "title": {"key": "title", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "uri": {"key": "uri", "type": "str"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "token_relay": {"key": "tokenRelay", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - "order": {"key": "order", "type": "int"}, - "tags": {"key": "tags", "type": "[str]"}, - } - - def __init__( - self, - *, - title: Optional[str] = None, - description: Optional[str] = None, - uri: Optional[str] = None, - sso_enabled: Optional[bool] = None, - token_relay: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - order: Optional[int] = None, - tags: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword title: A title, will be applied to methods in the generated OpenAPI documentation. - :paramtype title: str - :keyword description: A description, will be applied to methods in the generated OpenAPI - documentation. - :paramtype description: str - :keyword uri: Full uri, will override ``appName``. - :paramtype uri: str - :keyword sso_enabled: Enable sso validation. - :paramtype sso_enabled: bool - :keyword token_relay: Pass currently-authenticated user's identity token to application - service, default is 'false'. - :paramtype token_relay: bool - :keyword predicates: A number of conditions to evaluate a route for each request. Each - predicate may be evaluated against request headers and parameter values. All of the predicates - associated with a route must evaluate to true for the route to be matched to the request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response. - :paramtype filters: list[str] - :keyword order: Route processing order. - :paramtype order: int - :keyword tags: Classification tags, will be applied to methods in the generated OpenAPI - documentation. - :paramtype tags: list[str] - """ - super().__init__(**kwargs) - self.title = title - self.description = description - self.uri = uri - self.sso_enabled = sso_enabled - self.token_relay = token_relay - self.predicates = predicates - self.filters = filters - self.order = order - self.tags = tags - - -class GatewayCorsProperties(_serialization.Model): - """Cross-Origin Resource Sharing property. - - :ivar allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :vartype allowed_origins: list[str] - :ivar allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :vartype allowed_origin_patterns: list[str] - :ivar allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :vartype allowed_methods: list[str] - :ivar allowed_headers: Allowed headers in cross-site requests. The special value ``*`` allows - actual requests to send any header. - :vartype allowed_headers: list[str] - :ivar max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :vartype max_age: int - :ivar allow_credentials: Whether user credentials are supported on cross-site requests. Valid - values: ``true``\ , ``false``. - :vartype allow_credentials: bool - :ivar exposed_headers: HTTP response headers to expose for cross-site requests. - :vartype exposed_headers: list[str] - """ - - _attribute_map = { - "allowed_origins": {"key": "allowedOrigins", "type": "[str]"}, - "allowed_origin_patterns": {"key": "allowedOriginPatterns", "type": "[str]"}, - "allowed_methods": {"key": "allowedMethods", "type": "[str]"}, - "allowed_headers": {"key": "allowedHeaders", "type": "[str]"}, - "max_age": {"key": "maxAge", "type": "int"}, - "allow_credentials": {"key": "allowCredentials", "type": "bool"}, - "exposed_headers": {"key": "exposedHeaders", "type": "[str]"}, - } - - def __init__( - self, - *, - allowed_origins: Optional[List[str]] = None, - allowed_origin_patterns: Optional[List[str]] = None, - allowed_methods: Optional[List[str]] = None, - allowed_headers: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - exposed_headers: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword allowed_origins: Allowed origins to make cross-site requests. The special value ``*`` - allows all domains. - :paramtype allowed_origins: list[str] - :keyword allowed_origin_patterns: Allowed origin patterns to make cross-site requests. - :paramtype allowed_origin_patterns: list[str] - :keyword allowed_methods: Allowed HTTP methods on cross-site requests. The special value ``*`` - allows all methods. If not set, ``GET`` and ``HEAD`` are allowed by default. - :paramtype allowed_methods: list[str] - :keyword allowed_headers: Allowed headers in cross-site requests. The special value ``*`` - allows actual requests to send any header. - :paramtype allowed_headers: list[str] - :keyword max_age: How long, in seconds, the response from a pre-flight request can be cached by - clients. - :paramtype max_age: int - :keyword allow_credentials: Whether user credentials are supported on cross-site requests. - Valid values: ``true``\ , ``false``. - :paramtype allow_credentials: bool - :keyword exposed_headers: HTTP response headers to expose for cross-site requests. - :paramtype exposed_headers: list[str] - """ - super().__init__(**kwargs) - self.allowed_origins = allowed_origins - self.allowed_origin_patterns = allowed_origin_patterns - self.allowed_methods = allowed_methods - self.allowed_headers = allowed_headers - self.max_age = max_age - self.allow_credentials = allow_credentials - self.exposed_headers = exposed_headers - - -class GatewayCustomDomainProperties(_serialization.Model): - """The properties of custom domain for Spring Cloud Gateway. - - :ivar thumbprint: The thumbprint of bound certificate. - :vartype thumbprint: str - """ - - _attribute_map = { - "thumbprint": {"key": "thumbprint", "type": "str"}, - } - - def __init__(self, *, thumbprint: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword thumbprint: The thumbprint of bound certificate. - :paramtype thumbprint: str - """ - super().__init__(**kwargs) - self.thumbprint = thumbprint - - -class GatewayCustomDomainResource(ProxyResource): - """Custom domain of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: The properties of custom domain for Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayCustomDomainProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayCustomDomainProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: The properties of custom domain for Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayCustomDomainResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway custom domain resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway custom domain resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayCustomDomainResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayCustomDomainResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway custom domain resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayInstance(_serialization.Model): - """Collection of instances belong to the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Spring Cloud Gateway instance. - :vartype name: str - :ivar status: Status of the Spring Cloud Gateway instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class GatewayResponseCacheProperties(_serialization.Model): - """Spring Cloud Gateway response cache properties. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - GatewayLocalResponseCachePerInstanceProperties, GatewayLocalResponseCachePerRouteProperties - - All required parameters must be populated in order to send to server. - - :ivar response_cache_type: The type of the response cache. Required. - :vartype response_cache_type: str - """ - - _validation = { - "response_cache_type": {"required": True}, - } - - _attribute_map = { - "response_cache_type": {"key": "responseCacheType", "type": "str"}, - } - - _subtype_map = { - "response_cache_type": { - "LocalCachePerInstance": "GatewayLocalResponseCachePerInstanceProperties", - "LocalCachePerRoute": "GatewayLocalResponseCachePerRouteProperties", - } - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.response_cache_type: Optional[str] = None - - -class GatewayLocalResponseCachePerInstanceProperties(GatewayResponseCacheProperties): # pylint: disable=name-too-long - """Spring Cloud Gateway local response cache per instance properties. - - All required parameters must be populated in order to send to server. - - :ivar response_cache_type: The type of the response cache. Required. - :vartype response_cache_type: str - :ivar size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :vartype size: str - :ivar time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :vartype time_to_live: str - """ - - _validation = { - "response_cache_type": {"required": True}, - } - - _attribute_map = { - "response_cache_type": {"key": "responseCacheType", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "time_to_live": {"key": "timeToLive", "type": "str"}, - } - - def __init__(self, *, size: Optional[str] = None, time_to_live: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :paramtype size: str - :keyword time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :paramtype time_to_live: str - """ - super().__init__(**kwargs) - self.response_cache_type: str = "LocalCachePerInstance" - self.size = size - self.time_to_live = time_to_live - - -class GatewayLocalResponseCachePerRouteProperties(GatewayResponseCacheProperties): # pylint: disable=name-too-long - """Spring Cloud Gateway local response cache per route properties. - - All required parameters must be populated in order to send to server. - - :ivar response_cache_type: The type of the response cache. Required. - :vartype response_cache_type: str - :ivar size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :vartype size: str - :ivar time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :vartype time_to_live: str - """ - - _validation = { - "response_cache_type": {"required": True}, - } - - _attribute_map = { - "response_cache_type": {"key": "responseCacheType", "type": "str"}, - "size": {"key": "size", "type": "str"}, - "time_to_live": {"key": "timeToLive", "type": "str"}, - } - - def __init__(self, *, size: Optional[str] = None, time_to_live: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size: Maximum size of cache (10MB, 900KB, 1GB...) to determine if the cache needs to - evict some entries. - :paramtype size: str - :keyword time_to_live: Time before a cached entry is expired (300s, 5m, 1h...). - :paramtype time_to_live: str - """ - super().__init__(**kwargs) - self.response_cache_type: str = "LocalCachePerRoute" - self.size = size - self.time_to_live = time_to_live - - -class GatewayOperatorProperties(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayOperatorResourceRequests - :ivar instances: Collection of instances belong to Spring Cloud Gateway operator. - :vartype instances: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayInstance] - """ - - _validation = { - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "resource_requests": {"key": "resourceRequests", "type": "GatewayOperatorResourceRequests"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.resource_requests = None - self.instances = None - - -class GatewayOperatorResourceRequests(_serialization.Model): - """Properties of the Spring Cloud Gateway Operator. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway Operator instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway Operator instance. - :vartype memory: str - :ivar instance_count: Instance count of the Spring Cloud Gateway Operator. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class GatewayProperties(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Spring Cloud Gateway properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayProvisioningState - :ivar public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :vartype public: bool - :ivar url: URL of the Spring Cloud Gateway, exposed when 'public' is true. - :vartype url: str - :ivar https_only: Indicate if only https is allowed. - :vartype https_only: bool - :ivar sso_properties: Single sign-on related configuration. - :vartype sso_properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SsoProperties - :ivar api_metadata_properties: API metadata property for Spring Cloud Gateway. - :vartype api_metadata_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayApiMetadataProperties - :ivar cors_properties: Cross-Origin Resource Sharing property. - :vartype cors_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCorsProperties - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayPropertiesClientAuth - :ivar apm_types: Collection of APM type used in Spring Cloud Gateway. - :vartype apm_types: list[str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmType] - :ivar apms: Collection of ApmReferences in service level. - :vartype apms: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference] - :ivar environment_variables: Environment variables of Spring Cloud Gateway. - :vartype environment_variables: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayPropertiesEnvironmentVariables - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResourceRequests - :ivar addon_configs: Collection of addons for Spring Cloud Gateway. - :vartype addon_configs: dict[str, JSON] - :ivar instances: Collection of instances belong to Spring Cloud Gateway. - :vartype instances: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayInstance] - :ivar operator_properties: Properties of the Spring Cloud Gateway Operator. - :vartype operator_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayOperatorProperties - :ivar response_cache_properties: The properties to configure different types of response cache - for Spring Cloud Gateway. - :vartype response_cache_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResponseCacheProperties - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "url": {"readonly": True}, - "apm_types": {"unique": True}, - "instances": {"readonly": True}, - "operator_properties": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "public": {"key": "public", "type": "bool"}, - "url": {"key": "url", "type": "str"}, - "https_only": {"key": "httpsOnly", "type": "bool"}, - "sso_properties": {"key": "ssoProperties", "type": "SsoProperties"}, - "api_metadata_properties": {"key": "apiMetadataProperties", "type": "GatewayApiMetadataProperties"}, - "cors_properties": {"key": "corsProperties", "type": "GatewayCorsProperties"}, - "client_auth": {"key": "clientAuth", "type": "GatewayPropertiesClientAuth"}, - "apm_types": {"key": "apmTypes", "type": "[str]"}, - "apms": {"key": "apms", "type": "[ApmReference]"}, - "environment_variables": {"key": "environmentVariables", "type": "GatewayPropertiesEnvironmentVariables"}, - "resource_requests": {"key": "resourceRequests", "type": "GatewayResourceRequests"}, - "addon_configs": {"key": "addonConfigs", "type": "{object}"}, - "instances": {"key": "instances", "type": "[GatewayInstance]"}, - "operator_properties": {"key": "operatorProperties", "type": "GatewayOperatorProperties"}, - "response_cache_properties": {"key": "responseCacheProperties", "type": "GatewayResponseCacheProperties"}, - } - - def __init__( - self, - *, - public: bool = False, - https_only: bool = False, - sso_properties: Optional["_models.SsoProperties"] = None, - api_metadata_properties: Optional["_models.GatewayApiMetadataProperties"] = None, - cors_properties: Optional["_models.GatewayCorsProperties"] = None, - client_auth: Optional["_models.GatewayPropertiesClientAuth"] = None, - apm_types: Optional[List[Union[str, "_models.ApmType"]]] = None, - apms: Optional[List["_models.ApmReference"]] = None, - environment_variables: Optional["_models.GatewayPropertiesEnvironmentVariables"] = None, - resource_requests: Optional["_models.GatewayResourceRequests"] = None, - addon_configs: Optional[Dict[str, JSON]] = None, - response_cache_properties: Optional["_models.GatewayResponseCacheProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword public: Indicates whether the Spring Cloud Gateway exposes endpoint. - :paramtype public: bool - :keyword https_only: Indicate if only https is allowed. - :paramtype https_only: bool - :keyword sso_properties: Single sign-on related configuration. - :paramtype sso_properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SsoProperties - :keyword api_metadata_properties: API metadata property for Spring Cloud Gateway. - :paramtype api_metadata_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayApiMetadataProperties - :keyword cors_properties: Cross-Origin Resource Sharing property. - :paramtype cors_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCorsProperties - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayPropertiesClientAuth - :keyword apm_types: Collection of APM type used in Spring Cloud Gateway. - :paramtype apm_types: list[str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmType] - :keyword apms: Collection of ApmReferences in service level. - :paramtype apms: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference] - :keyword environment_variables: Environment variables of Spring Cloud Gateway. - :paramtype environment_variables: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayPropertiesEnvironmentVariables - :keyword resource_requests: The requested resource quantity for required CPU and Memory. - :paramtype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResourceRequests - :keyword addon_configs: Collection of addons for Spring Cloud Gateway. - :paramtype addon_configs: dict[str, JSON] - :keyword response_cache_properties: The properties to configure different types of response - cache for Spring Cloud Gateway. - :paramtype response_cache_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResponseCacheProperties - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.public = public - self.url = None - self.https_only = https_only - self.sso_properties = sso_properties - self.api_metadata_properties = api_metadata_properties - self.cors_properties = cors_properties - self.client_auth = client_auth - self.apm_types = apm_types - self.apms = apms - self.environment_variables = environment_variables - self.resource_requests = resource_requests - self.addon_configs = addon_configs - self.instances = None - self.operator_properties = None - self.response_cache_properties = response_cache_properties - - -class GatewayPropertiesClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource Ids in Azure Spring Apps. - :vartype certificates: list[str] - :ivar certificate_verification: Whether to enable certificate verification or not. Known values - are: "Enabled" and "Disabled". - :vartype certificate_verification: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCertificateVerification - """ - - _validation = { - "certificates": {"unique": True}, - } - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - "certificate_verification": {"key": "certificateVerification", "type": "str"}, - } - - def __init__( - self, - *, - certificates: Optional[List[str]] = None, - certificate_verification: Union[str, "_models.GatewayCertificateVerification"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword certificates: Collection of certificate resource Ids in Azure Spring Apps. - :paramtype certificates: list[str] - :keyword certificate_verification: Whether to enable certificate verification or not. Known - values are: "Enabled" and "Disabled". - :paramtype certificate_verification: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCertificateVerification - """ - super().__init__(**kwargs) - self.certificates = certificates - self.certificate_verification = certificate_verification - - -class GatewayPropertiesEnvironmentVariables(_serialization.Model): - """Environment variables of Spring Cloud Gateway. - - :ivar properties: Non-sensitive properties. - :vartype properties: dict[str, str] - :ivar secrets: Sensitive properties. - :vartype secrets: dict[str, str] - """ - - _attribute_map = { - "properties": {"key": "properties", "type": "{str}"}, - "secrets": {"key": "secrets", "type": "{str}"}, - } - - def __init__( - self, *, properties: Optional[Dict[str, str]] = None, secrets: Optional[Dict[str, str]] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Non-sensitive properties. - :paramtype properties: dict[str, str] - :keyword secrets: Sensitive properties. - :paramtype secrets: dict[str, str] - """ - super().__init__(**kwargs) - self.properties = properties - self.secrets = secrets - - -class GatewayResource(ProxyResource): - """Spring Cloud Gateway resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Spring Cloud Gateway properties payload. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayProperties - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.GatewayProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Spring Cloud Gateway properties payload. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayProperties - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class GatewayResourceCollection(_serialization.Model): - """Object that includes an array of gateway resources and a possible link for next set. - - :ivar value: Collection of gateway resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.GatewayResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of gateway resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GatewayResourceRequests(_serialization.Model): - """Resource request payload of Spring Cloud Gateway. - - :ivar cpu: Cpu allocated to each Spring Cloud Gateway instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Spring Cloud Gateway instance. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: str = "1", memory: str = "2Gi", **kwargs: Any) -> None: - """ - :keyword cpu: Cpu allocated to each Spring Cloud Gateway instance. - :paramtype cpu: str - :keyword memory: Memory allocated to each Spring Cloud Gateway instance. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class GatewayRouteConfigOpenApiProperties(_serialization.Model): - """OpenAPI properties of Spring Cloud Gateway route config. - - :ivar uri: The URI of OpenAPI specification. - :vartype uri: str - """ - - _attribute_map = { - "uri": {"key": "uri", "type": "str"}, - } - - def __init__(self, *, uri: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword uri: The URI of OpenAPI specification. - :paramtype uri: str - """ - super().__init__(**kwargs) - self.uri = uri - - -class GatewayRouteConfigProperties(_serialization.Model): - """API route config of the Spring Cloud Gateway. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Spring Cloud Gateway route config. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayProvisioningState - :ivar app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :vartype app_resource_id: str - :ivar open_api: OpenAPI properties of Spring Cloud Gateway route config. - :vartype open_api: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigOpenApiProperties - :ivar protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" and - "HTTPS". - :vartype protocol: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigProtocol - :ivar routes: Array of API routes, each route contains properties such as ``title``\ , ``uri``\ - , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :vartype routes: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayApiRoute] - :ivar sso_enabled: Enable Single Sign-On in app level. - :vartype sso_enabled: bool - :ivar predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :vartype predicates: list[str] - :ivar filters: To modify the request before sending it to the target endpoint, or the received - response in app level. - :vartype filters: list[str] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "app_resource_id": {"key": "appResourceId", "type": "str"}, - "open_api": {"key": "openApi", "type": "GatewayRouteConfigOpenApiProperties"}, - "protocol": {"key": "protocol", "type": "str"}, - "routes": {"key": "routes", "type": "[GatewayApiRoute]"}, - "sso_enabled": {"key": "ssoEnabled", "type": "bool"}, - "predicates": {"key": "predicates", "type": "[str]"}, - "filters": {"key": "filters", "type": "[str]"}, - } - - def __init__( - self, - *, - app_resource_id: Optional[str] = None, - open_api: Optional["_models.GatewayRouteConfigOpenApiProperties"] = None, - protocol: Union[str, "_models.GatewayRouteConfigProtocol"] = "HTTP", - routes: Optional[List["_models.GatewayApiRoute"]] = None, - sso_enabled: Optional[bool] = None, - predicates: Optional[List[str]] = None, - filters: Optional[List[str]] = None, - **kwargs: Any - ) -> None: - """ - :keyword app_resource_id: The resource Id of the Azure Spring Apps app, required unless route - defines ``uri``. - :paramtype app_resource_id: str - :keyword open_api: OpenAPI properties of Spring Cloud Gateway route config. - :paramtype open_api: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigOpenApiProperties - :keyword protocol: Protocol of routed Azure Spring Apps applications. Known values are: "HTTP" - and "HTTPS". - :paramtype protocol: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigProtocol - :keyword routes: Array of API routes, each route contains properties such as ``title``\ , - ``uri``\ , ``ssoEnabled``\ , ``predicates``\ , ``filters``. - :paramtype routes: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayApiRoute] - :keyword sso_enabled: Enable Single Sign-On in app level. - :paramtype sso_enabled: bool - :keyword predicates: A number of conditions to evaluate a route for each request in app level. - Each predicate may be evaluated against request headers and parameter values. All of the - predicates associated with a route must evaluate to true for the route to be matched to the - request. - :paramtype predicates: list[str] - :keyword filters: To modify the request before sending it to the target endpoint, or the - received response in app level. - :paramtype filters: list[str] - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.app_resource_id = app_resource_id - self.open_api = open_api - self.protocol = protocol - self.routes = routes - self.sso_enabled = sso_enabled - self.predicates = predicates - self.filters = filters - - -class GatewayRouteConfigResource(ProxyResource): - """Spring Cloud Gateway route config resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: API route config of the Spring Cloud Gateway. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "GatewayRouteConfigProperties"}, - } - - def __init__(self, *, properties: Optional["_models.GatewayRouteConfigProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: API route config of the Spring Cloud Gateway. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class GatewayRouteConfigResourceCollection(_serialization.Model): - """Object that includes an array of Spring Cloud Gateway route config resources and a possible - link for next set. - - :ivar value: Collection of Spring Cloud Gateway route config resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[GatewayRouteConfigResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.GatewayRouteConfigResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Spring Cloud Gateway route config resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class GitPatternRepository(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Git repository property payload for config server. - - All required parameters must be populated in order to send to server. - - :ivar name: Name of the repository. Required. - :vartype name: str - :ivar pattern: Collection of pattern of the repository. - :vartype pattern: list[str] - :ivar uri: URI of the repository. Required. - :vartype uri: str - :ivar label: Label of the repository. - :vartype label: str - :ivar search_paths: Searching path of the repository. - :vartype search_paths: list[str] - :ivar username: Username of git repository basic auth. - :vartype username: str - :ivar password: Password of git repository basic auth. - :vartype password: str - :ivar host_key: Public sshKey of git repository. - :vartype host_key: str - :ivar host_key_algorithm: SshKey algorithm of git repository. - :vartype host_key_algorithm: str - :ivar private_key: Private sshKey algorithm of git repository. - :vartype private_key: str - :ivar strict_host_key_checking: Strict host key checking or not. - :vartype strict_host_key_checking: bool - """ - - _validation = { - "name": {"required": True}, - "uri": {"required": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "pattern": {"key": "pattern", "type": "[str]"}, - "uri": {"key": "uri", "type": "str"}, - "label": {"key": "label", "type": "str"}, - "search_paths": {"key": "searchPaths", "type": "[str]"}, - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - "host_key": {"key": "hostKey", "type": "str"}, - "host_key_algorithm": {"key": "hostKeyAlgorithm", "type": "str"}, - "private_key": {"key": "privateKey", "type": "str"}, - "strict_host_key_checking": {"key": "strictHostKeyChecking", "type": "bool"}, - } - - def __init__( - self, - *, - name: str, - uri: str, - pattern: Optional[List[str]] = None, - label: Optional[str] = None, - search_paths: Optional[List[str]] = None, - username: Optional[str] = None, - password: Optional[str] = None, - host_key: Optional[str] = None, - host_key_algorithm: Optional[str] = None, - private_key: Optional[str] = None, - strict_host_key_checking: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the repository. Required. - :paramtype name: str - :keyword pattern: Collection of pattern of the repository. - :paramtype pattern: list[str] - :keyword uri: URI of the repository. Required. - :paramtype uri: str - :keyword label: Label of the repository. - :paramtype label: str - :keyword search_paths: Searching path of the repository. - :paramtype search_paths: list[str] - :keyword username: Username of git repository basic auth. - :paramtype username: str - :keyword password: Password of git repository basic auth. - :paramtype password: str - :keyword host_key: Public sshKey of git repository. - :paramtype host_key: str - :keyword host_key_algorithm: SshKey algorithm of git repository. - :paramtype host_key_algorithm: str - :keyword private_key: Private sshKey algorithm of git repository. - :paramtype private_key: str - :keyword strict_host_key_checking: Strict host key checking or not. - :paramtype strict_host_key_checking: bool - """ - super().__init__(**kwargs) - self.name = name - self.pattern = pattern - self.uri = uri - self.label = label - self.search_paths = search_paths - self.username = username - self.password = password - self.host_key = host_key - self.host_key_algorithm = host_key_algorithm - self.private_key = private_key - self.strict_host_key_checking = strict_host_key_checking - - -class GloballyEnabledApms(_serialization.Model): - """Globally enabled APMs payload. - - :ivar value: Collection of the globally enabled APMs. - :vartype value: list[str] - """ - - _attribute_map = { - "value": {"key": "value", "type": "[str]"}, - } - - def __init__(self, *, value: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword value: Collection of the globally enabled APMs. - :paramtype value: list[str] - """ - super().__init__(**kwargs) - self.value = value - - -class HTTPGetAction(ProbeAction): - """HTTPGetAction describes an action based on HTTP Get requests. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProbeActionType - :ivar path: Path to access on the HTTP server. - :vartype path: str - :ivar scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :vartype scheme: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.HTTPSchemeType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "path": {"key": "path", "type": "str"}, - "scheme": {"key": "scheme", "type": "str"}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - scheme: Optional[Union[str, "_models.HTTPSchemeType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword path: Path to access on the HTTP server. - :paramtype path: str - :keyword scheme: Scheme to use for connecting to the host. Defaults to HTTP. - - Possible enum values: - - - * ``"HTTP"`` means that the scheme used will be http:// - * ``"HTTPS"`` means that the scheme used will be https://. Known values are: "HTTP" and - "HTTPS". - :paramtype scheme: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.HTTPSchemeType - """ - super().__init__(**kwargs) - self.type: str = "HTTPGetAction" - self.path = path - self.scheme = scheme - - -class HttpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Http scaling rule. - - :ivar metadata: Metadata properties to describe http scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the custom scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe http scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the custom scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class ImageRegistryCredential(_serialization.Model): - """Credential of the image registry. - - :ivar username: The username of the image registry credential. - :vartype username: str - :ivar password: The password of the image registry credential. - :vartype password: str - """ - - _attribute_map = { - "username": {"key": "username", "type": "str"}, - "password": {"key": "password", "type": "str"}, - } - - def __init__(self, *, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword username: The username of the image registry credential. - :paramtype username: str - :keyword password: The password of the image registry credential. - :paramtype password: str - """ - super().__init__(**kwargs) - self.username = username - self.password = password - - -class IngressConfig(_serialization.Model): - """Ingress configuration payload for Azure Spring Apps resource. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - } - - def __init__(self, *, read_timeout_in_seconds: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - - -class IngressSettings(_serialization.Model): - """App ingress settings payload. - - :ivar read_timeout_in_seconds: Ingress read time out in seconds. - :vartype read_timeout_in_seconds: int - :ivar send_timeout_in_seconds: Ingress send time out in seconds. - :vartype send_timeout_in_seconds: int - :ivar session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :vartype session_affinity: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SessionAffinity - :ivar session_cookie_max_age: Time in seconds until the cookie expires. - :vartype session_cookie_max_age: int - :ivar backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :vartype backend_protocol: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BackendProtocol - :ivar client_auth: Client-Certification Authentication. - :vartype client_auth: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.IngressSettingsClientAuth - """ - - _attribute_map = { - "read_timeout_in_seconds": {"key": "readTimeoutInSeconds", "type": "int"}, - "send_timeout_in_seconds": {"key": "sendTimeoutInSeconds", "type": "int"}, - "session_affinity": {"key": "sessionAffinity", "type": "str"}, - "session_cookie_max_age": {"key": "sessionCookieMaxAge", "type": "int"}, - "backend_protocol": {"key": "backendProtocol", "type": "str"}, - "client_auth": {"key": "clientAuth", "type": "IngressSettingsClientAuth"}, - } - - def __init__( - self, - *, - read_timeout_in_seconds: Optional[int] = None, - send_timeout_in_seconds: Optional[int] = None, - session_affinity: Optional[Union[str, "_models.SessionAffinity"]] = None, - session_cookie_max_age: Optional[int] = None, - backend_protocol: Optional[Union[str, "_models.BackendProtocol"]] = None, - client_auth: Optional["_models.IngressSettingsClientAuth"] = None, - **kwargs: Any - ) -> None: - """ - :keyword read_timeout_in_seconds: Ingress read time out in seconds. - :paramtype read_timeout_in_seconds: int - :keyword send_timeout_in_seconds: Ingress send time out in seconds. - :paramtype send_timeout_in_seconds: int - :keyword session_affinity: Type of the affinity, set this to Cookie to enable session affinity. - Known values are: "Cookie" and "None". - :paramtype session_affinity: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SessionAffinity - :keyword session_cookie_max_age: Time in seconds until the cookie expires. - :paramtype session_cookie_max_age: int - :keyword backend_protocol: How ingress should communicate with this app backend service. Known - values are: "GRPC" and "Default". - :paramtype backend_protocol: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BackendProtocol - :keyword client_auth: Client-Certification Authentication. - :paramtype client_auth: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.IngressSettingsClientAuth - """ - super().__init__(**kwargs) - self.read_timeout_in_seconds = read_timeout_in_seconds - self.send_timeout_in_seconds = send_timeout_in_seconds - self.session_affinity = session_affinity - self.session_cookie_max_age = session_cookie_max_age - self.backend_protocol = backend_protocol - self.client_auth = client_auth - - -class IngressSettingsClientAuth(_serialization.Model): - """Client-Certification Authentication. - - :ivar certificates: Collection of certificate resource id. - :vartype certificates: list[str] - """ - - _attribute_map = { - "certificates": {"key": "certificates", "type": "[str]"}, - } - - def __init__(self, *, certificates: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword certificates: Collection of certificate resource id. - :paramtype certificates: list[str] - """ - super().__init__(**kwargs) - self.certificates = certificates - - -class UploadedUserSourceInfo(UserSourceInfo): - """Source with uploaded location. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - JarUploadedUserSourceInfo, NetCoreZipUploadedUserSourceInfo, SourceUploadedUserSourceInfo, - WarUploadedUserSourceInfo - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - } - - _subtype_map = { - "type": { - "Jar": "JarUploadedUserSourceInfo", - "NetCoreZip": "NetCoreZipUploadedUserSourceInfo", - "Source": "SourceUploadedUserSourceInfo", - "War": "WarUploadedUserSourceInfo", - } - } - - def __init__(self, *, version: Optional[str] = None, relative_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - """ - super().__init__(version=version, **kwargs) - self.type: str = "UploadedUserSourceInfo" - self.relative_path = relative_path - - -class JarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the Jar file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the Jar file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Jar" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - - -class KeyVaultCertificateProperties(CertificateProperties): # pylint: disable=too-many-instance-attributes - """Properties of certificate imported from key vault. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the certificate source. Required. - :vartype type: str - :ivar thumbprint: The thumbprint of certificate. - :vartype thumbprint: str - :ivar issuer: The issuer of certificate. - :vartype issuer: str - :ivar issued_date: The issue date of certificate. - :vartype issued_date: str - :ivar expiration_date: The expiration date of certificate. - :vartype expiration_date: str - :ivar activate_date: The activate date of certificate. - :vartype activate_date: str - :ivar subject_name: The subject name of certificate. - :vartype subject_name: str - :ivar dns_names: The domain list of certificate. - :vartype dns_names: list[str] - :ivar provisioning_state: Provisioning state of the Certificate. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResourceProvisioningState - :ivar vault_uri: The vault uri of user key vault. Required. - :vartype vault_uri: str - :ivar key_vault_cert_name: The certificate name of key vault. Required. - :vartype key_vault_cert_name: str - :ivar cert_version: The certificate version of key vault. - :vartype cert_version: str - :ivar exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :vartype exclude_private_key: bool - :ivar auto_sync: Indicates whether to automatically synchronize certificate from key vault or - not. Known values are: "Disabled" and "Enabled". - :vartype auto_sync: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.KeyVaultCertificateAutoSync - """ - - _validation = { - "type": {"required": True}, - "thumbprint": {"readonly": True}, - "issuer": {"readonly": True}, - "issued_date": {"readonly": True}, - "expiration_date": {"readonly": True}, - "activate_date": {"readonly": True}, - "subject_name": {"readonly": True}, - "dns_names": {"readonly": True}, - "provisioning_state": {"readonly": True}, - "vault_uri": {"required": True}, - "key_vault_cert_name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "thumbprint": {"key": "thumbprint", "type": "str"}, - "issuer": {"key": "issuer", "type": "str"}, - "issued_date": {"key": "issuedDate", "type": "str"}, - "expiration_date": {"key": "expirationDate", "type": "str"}, - "activate_date": {"key": "activateDate", "type": "str"}, - "subject_name": {"key": "subjectName", "type": "str"}, - "dns_names": {"key": "dnsNames", "type": "[str]"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "vault_uri": {"key": "vaultUri", "type": "str"}, - "key_vault_cert_name": {"key": "keyVaultCertName", "type": "str"}, - "cert_version": {"key": "certVersion", "type": "str"}, - "exclude_private_key": {"key": "excludePrivateKey", "type": "bool"}, - "auto_sync": {"key": "autoSync", "type": "str"}, - } - - def __init__( - self, - *, - vault_uri: str, - key_vault_cert_name: str, - cert_version: Optional[str] = None, - exclude_private_key: bool = False, - auto_sync: Union[str, "_models.KeyVaultCertificateAutoSync"] = "Disabled", - **kwargs: Any - ) -> None: - """ - :keyword vault_uri: The vault uri of user key vault. Required. - :paramtype vault_uri: str - :keyword key_vault_cert_name: The certificate name of key vault. Required. - :paramtype key_vault_cert_name: str - :keyword cert_version: The certificate version of key vault. - :paramtype cert_version: str - :keyword exclude_private_key: Optional. If set to true, it will not import private key from key - vault. - :paramtype exclude_private_key: bool - :keyword auto_sync: Indicates whether to automatically synchronize certificate from key vault - or not. Known values are: "Disabled" and "Enabled". - :paramtype auto_sync: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.KeyVaultCertificateAutoSync - """ - super().__init__(**kwargs) - self.type: str = "KeyVaultCertificate" - self.vault_uri = vault_uri - self.key_vault_cert_name = key_vault_cert_name - self.cert_version = cert_version - self.exclude_private_key = exclude_private_key - self.auto_sync = auto_sync - - -class LoadedCertificate(_serialization.Model): - """Loaded certificate payload. - - All required parameters must be populated in order to send to server. - - :ivar resource_id: Resource Id of loaded certificate. Required. - :vartype resource_id: str - :ivar load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :vartype load_trust_store: bool - """ - - _validation = { - "resource_id": {"required": True}, - } - - _attribute_map = { - "resource_id": {"key": "resourceId", "type": "str"}, - "load_trust_store": {"key": "loadTrustStore", "type": "bool"}, - } - - def __init__(self, *, resource_id: str, load_trust_store: bool = False, **kwargs: Any) -> None: - """ - :keyword resource_id: Resource Id of loaded certificate. Required. - :paramtype resource_id: str - :keyword load_trust_store: Indicate whether the certificate will be loaded into default trust - store, only work for Java runtime. - :paramtype load_trust_store: bool - """ - super().__init__(**kwargs) - self.resource_id = resource_id - self.load_trust_store = load_trust_store - - -class LogFileUrlResponse(_serialization.Model): - """Log file URL payload. - - All required parameters must be populated in order to send to server. - - :ivar url: URL of the log file. Required. - :vartype url: str - """ - - _validation = { - "url": {"required": True}, - } - - _attribute_map = { - "url": {"key": "url", "type": "str"}, - } - - def __init__(self, *, url: str, **kwargs: Any) -> None: - """ - :keyword url: URL of the log file. Required. - :paramtype url: str - """ - super().__init__(**kwargs) - self.url = url - - -class LogSpecification(_serialization.Model): - """Specifications of the Log for Azure Monitoring. - - :ivar name: Name of the log. - :vartype name: str - :ivar display_name: Localized friendly display name of the log. - :vartype display_name: str - :ivar blob_duration: Blob duration of the log. - :vartype blob_duration: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - blob_duration: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the log. - :paramtype name: str - :keyword display_name: Localized friendly display name of the log. - :paramtype display_name: str - :keyword blob_duration: Blob duration of the log. - :paramtype blob_duration: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.blob_duration = blob_duration - - -class MaintenanceScheduleConfiguration(_serialization.Model): - """Configuration for the planned maintenance. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - WeeklyMaintenanceScheduleConfiguration - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.Frequency - """ - - _validation = { - "frequency": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - } - - _subtype_map = {"frequency": {"Weekly": "WeeklyMaintenanceScheduleConfiguration"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.frequency: Optional[str] = None - - -class ManagedIdentityProperties(_serialization.Model): - """Managed identity properties retrieved from ARM request headers. - - :ivar type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ManagedIdentityType - :ivar principal_id: Principal Id of system-assigned managed identity. - :vartype principal_id: str - :ivar tenant_id: Tenant Id of system-assigned managed identity. - :vartype tenant_id: str - :ivar user_assigned_identities: Properties of user-assigned managed identities. - :vartype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2024_01_01_preview.models.UserAssignedManagedIdentity] - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "principal_id": {"key": "principalId", "type": "str"}, - "tenant_id": {"key": "tenantId", "type": "str"}, - "user_assigned_identities": {"key": "userAssignedIdentities", "type": "{UserAssignedManagedIdentity}"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ManagedIdentityType"]] = None, - principal_id: Optional[str] = None, - tenant_id: Optional[str] = None, - user_assigned_identities: Optional[Dict[str, "_models.UserAssignedManagedIdentity"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Type of the managed identity. Known values are: "None", "SystemAssigned", - "UserAssigned", and "SystemAssigned,UserAssigned". - :paramtype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ManagedIdentityType - :keyword principal_id: Principal Id of system-assigned managed identity. - :paramtype principal_id: str - :keyword tenant_id: Tenant Id of system-assigned managed identity. - :paramtype tenant_id: str - :keyword user_assigned_identities: Properties of user-assigned managed identities. - :paramtype user_assigned_identities: dict[str, - ~azure.mgmt.appplatform.v2024_01_01_preview.models.UserAssignedManagedIdentity] - """ - super().__init__(**kwargs) - self.type = type - self.principal_id = principal_id - self.tenant_id = tenant_id - self.user_assigned_identities = user_assigned_identities - - -class MarketplaceResource(_serialization.Model): - """Purchasing 3rd Party product for one Azure Spring Apps instance. - - :ivar plan: The plan id of the 3rd Party Artifact that is being procured. - :vartype plan: str - :ivar publisher: The publisher id of the 3rd Party Artifact that is being bought. - :vartype publisher: str - :ivar product: The 3rd Party artifact that is being procured. - :vartype product: str - """ - - _attribute_map = { - "plan": {"key": "plan", "type": "str"}, - "publisher": {"key": "publisher", "type": "str"}, - "product": {"key": "product", "type": "str"}, - } - - def __init__( - self, - *, - plan: Optional[str] = None, - publisher: Optional[str] = None, - product: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword plan: The plan id of the 3rd Party Artifact that is being procured. - :paramtype plan: str - :keyword publisher: The publisher id of the 3rd Party Artifact that is being bought. - :paramtype publisher: str - :keyword product: The 3rd Party artifact that is being procured. - :paramtype product: str - """ - super().__init__(**kwargs) - self.plan = plan - self.publisher = publisher - self.product = product - - -class MetricDimension(_serialization.Model): - """Specifications of the Dimension of metrics. - - :ivar name: Name of the dimension. - :vartype name: str - :ivar display_name: Localized friendly display name of the dimension. - :vartype display_name: str - :ivar to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :vartype to_be_exported_for_shoebox: bool - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "to_be_exported_for_shoebox": {"key": "toBeExportedForShoebox", "type": "bool"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - to_be_exported_for_shoebox: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the dimension. - :paramtype name: str - :keyword display_name: Localized friendly display name of the dimension. - :paramtype display_name: str - :keyword to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox - export scenario. - :paramtype to_be_exported_for_shoebox: bool - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.to_be_exported_for_shoebox = to_be_exported_for_shoebox - - -class MetricSpecification(_serialization.Model): # pylint: disable=too-many-instance-attributes - """Specifications of the Metrics for Azure Monitoring. - - :ivar name: Name of the metric. - :vartype name: str - :ivar display_name: Localized friendly display name of the metric. - :vartype display_name: str - :ivar display_description: Localized friendly description of the metric. - :vartype display_description: str - :ivar unit: Unit that makes sense for the metric. - :vartype unit: str - :ivar category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :vartype category: str - :ivar aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, - Maximum, Total, Count. - :vartype aggregation_type: str - :ivar supported_aggregation_types: Supported aggregation types. - :vartype supported_aggregation_types: list[str] - :ivar supported_time_grain_types: Supported time grain types. - :vartype supported_time_grain_types: list[str] - :ivar fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :vartype fill_gap_with_zero: bool - :ivar dimensions: Dimensions of the metric. - :vartype dimensions: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.MetricDimension] - :ivar source_mdm_namespace: Name of the MDM namespace. Optional. - :vartype source_mdm_namespace: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "category": {"key": "category", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "supported_aggregation_types": {"key": "supportedAggregationTypes", "type": "[str]"}, - "supported_time_grain_types": {"key": "supportedTimeGrainTypes", "type": "[str]"}, - "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"}, - "dimensions": {"key": "dimensions", "type": "[MetricDimension]"}, - "source_mdm_namespace": {"key": "sourceMdmNamespace", "type": "str"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - display_name: Optional[str] = None, - display_description: Optional[str] = None, - unit: Optional[str] = None, - category: Optional[str] = None, - aggregation_type: Optional[str] = None, - supported_aggregation_types: Optional[List[str]] = None, - supported_time_grain_types: Optional[List[str]] = None, - fill_gap_with_zero: Optional[bool] = None, - dimensions: Optional[List["_models.MetricDimension"]] = None, - source_mdm_namespace: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the metric. - :paramtype name: str - :keyword display_name: Localized friendly display name of the metric. - :paramtype display_name: str - :keyword display_description: Localized friendly description of the metric. - :paramtype display_description: str - :keyword unit: Unit that makes sense for the metric. - :paramtype unit: str - :keyword category: Name of the metric category that the metric belongs to. A metric can only - belong to a single category. - :paramtype category: str - :keyword aggregation_type: Only provide one value for this field. Valid values: Average, - Minimum, Maximum, Total, Count. - :paramtype aggregation_type: str - :keyword supported_aggregation_types: Supported aggregation types. - :paramtype supported_aggregation_types: list[str] - :keyword supported_time_grain_types: Supported time grain types. - :paramtype supported_time_grain_types: list[str] - :keyword fill_gap_with_zero: Optional. If set to true, then zero will be returned for time - duration where no metric is emitted/published. - :paramtype fill_gap_with_zero: bool - :keyword dimensions: Dimensions of the metric. - :paramtype dimensions: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.MetricDimension] - :keyword source_mdm_namespace: Name of the MDM namespace. Optional. - :paramtype source_mdm_namespace: str - """ - super().__init__(**kwargs) - self.name = name - self.display_name = display_name - self.display_description = display_description - self.unit = unit - self.category = category - self.aggregation_type = aggregation_type - self.supported_aggregation_types = supported_aggregation_types - self.supported_time_grain_types = supported_time_grain_types - self.fill_gap_with_zero = fill_gap_with_zero - self.dimensions = dimensions - self.source_mdm_namespace = source_mdm_namespace - - -class MonitoringSettingProperties(_serialization.Model): - """Monitoring Setting properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Monitoring Setting. Known values are: "NotAvailable", - "Failed", "Succeeded", and "Updating". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingState - :ivar error: Error when apply Monitoring Setting changes. - :vartype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - :ivar trace_enabled: Indicates whether enable the trace functionality, which will be deprecated - since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate - if monitoringSettings enabled or not. - :vartype trace_enabled: bool - :ivar app_insights_instrumentation_key: Target application insight instrumentation key, null or - whitespace include empty will disable monitoringSettings. - :vartype app_insights_instrumentation_key: str - :ivar app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :vartype app_insights_sampling_rate: float - :ivar app_insights_agent_versions: Indicates the versions of application insight agent. - :vartype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationInsightsAgentVersions - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "app_insights_sampling_rate": {"maximum": 100, "minimum": 0}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "error": {"key": "error", "type": "Error"}, - "trace_enabled": {"key": "traceEnabled", "type": "bool"}, - "app_insights_instrumentation_key": {"key": "appInsightsInstrumentationKey", "type": "str"}, - "app_insights_sampling_rate": {"key": "appInsightsSamplingRate", "type": "float"}, - "app_insights_agent_versions": {"key": "appInsightsAgentVersions", "type": "ApplicationInsightsAgentVersions"}, - } - - def __init__( - self, - *, - error: Optional["_models.Error"] = None, - trace_enabled: Optional[bool] = None, - app_insights_instrumentation_key: Optional[str] = None, - app_insights_sampling_rate: Optional[float] = None, - app_insights_agent_versions: Optional["_models.ApplicationInsightsAgentVersions"] = None, - **kwargs: Any - ) -> None: - """ - :keyword error: Error when apply Monitoring Setting changes. - :paramtype error: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Error - :keyword trace_enabled: Indicates whether enable the trace functionality, which will be - deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey - to indicate if monitoringSettings enabled or not. - :paramtype trace_enabled: bool - :keyword app_insights_instrumentation_key: Target application insight instrumentation key, null - or whitespace include empty will disable monitoringSettings. - :paramtype app_insights_instrumentation_key: str - :keyword app_insights_sampling_rate: Indicates the sampling rate of application insight agent, - should be in range [0.0, 100.0]. - :paramtype app_insights_sampling_rate: float - :keyword app_insights_agent_versions: Indicates the versions of application insight agent. - :paramtype app_insights_agent_versions: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationInsightsAgentVersions - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.error = error - self.trace_enabled = trace_enabled - self.app_insights_instrumentation_key = app_insights_instrumentation_key - self.app_insights_sampling_rate = app_insights_sampling_rate - self.app_insights_agent_versions = app_insights_agent_versions - - -class MonitoringSettingResource(ProxyResource): - """Monitoring Setting resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the Monitoring Setting resource. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "MonitoringSettingProperties"}, - } - - def __init__(self, *, properties: Optional["_models.MonitoringSettingProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the Monitoring Setting resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class NameAvailability(_serialization.Model): - """Name availability result payload. - - :ivar name_available: Indicates whether the name is available. - :vartype name_available: bool - :ivar reason: Reason why the name is not available. - :vartype reason: str - :ivar message: Message why the name is not available. - :vartype message: str - """ - - _attribute_map = { - "name_available": {"key": "nameAvailable", "type": "bool"}, - "reason": {"key": "reason", "type": "str"}, - "message": {"key": "message", "type": "str"}, - } - - def __init__( - self, - *, - name_available: Optional[bool] = None, - reason: Optional[str] = None, - message: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword name_available: Indicates whether the name is available. - :paramtype name_available: bool - :keyword reason: Reason why the name is not available. - :paramtype reason: str - :keyword message: Message why the name is not available. - :paramtype message: str - """ - super().__init__(**kwargs) - self.name_available = name_available - self.reason = reason - self.message = message - - -class NameAvailabilityParameters(_serialization.Model): - """Name availability parameters payload. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the resource to check name availability. Required. - :vartype type: str - :ivar name: Name to be checked. Required. - :vartype name: str - """ - - _validation = { - "type": {"required": True}, - "name": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, type: str, name: str, **kwargs: Any) -> None: - """ - :keyword type: Type of the resource to check name availability. Required. - :paramtype type: str - :keyword name: Name to be checked. Required. - :paramtype name: str - """ - super().__init__(**kwargs) - self.type = type - self.name = name - - -class NetCoreZipUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Jar binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar net_core_main_entry_path: The path to the .NET executable relative to zip root. - :vartype net_core_main_entry_path: str - :ivar runtime_version: Runtime version of the .Net file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "net_core_main_entry_path": {"key": "netCoreMainEntryPath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - net_core_main_entry_path: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword net_core_main_entry_path: The path to the .NET executable relative to zip root. - :paramtype net_core_main_entry_path: str - :keyword runtime_version: Runtime version of the .Net file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "NetCoreZip" - self.net_core_main_entry_path = net_core_main_entry_path - self.runtime_version = runtime_version - - -class NetworkProfile(_serialization.Model): - """Service network profile payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure Spring - Apps Service Runtime. - :vartype service_runtime_subnet_id: str - :ivar app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in Azure - Spring Apps. - :vartype app_subnet_id: str - :ivar service_cidr: Azure Spring Apps service reserved CIDR. - :vartype service_cidr: str - :ivar service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :vartype service_runtime_network_resource_group: str - :ivar app_network_resource_group: Name of the resource group containing network resources for - customer apps in Azure Spring Apps. - :vartype app_network_resource_group: str - :ivar outbound_i_ps: Desired outbound IP resources for Azure Spring Apps resource. - :vartype outbound_i_ps: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.NetworkProfileOutboundIPs - :ivar required_traffics: Required inbound or outbound traffics for Azure Spring Apps resource. - :vartype required_traffics: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.RequiredTraffic] - :ivar ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :vartype ingress_config: ~azure.mgmt.appplatform.v2024_01_01_preview.models.IngressConfig - :ivar outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :vartype outbound_type: str - """ - - _validation = { - "outbound_i_ps": {"readonly": True}, - "required_traffics": {"readonly": True}, - } - - _attribute_map = { - "service_runtime_subnet_id": {"key": "serviceRuntimeSubnetId", "type": "str"}, - "app_subnet_id": {"key": "appSubnetId", "type": "str"}, - "service_cidr": {"key": "serviceCidr", "type": "str"}, - "service_runtime_network_resource_group": {"key": "serviceRuntimeNetworkResourceGroup", "type": "str"}, - "app_network_resource_group": {"key": "appNetworkResourceGroup", "type": "str"}, - "outbound_i_ps": {"key": "outboundIPs", "type": "NetworkProfileOutboundIPs"}, - "required_traffics": {"key": "requiredTraffics", "type": "[RequiredTraffic]"}, - "ingress_config": {"key": "ingressConfig", "type": "IngressConfig"}, - "outbound_type": {"key": "outboundType", "type": "str"}, - } - - def __init__( - self, - *, - service_runtime_subnet_id: Optional[str] = None, - app_subnet_id: Optional[str] = None, - service_cidr: Optional[str] = None, - service_runtime_network_resource_group: Optional[str] = None, - app_network_resource_group: Optional[str] = None, - ingress_config: Optional["_models.IngressConfig"] = None, - outbound_type: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword service_runtime_subnet_id: Fully qualified resource Id of the subnet to host Azure - Spring Apps Service Runtime. - :paramtype service_runtime_subnet_id: str - :keyword app_subnet_id: Fully qualified resource Id of the subnet to host customer apps in - Azure Spring Apps. - :paramtype app_subnet_id: str - :keyword service_cidr: Azure Spring Apps service reserved CIDR. - :paramtype service_cidr: str - :keyword service_runtime_network_resource_group: Name of the resource group containing network - resources of Azure Spring Apps Service Runtime. - :paramtype service_runtime_network_resource_group: str - :keyword app_network_resource_group: Name of the resource group containing network resources - for customer apps in Azure Spring Apps. - :paramtype app_network_resource_group: str - :keyword ingress_config: Ingress configuration payload for Azure Spring Apps resource. - :paramtype ingress_config: ~azure.mgmt.appplatform.v2024_01_01_preview.models.IngressConfig - :keyword outbound_type: The egress traffic type of Azure Spring Apps VNet instances. - :paramtype outbound_type: str - """ - super().__init__(**kwargs) - self.service_runtime_subnet_id = service_runtime_subnet_id - self.app_subnet_id = app_subnet_id - self.service_cidr = service_cidr - self.service_runtime_network_resource_group = service_runtime_network_resource_group - self.app_network_resource_group = app_network_resource_group - self.outbound_i_ps = None - self.required_traffics = None - self.ingress_config = ingress_config - self.outbound_type = outbound_type - - -class NetworkProfileOutboundIPs(_serialization.Model): - """Desired outbound IP resources for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar public_i_ps: A list of public IP addresses. - :vartype public_i_ps: list[str] - """ - - _validation = { - "public_i_ps": {"readonly": True}, - } - - _attribute_map = { - "public_i_ps": {"key": "publicIPs", "type": "[str]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.public_i_ps = None - - -class OperationDetail(_serialization.Model): - """Operation detail payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the operation. - :vartype name: str - :ivar is_data_action: Indicates whether the operation is a data action. - :vartype is_data_action: bool - :ivar display: Display of the operation. - :vartype display: ~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationDisplay - :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for - internal only APIs. "Internal" - :vartype action_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ActionType - :ivar origin: Origin of the operation. - :vartype origin: str - :ivar properties: Properties of the operation. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationProperties - """ - - _validation = { - "action_type": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "is_data_action": {"key": "isDataAction", "type": "bool"}, - "display": {"key": "display", "type": "OperationDisplay"}, - "action_type": {"key": "actionType", "type": "str"}, - "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, - display: Optional["_models.OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional["_models.OperationProperties"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Name of the operation. - :paramtype name: str - :keyword is_data_action: Indicates whether the operation is a data action. - :paramtype is_data_action: bool - :keyword display: Display of the operation. - :paramtype display: ~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationDisplay - :keyword origin: Origin of the operation. - :paramtype origin: str - :keyword properties: Properties of the operation. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationProperties - """ - super().__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action - self.display = display - self.action_type = None - self.origin = origin - self.properties = properties - - -class OperationDisplay(_serialization.Model): - """Operation display payload. - - :ivar provider: Resource provider of the operation. - :vartype provider: str - :ivar resource: Resource of the operation. - :vartype resource: str - :ivar operation: Localized friendly name for the operation. - :vartype operation: str - :ivar description: Localized friendly description for the operation. - :vartype description: str - """ - - _attribute_map = { - "provider": {"key": "provider", "type": "str"}, - "resource": {"key": "resource", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, - "description": {"key": "description", "type": "str"}, - } - - def __init__( - self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword provider: Resource provider of the operation. - :paramtype provider: str - :keyword resource: Resource of the operation. - :paramtype resource: str - :keyword operation: Localized friendly name for the operation. - :paramtype operation: str - :keyword description: Localized friendly description for the operation. - :paramtype description: str - """ - super().__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description - - -class OperationProperties(_serialization.Model): - """Extra Operation properties. - - :ivar service_specification: Service specifications of the operation. - :vartype service_specification: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceSpecification - """ - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "ServiceSpecification"}, - } - - def __init__( - self, *, service_specification: Optional["_models.ServiceSpecification"] = None, **kwargs: Any - ) -> None: - """ - :keyword service_specification: Service specifications of the operation. - :paramtype service_specification: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceSpecification - """ - super().__init__(**kwargs) - self.service_specification = service_specification - - -class PersistentDisk(_serialization.Model): - """Persistent disk payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar size_in_gb: Size of the persistent disk in GB. - :vartype size_in_gb: int - :ivar used_in_gb: Size of the used persistent disk in GB. - :vartype used_in_gb: int - :ivar mount_path: Mount path of the persistent disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 50, "minimum": 0}, - "used_in_gb": {"readonly": True, "maximum": 50, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "used_in_gb": {"key": "usedInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the persistent disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the persistent disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.used_in_gb = None - self.mount_path = mount_path - - -class PredefinedAcceleratorProperties(_serialization.Model): - """Predefined accelerator properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: Provisioning state of the predefined accelerator. Known values are: - "Creating", "Updating", "Succeeded", "Failed", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorProvisioningState - :ivar display_name: - :vartype display_name: str - :ivar description: - :vartype description: str - :ivar icon_url: - :vartype icon_url: str - :ivar accelerator_tags: - :vartype accelerator_tags: list[str] - :ivar state: State of the predefined accelerator. Known values are: "Enabled" and "Disabled". - :vartype state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorState - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "display_name": {"readonly": True}, - "description": {"readonly": True}, - "icon_url": {"readonly": True}, - "accelerator_tags": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "description": {"key": "description", "type": "str"}, - "icon_url": {"key": "iconUrl", "type": "str"}, - "accelerator_tags": {"key": "acceleratorTags", "type": "[str]"}, - "state": {"key": "state", "type": "str"}, - } - - def __init__(self, *, state: Union[str, "_models.PredefinedAcceleratorState"] = "Enabled", **kwargs: Any) -> None: - """ - :keyword state: State of the predefined accelerator. Known values are: "Enabled" and - "Disabled". - :paramtype state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorState - """ - super().__init__(**kwargs) - self.provisioning_state = None - self.display_name = None - self.description = None - self.icon_url = None - self.accelerator_tags = None - self.state = state - - -class PredefinedAcceleratorResource(ProxyResource): - """Predefined accelerator resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Predefined accelerator properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorProperties - :ivar sku: Sku of the predefined accelerator resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "PredefinedAcceleratorProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - properties: Optional["_models.PredefinedAcceleratorProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword properties: Predefined accelerator properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorProperties - :keyword sku: Sku of the predefined accelerator resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.properties = properties - self.sku = sku - - -class PredefinedAcceleratorResourceCollection(_serialization.Model): - """PredefinedAcceleratorResourceCollection. - - :ivar value: - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorResource] - :ivar next_link: - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[PredefinedAcceleratorResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.PredefinedAcceleratorResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorResource] - :keyword next_link: - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class Probe(_serialization.Model): - """Probe describes a health check to be performed against an App Instance to determine whether it - is alive or ready to receive traffic. - - All required parameters must be populated in order to send to server. - - :ivar probe_action: The action of the probe. - :vartype probe_action: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProbeAction - :ivar disable_probe: Indicate whether the probe is disabled. Required. - :vartype disable_probe: bool - :ivar initial_delay_seconds: Number of seconds after the App Instance has started before probes - are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :vartype initial_delay_seconds: int - :ivar period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :vartype period_seconds: int - :ivar timeout_seconds: Number of seconds after which the probe times out. Minimum value is 1. - :vartype timeout_seconds: int - :ivar failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :vartype failure_threshold: int - :ivar success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :vartype success_threshold: int - """ - - _validation = { - "disable_probe": {"required": True}, - } - - _attribute_map = { - "probe_action": {"key": "probeAction", "type": "ProbeAction"}, - "disable_probe": {"key": "disableProbe", "type": "bool"}, - "initial_delay_seconds": {"key": "initialDelaySeconds", "type": "int"}, - "period_seconds": {"key": "periodSeconds", "type": "int"}, - "timeout_seconds": {"key": "timeoutSeconds", "type": "int"}, - "failure_threshold": {"key": "failureThreshold", "type": "int"}, - "success_threshold": {"key": "successThreshold", "type": "int"}, - } - - def __init__( - self, - *, - disable_probe: bool = False, - probe_action: Optional["_models.ProbeAction"] = None, - initial_delay_seconds: Optional[int] = None, - period_seconds: Optional[int] = None, - timeout_seconds: Optional[int] = None, - failure_threshold: Optional[int] = None, - success_threshold: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword probe_action: The action of the probe. - :paramtype probe_action: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProbeAction - :keyword disable_probe: Indicate whether the probe is disabled. Required. - :paramtype disable_probe: bool - :keyword initial_delay_seconds: Number of seconds after the App Instance has started before - probes are initiated. More info: - https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes. - :paramtype initial_delay_seconds: int - :keyword period_seconds: How often (in seconds) to perform the probe. Minimum value is 1. - :paramtype period_seconds: int - :keyword timeout_seconds: Number of seconds after which the probe times out. Minimum value is - 1. - :paramtype timeout_seconds: int - :keyword failure_threshold: Minimum consecutive failures for the probe to be considered failed - after having succeeded. Minimum value is 1. - :paramtype failure_threshold: int - :keyword success_threshold: Minimum consecutive successes for the probe to be considered - successful after having failed. Must be 1 for liveness and startup. Minimum value is 1. - :paramtype success_threshold: int - """ - super().__init__(**kwargs) - self.probe_action = probe_action - self.disable_probe = disable_probe - self.initial_delay_seconds = initial_delay_seconds - self.period_seconds = period_seconds - self.timeout_seconds = timeout_seconds - self.failure_threshold = failure_threshold - self.success_threshold = success_threshold - - -class QueueScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Azure Queue based scaling rule. - - :ivar queue_name: Queue name. - :vartype queue_name: str - :ivar queue_length: Queue length. - :vartype queue_length: int - :ivar auth: Authentication secrets for the queue scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "queue_name": {"key": "queueName", "type": "str"}, - "queue_length": {"key": "queueLength", "type": "int"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - queue_name: Optional[str] = None, - queue_length: Optional[int] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword queue_name: Queue name. - :paramtype queue_name: str - :keyword queue_length: Queue length. - :paramtype queue_length: int - :keyword auth: Authentication secrets for the queue scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.queue_name = queue_name - self.queue_length = queue_length - self.auth = auth - - -class RegenerateTestKeyRequestPayload(_serialization.Model): - """Regenerate test key request payload. - - All required parameters must be populated in order to send to server. - - :ivar key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :vartype key_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeyType - """ - - _validation = { - "key_type": {"required": True}, - } - - _attribute_map = { - "key_type": {"key": "keyType", "type": "str"}, - } - - def __init__(self, *, key_type: Union[str, "_models.TestKeyType"], **kwargs: Any) -> None: - """ - :keyword key_type: Type of the test key. Required. Known values are: "Primary" and "Secondary". - :paramtype key_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeyType - """ - super().__init__(**kwargs) - self.key_type = key_type - - -class RemoteDebugging(_serialization.Model): - """Remote debugging config. - - :ivar port: Application debugging port. - :vartype port: int - :ivar enabled: Indicate if remote debugging is enabled. - :vartype enabled: bool - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__(self, *, port: Optional[int] = None, enabled: Optional[bool] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - :keyword enabled: Indicate if remote debugging is enabled. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.port = port - self.enabled = enabled - - -class RemoteDebuggingPayload(_serialization.Model): - """Remote debugging payload. - - :ivar port: Application debugging port. - :vartype port: int - """ - - _attribute_map = { - "port": {"key": "port", "type": "int"}, - } - - def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: - """ - :keyword port: Application debugging port. - :paramtype port: int - """ - super().__init__(**kwargs) - self.port = port - - -class RequiredTraffic(_serialization.Model): - """Required inbound or outbound traffic for Azure Spring Apps resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar protocol: The protocol of required traffic. - :vartype protocol: str - :ivar port: The port of required traffic. - :vartype port: int - :ivar ips: The ip list of required traffic. - :vartype ips: list[str] - :ivar fqdns: The FQDN list of required traffic. - :vartype fqdns: list[str] - :ivar direction: The direction of required traffic. Known values are: "Inbound" and "Outbound". - :vartype direction: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.TrafficDirection - """ - - _validation = { - "protocol": {"readonly": True}, - "port": {"readonly": True}, - "ips": {"readonly": True}, - "fqdns": {"readonly": True}, - "direction": {"readonly": True}, - } - - _attribute_map = { - "protocol": {"key": "protocol", "type": "str"}, - "port": {"key": "port", "type": "int"}, - "ips": {"key": "ips", "type": "[str]"}, - "fqdns": {"key": "fqdns", "type": "[str]"}, - "direction": {"key": "direction", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.protocol = None - self.port = None - self.ips = None - self.fqdns = None - self.direction = None - - -class ResourceRequests(_serialization.Model): - """Deployment resource request payload. - - :ivar cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for - Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :vartype cpu: str - :ivar memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, - 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :vartype memory: str - """ - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - } - - def __init__(self, *, cpu: Optional[str] = None, memory: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword cpu: Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 - for Basic tier, and {500m, 1, 2, 3, 4} for Standard tier. - :paramtype cpu: str - :keyword memory: Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be - {512Mi, 1Gi, 2Gi} for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier. - :paramtype memory: str - """ - super().__init__(**kwargs) - self.cpu = cpu - self.memory = memory - - -class ResourceSku(_serialization.Model): - """Describes an available Azure Spring Apps SKU. - - :ivar resource_type: Gets the type of resource the SKU applies to. - :vartype resource_type: str - :ivar name: Gets the name of SKU. - :vartype name: str - :ivar tier: Gets the tier of SKU. - :vartype tier: str - :ivar capacity: Gets the capacity of SKU. - :vartype capacity: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuCapacity - :ivar locations: Gets the set of locations that the SKU is available. - :vartype locations: list[str] - :ivar location_info: Gets a list of locations and availability zones in those locations where - the SKU is available. - :vartype location_info: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuLocationInfo] - :ivar restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :vartype restrictions: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictions] - """ - - _attribute_map = { - "resource_type": {"key": "resourceType", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "SkuCapacity"}, - "locations": {"key": "locations", "type": "[str]"}, - "location_info": {"key": "locationInfo", "type": "[ResourceSkuLocationInfo]"}, - "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, - } - - def __init__( - self, - *, - resource_type: Optional[str] = None, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional["_models.SkuCapacity"] = None, - locations: Optional[List[str]] = None, - location_info: Optional[List["_models.ResourceSkuLocationInfo"]] = None, - restrictions: Optional[List["_models.ResourceSkuRestrictions"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword resource_type: Gets the type of resource the SKU applies to. - :paramtype resource_type: str - :keyword name: Gets the name of SKU. - :paramtype name: str - :keyword tier: Gets the tier of SKU. - :paramtype tier: str - :keyword capacity: Gets the capacity of SKU. - :paramtype capacity: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuCapacity - :keyword locations: Gets the set of locations that the SKU is available. - :paramtype locations: list[str] - :keyword location_info: Gets a list of locations and availability zones in those locations - where the SKU is available. - :paramtype location_info: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuLocationInfo] - :keyword restrictions: Gets the restrictions because of which SKU cannot be used. This is - empty if there are no restrictions. - :paramtype restrictions: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictions] - """ - super().__init__(**kwargs) - self.resource_type = resource_type - self.name = name - self.tier = tier - self.capacity = capacity - self.locations = locations - self.location_info = location_info - self.restrictions = restrictions - - -class ResourceSkuCapabilities(_serialization.Model): - """ResourceSkuCapabilities. - - :ivar name: Gets an invariant to describe the feature. - :vartype name: str - :ivar value: Gets an invariant if the feature is measured by quantity. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Gets an invariant to describe the feature. - :paramtype name: str - :keyword value: Gets an invariant if the feature is measured by quantity. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ResourceSkuCollection(_serialization.Model): - """Object that includes an array of Azure Spring Apps SKU and a possible link for next set. - - :ivar value: Collection of resource SKU. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSku] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ResourceSku]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ResourceSku"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of resource SKU. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSku] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ResourceSkuLocationInfo(_serialization.Model): - """Locations and availability zones where the SKU is available. - - :ivar location: Gets location of the SKU. - :vartype location: str - :ivar zones: Gets list of availability zones where the SKU is supported. - :vartype zones: list[str] - :ivar zone_details: Gets details of capabilities available to a SKU in specific zones. - :vartype zone_details: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuZoneDetails] - """ - - _attribute_map = { - "location": {"key": "location", "type": "str"}, - "zones": {"key": "zones", "type": "[str]"}, - "zone_details": {"key": "zoneDetails", "type": "[ResourceSkuZoneDetails]"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - zones: Optional[List[str]] = None, - zone_details: Optional[List["_models.ResourceSkuZoneDetails"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: Gets location of the SKU. - :paramtype location: str - :keyword zones: Gets list of availability zones where the SKU is supported. - :paramtype zones: list[str] - :keyword zone_details: Gets details of capabilities available to a SKU in specific zones. - :paramtype zone_details: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuZoneDetails] - """ - super().__init__(**kwargs) - self.location = location - self.zones = zones - self.zone_details = zone_details - - -class ResourceSkuRestrictionInfo(_serialization.Model): - """Information about the restriction where the SKU cannot be used. - - :ivar locations: Gets locations where the SKU is restricted. - :vartype locations: list[str] - :ivar zones: Gets list of availability zones where the SKU is restricted. - :vartype zones: list[str] - """ - - _attribute_map = { - "locations": {"key": "locations", "type": "[str]"}, - "zones": {"key": "zones", "type": "[str]"}, - } - - def __init__( - self, *, locations: Optional[List[str]] = None, zones: Optional[List[str]] = None, **kwargs: Any - ) -> None: - """ - :keyword locations: Gets locations where the SKU is restricted. - :paramtype locations: list[str] - :keyword zones: Gets list of availability zones where the SKU is restricted. - :paramtype zones: list[str] - """ - super().__init__(**kwargs) - self.locations = locations - self.zones = zones - - -class ResourceSkuRestrictions(_serialization.Model): - """Restrictions where the SKU cannot be used. - - :ivar type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. Known - values are: "Location" and "Zone". - :vartype type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictionsType - :ivar values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :vartype values: list[str] - :ivar restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :vartype restriction_info: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictionInfo - :ivar reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :vartype reason_code: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "values": {"key": "values", "type": "[str]"}, - "restriction_info": {"key": "restrictionInfo", "type": "ResourceSkuRestrictionInfo"}, - "reason_code": {"key": "reasonCode", "type": "str"}, - } - - def __init__( - self, - *, - type: Optional[Union[str, "_models.ResourceSkuRestrictionsType"]] = None, - values: Optional[List[str]] = None, - restriction_info: Optional["_models.ResourceSkuRestrictionInfo"] = None, - reason_code: Optional[Union[str, "_models.ResourceSkuRestrictionsReasonCode"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword type: Gets the type of restrictions. Possible values include: 'Location', 'Zone'. - Known values are: "Location" and "Zone". - :paramtype type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictionsType - :keyword values: Gets the value of restrictions. If the restriction type is set to - location. This would be different locations where the SKU is restricted. - :paramtype values: list[str] - :keyword restriction_info: Gets the information about the restriction where the SKU cannot be - used. - :paramtype restriction_info: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictionInfo - :keyword reason_code: Gets the reason for restriction. Possible values include: 'QuotaId', - 'NotAvailableForSubscription'. Known values are: "QuotaId" and "NotAvailableForSubscription". - :paramtype reason_code: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuRestrictionsReasonCode - """ - super().__init__(**kwargs) - self.type = type - self.values = values - self.restriction_info = restriction_info - self.reason_code = reason_code - - -class ResourceSkuZoneDetails(_serialization.Model): - """Details of capabilities available to a SKU in specific zones. - - :ivar name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :vartype name: list[str] - :ivar capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :vartype capabilities: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuCapabilities] - """ - - _attribute_map = { - "name": {"key": "name", "type": "[str]"}, - "capabilities": {"key": "capabilities", "type": "[ResourceSkuCapabilities]"}, - } - - def __init__( - self, - *, - name: Optional[List[str]] = None, - capabilities: Optional[List["_models.ResourceSkuCapabilities"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Gets the set of zones that the SKU is available in with the - specified capabilities. - :paramtype name: list[str] - :keyword capabilities: Gets a list of capabilities that are available for the SKU in the - specified list of zones. - :paramtype capabilities: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSkuCapabilities] - """ - super().__init__(**kwargs) - self.name = name - self.capabilities = capabilities - - -class ResourceUploadDefinition(_serialization.Model): - """Resource upload definition payload. - - :ivar relative_path: Source relative path. - :vartype relative_path: str - :ivar upload_url: Upload URL. - :vartype upload_url: str - """ - - _attribute_map = { - "relative_path": {"key": "relativePath", "type": "str"}, - "upload_url": {"key": "uploadUrl", "type": "str"}, - } - - def __init__(self, *, relative_path: Optional[str] = None, upload_url: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword relative_path: Source relative path. - :paramtype relative_path: str - :keyword upload_url: Upload URL. - :paramtype upload_url: str - """ - super().__init__(**kwargs) - self.relative_path = relative_path - self.upload_url = upload_url - - -class Scale(_serialization.Model): - """Azure Spring Apps scaling configurations. - - :ivar min_replicas: Optional. Minimum number of container replicas. - :vartype min_replicas: int - :ivar max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not set. - :vartype max_replicas: int - :ivar rules: Scaling rules. - :vartype rules: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRule] - """ - - _attribute_map = { - "min_replicas": {"key": "minReplicas", "type": "int"}, - "max_replicas": {"key": "maxReplicas", "type": "int"}, - "rules": {"key": "rules", "type": "[ScaleRule]"}, - } - - def __init__( - self, - *, - min_replicas: Optional[int] = None, - max_replicas: int = 10, - rules: Optional[List["_models.ScaleRule"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword min_replicas: Optional. Minimum number of container replicas. - :paramtype min_replicas: int - :keyword max_replicas: Optional. Maximum number of container replicas. Defaults to 10 if not - set. - :paramtype max_replicas: int - :keyword rules: Scaling rules. - :paramtype rules: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRule] - """ - super().__init__(**kwargs) - self.min_replicas = min_replicas - self.max_replicas = max_replicas - self.rules = rules - - -class ScaleRule(_serialization.Model): - """Azure Spring Apps App Instance scaling rule. - - :ivar name: Scale Rule Name. - :vartype name: str - :ivar azure_queue: Azure Queue based scaling. - :vartype azure_queue: ~azure.mgmt.appplatform.v2024_01_01_preview.models.QueueScaleRule - :ivar custom: Custom scale rule. - :vartype custom: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomScaleRule - :ivar http: HTTP requests based scaling. - :vartype http: ~azure.mgmt.appplatform.v2024_01_01_preview.models.HttpScaleRule - :ivar tcp: Tcp requests based scaling. - :vartype tcp: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TcpScaleRule - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "azure_queue": {"key": "azureQueue", "type": "QueueScaleRule"}, - "custom": {"key": "custom", "type": "CustomScaleRule"}, - "http": {"key": "http", "type": "HttpScaleRule"}, - "tcp": {"key": "tcp", "type": "TcpScaleRule"}, - } - - def __init__( - self, - *, - name: Optional[str] = None, - azure_queue: Optional["_models.QueueScaleRule"] = None, - custom: Optional["_models.CustomScaleRule"] = None, - http: Optional["_models.HttpScaleRule"] = None, - tcp: Optional["_models.TcpScaleRule"] = None, - **kwargs: Any - ) -> None: - """ - :keyword name: Scale Rule Name. - :paramtype name: str - :keyword azure_queue: Azure Queue based scaling. - :paramtype azure_queue: ~azure.mgmt.appplatform.v2024_01_01_preview.models.QueueScaleRule - :keyword custom: Custom scale rule. - :paramtype custom: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomScaleRule - :keyword http: HTTP requests based scaling. - :paramtype http: ~azure.mgmt.appplatform.v2024_01_01_preview.models.HttpScaleRule - :keyword tcp: Tcp requests based scaling. - :paramtype tcp: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TcpScaleRule - """ - super().__init__(**kwargs) - self.name = name - self.azure_queue = azure_queue - self.custom = custom - self.http = http - self.tcp = tcp - - -class ScaleRuleAuth(_serialization.Model): - """Auth Secrets for Azure Spring Apps App Instance Scale Rule. - - :ivar secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the auth - params. - :vartype secret_ref: str - :ivar trigger_parameter: Trigger Parameter that uses the secret. - :vartype trigger_parameter: str - """ - - _attribute_map = { - "secret_ref": {"key": "secretRef", "type": "str"}, - "trigger_parameter": {"key": "triggerParameter", "type": "str"}, - } - - def __init__( - self, *, secret_ref: Optional[str] = None, trigger_parameter: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword secret_ref: Name of the Azure Spring Apps App Instance secret from which to pull the - auth params. - :paramtype secret_ref: str - :keyword trigger_parameter: Trigger Parameter that uses the secret. - :paramtype trigger_parameter: str - """ - super().__init__(**kwargs) - self.secret_ref = secret_ref - self.trigger_parameter = trigger_parameter - - -class Secret(_serialization.Model): - """Secret definition. - - :ivar name: Secret Name. - :vartype name: str - :ivar value: Secret Value. - :vartype value: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "value": {"key": "value", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: Secret Name. - :paramtype name: str - :keyword value: Secret Value. - :paramtype value: str - """ - super().__init__(**kwargs) - self.name = name - self.value = value - - -class ServiceRegistryInstance(_serialization.Model): - """Collection of instances belong to the Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: Name of the Service Registry instance. - :vartype name: str - :ivar status: Status of the Service Registry instance. - :vartype status: str - """ - - _validation = { - "name": {"readonly": True}, - "status": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "status": {"key": "status", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.status = None - - -class ServiceRegistryProperties(_serialization.Model): - """Service Registry properties payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar provisioning_state: State of the Service Registry. Known values are: "Creating", - "Updating", "Succeeded", "Failed", and "Deleting". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryProvisioningState - :ivar resource_requests: The requested resource quantity for required CPU and Memory. - :vartype resource_requests: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResourceRequests - :ivar instances: Collection of instances belong to Service Registry. - :vartype instances: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryInstance] - """ - - _validation = { - "provisioning_state": {"readonly": True}, - "resource_requests": {"readonly": True}, - "instances": {"readonly": True}, - } - - _attribute_map = { - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "resource_requests": {"key": "resourceRequests", "type": "ServiceRegistryResourceRequests"}, - "instances": {"key": "instances", "type": "[ServiceRegistryInstance]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.provisioning_state = None - self.resource_requests = None - self.instances = None - - -class ServiceRegistryResource(ProxyResource): - """Service Registry resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Service Registry properties payload. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "ServiceRegistryProperties"}, - } - - def __init__(self, *, properties: Optional["_models.ServiceRegistryProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Service Registry properties payload. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class ServiceRegistryResourceCollection(_serialization.Model): - """Object that includes an array of Service Registry resources and a possible link for next set. - - :ivar value: Collection of Service Registry resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceRegistryResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.ServiceRegistryResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service Registry resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceRegistryResourceRequests(_serialization.Model): - """Resource request payload of Service Registry. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar cpu: Cpu allocated to each Service Registry instance. - :vartype cpu: str - :ivar memory: Memory allocated to each Service Registry instance. - :vartype memory: str - :ivar instance_count: Instance count of the Service Registry. - :vartype instance_count: int - """ - - _validation = { - "cpu": {"readonly": True}, - "memory": {"readonly": True}, - "instance_count": {"readonly": True}, - } - - _attribute_map = { - "cpu": {"key": "cpu", "type": "str"}, - "memory": {"key": "memory", "type": "str"}, - "instance_count": {"key": "instanceCount", "type": "int"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.cpu = None - self.memory = None - self.instance_count = None - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - } - - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - """ - super().__init__(**kwargs) - self.location = location - self.tags = tags - - -class ServiceResource(TrackedResource): - """Service resource. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar location: The GEO location of the resource. - :vartype location: str - :ivar tags: Tags of the service which is a list of key value pairs that describe the resource. - :vartype tags: dict[str, str] - :ivar properties: Properties of the Service resource. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ClusterResourceProperties - :ivar sku: Sku of the Service resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "location": {"key": "location", "type": "str"}, - "tags": {"key": "tags", "type": "{str}"}, - "properties": {"key": "properties", "type": "ClusterResourceProperties"}, - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__( - self, - *, - location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.ClusterResourceProperties"] = None, - sku: Optional["_models.Sku"] = None, - **kwargs: Any - ) -> None: - """ - :keyword location: The GEO location of the resource. - :paramtype location: str - :keyword tags: Tags of the service which is a list of key value pairs that describe the - resource. - :paramtype tags: dict[str, str] - :keyword properties: Properties of the Service resource. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ClusterResourceProperties - :keyword sku: Sku of the Service resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(location=location, tags=tags, **kwargs) - self.properties = properties - self.sku = sku - - -class ServiceResourceList(_serialization.Model): - """Object that includes an array of Service resources and a possible link for next set. - - :ivar value: Collection of Service resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[ServiceResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.ServiceResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: Collection of Service resources. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class ServiceSpecification(_serialization.Model): - """Service specification payload. - - :ivar log_specifications: Specifications of the Log for Azure Monitoring. - :vartype log_specifications: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.LogSpecification] - :ivar metric_specifications: Specifications of the Metrics for Azure Monitoring. - :vartype metric_specifications: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.MetricSpecification] - """ - - _attribute_map = { - "log_specifications": {"key": "logSpecifications", "type": "[LogSpecification]"}, - "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"}, - } - - def __init__( - self, - *, - log_specifications: Optional[List["_models.LogSpecification"]] = None, - metric_specifications: Optional[List["_models.MetricSpecification"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword log_specifications: Specifications of the Log for Azure Monitoring. - :paramtype log_specifications: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.LogSpecification] - :keyword metric_specifications: Specifications of the Metrics for Azure Monitoring. - :paramtype metric_specifications: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.MetricSpecification] - """ - super().__init__(**kwargs) - self.log_specifications = log_specifications - self.metric_specifications = metric_specifications - - -class ServiceVNetAddons(_serialization.Model): - """Additional Service settings in vnet injection instance. - - :ivar log_stream_public_endpoint: Indicates whether the log stream in vnet injection instance - could be accessed from internet. - :vartype log_stream_public_endpoint: bool - :ivar data_plane_public_endpoint: Indicates whether the data plane components(log stream, app - connect, remote debugging) in vnet injection instance could be accessed from internet. - :vartype data_plane_public_endpoint: bool - """ - - _attribute_map = { - "log_stream_public_endpoint": {"key": "logStreamPublicEndpoint", "type": "bool"}, - "data_plane_public_endpoint": {"key": "dataPlanePublicEndpoint", "type": "bool"}, - } - - def __init__( - self, *, log_stream_public_endpoint: bool = False, data_plane_public_endpoint: bool = False, **kwargs: Any - ) -> None: - """ - :keyword log_stream_public_endpoint: Indicates whether the log stream in vnet injection - instance could be accessed from internet. - :paramtype log_stream_public_endpoint: bool - :keyword data_plane_public_endpoint: Indicates whether the data plane components(log stream, - app connect, remote debugging) in vnet injection instance could be accessed from internet. - :paramtype data_plane_public_endpoint: bool - """ - super().__init__(**kwargs) - self.log_stream_public_endpoint = log_stream_public_endpoint - self.data_plane_public_endpoint = data_plane_public_endpoint - - -class Sku(_serialization.Model): - """Sku of Azure Spring Apps. - - :ivar name: Name of the Sku. - :vartype name: str - :ivar tier: Tier of the Sku. - :vartype tier: str - :ivar capacity: Current capacity of the target resource. - :vartype capacity: int - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "tier": {"key": "tier", "type": "str"}, - "capacity": {"key": "capacity", "type": "int"}, - } - - def __init__( - self, *, name: str = "S0", tier: str = "Standard", capacity: Optional[int] = None, **kwargs: Any - ) -> None: - """ - :keyword name: Name of the Sku. - :paramtype name: str - :keyword tier: Tier of the Sku. - :paramtype tier: str - :keyword capacity: Current capacity of the target resource. - :paramtype capacity: int - """ - super().__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class SkuCapacity(_serialization.Model): - """The SKU capacity. - - All required parameters must be populated in order to send to server. - - :ivar minimum: Gets or sets the minimum. Required. - :vartype minimum: int - :ivar maximum: Gets or sets the maximum. - :vartype maximum: int - :ivar default: Gets or sets the default. - :vartype default: int - :ivar scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", and - "Automatic". - :vartype scale_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuScaleType - """ - - _validation = { - "minimum": {"required": True}, - } - - _attribute_map = { - "minimum": {"key": "minimum", "type": "int"}, - "maximum": {"key": "maximum", "type": "int"}, - "default": {"key": "default", "type": "int"}, - "scale_type": {"key": "scaleType", "type": "str"}, - } - - def __init__( - self, - *, - minimum: int, - maximum: Optional[int] = None, - default: Optional[int] = None, - scale_type: Optional[Union[str, "_models.SkuScaleType"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword minimum: Gets or sets the minimum. Required. - :paramtype minimum: int - :keyword maximum: Gets or sets the maximum. - :paramtype maximum: int - :keyword default: Gets or sets the default. - :paramtype default: int - :keyword scale_type: Gets or sets the type of the scale. Known values are: "None", "Manual", - and "Automatic". - :paramtype scale_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuScaleType - """ - super().__init__(**kwargs) - self.minimum = minimum - self.maximum = maximum - self.default = default - self.scale_type = scale_type - - -class SkuObject(_serialization.Model): - """Resource Sku object used for scaling out and scaling in. - - :ivar sku: Sku of the Spring Cloud Gateway resource. - :vartype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - } - - def __init__(self, *, sku: Optional["_models.Sku"] = None, **kwargs: Any) -> None: - """ - :keyword sku: Sku of the Spring Cloud Gateway resource. - :paramtype sku: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Sku - """ - super().__init__(**kwargs) - self.sku = sku - - -class SourceUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded Java source code binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :vartype artifact_selector: str - :ivar runtime_version: Runtime version of the source file. - :vartype runtime_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "artifact_selector": {"key": "artifactSelector", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - artifact_selector: Optional[str] = None, - runtime_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword artifact_selector: Selector for the artifact to be used for the deployment for - multi-module projects. This should be - the relative path to the target module/project. - :paramtype artifact_selector: str - :keyword runtime_version: Runtime version of the source file. - :paramtype runtime_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "Source" - self.artifact_selector = artifact_selector - self.runtime_version = runtime_version - - -class SsoProperties(_serialization.Model): - """Single sign-on related configuration. - - :ivar scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :vartype scope: list[str] - :ivar client_id: The public identifier for the application. - :vartype client_id: str - :ivar client_secret: The secret known only to the application and the authorization server. - :vartype client_secret: str - :ivar issuer_uri: The URI of Issuer Identifier. - :vartype issuer_uri: str - """ - - _attribute_map = { - "scope": {"key": "scope", "type": "[str]"}, - "client_id": {"key": "clientId", "type": "str"}, - "client_secret": {"key": "clientSecret", "type": "str"}, - "issuer_uri": {"key": "issuerUri", "type": "str"}, - } - - def __init__( - self, - *, - scope: Optional[List[str]] = None, - client_id: Optional[str] = None, - client_secret: Optional[str] = None, - issuer_uri: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword scope: It defines the specific actions applications can be allowed to do on a user's - behalf. - :paramtype scope: list[str] - :keyword client_id: The public identifier for the application. - :paramtype client_id: str - :keyword client_secret: The secret known only to the application and the authorization server. - :paramtype client_secret: str - :keyword issuer_uri: The URI of Issuer Identifier. - :paramtype issuer_uri: str - """ - super().__init__(**kwargs) - self.scope = scope - self.client_id = client_id - self.client_secret = client_secret - self.issuer_uri = issuer_uri - - -class StackProperties(_serialization.Model): - """KPack ClusterStack properties payload. - - :ivar id: Id of the ClusterStack. - :vartype id: str - :ivar version: Version of the ClusterStack. - :vartype version: str - """ - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: Id of the ClusterStack. - :paramtype id: str - :keyword version: Version of the ClusterStack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.id = id - self.version = version - - -class StorageProperties(_serialization.Model): - """Storage resource payload. - - You probably want to use the sub-classes and not this class directly. Known sub-classes are: - StorageAccount - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageType - """ - - _validation = { - "storage_type": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - } - - _subtype_map = {"storage_type": {"StorageAccount": "StorageAccount"}} - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.storage_type: Optional[str] = None - - -class StorageAccount(StorageProperties): - """storage resource of type Azure Storage Account. - - All required parameters must be populated in order to send to server. - - :ivar storage_type: The type of the storage. Required. "StorageAccount" - :vartype storage_type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageType - :ivar account_name: The account name of the Azure Storage Account. Required. - :vartype account_name: str - :ivar account_key: The account key of the Azure Storage Account. Required. - :vartype account_key: str - """ - - _validation = { - "storage_type": {"required": True}, - "account_name": {"required": True}, - "account_key": {"required": True}, - } - - _attribute_map = { - "storage_type": {"key": "storageType", "type": "str"}, - "account_name": {"key": "accountName", "type": "str"}, - "account_key": {"key": "accountKey", "type": "str"}, - } - - def __init__(self, *, account_name: str, account_key: str, **kwargs: Any) -> None: - """ - :keyword account_name: The account name of the Azure Storage Account. Required. - :paramtype account_name: str - :keyword account_key: The account key of the Azure Storage Account. Required. - :paramtype account_key: str - """ - super().__init__(**kwargs) - self.storage_type: str = "StorageAccount" - self.account_name = account_name - self.account_key = account_key - - -class StorageResource(ProxyResource): - """Storage resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Properties of the storage resource payload. - :vartype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "StorageProperties"}, - } - - def __init__(self, *, properties: Optional["_models.StorageProperties"] = None, **kwargs: Any) -> None: - """ - :keyword properties: Properties of the storage resource payload. - :paramtype properties: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class StorageResourceCollection(_serialization.Model): - """Collection compose of storage resources list and a possible link for next page. - - :ivar value: The storage resources list. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :ivar next_link: The link to next page of storage list. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[StorageResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, *, value: Optional[List["_models.StorageResource"]] = None, next_link: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The storage resources list. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :keyword next_link: The link to next page of storage list. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedApmType(_serialization.Model): - """Supported APM type. - - :ivar name: The name of the supported APM type. - :vartype name: str - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the supported APM type. - :paramtype name: str - """ - super().__init__(**kwargs) - self.name = name - - -class SupportedApmTypes(_serialization.Model): - """Supported APM types payload. - - :ivar value: Collection of the supported APM type. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedApmType] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedApmType]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedApmType"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported APM type. - :paramtype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedApmType] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedBuildpackResource(ProxyResource): - """Supported buildpack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Supported buildpack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedBuildpackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedBuildpackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported buildpack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedBuildpackResourceProperties(_serialization.Model): - """Supported buildpack resource properties. - - :ivar buildpack_id: The id of supported buildpack. - :vartype buildpack_id: str - :ivar version: The version of supported buildpack. - :vartype version: str - """ - - _attribute_map = { - "buildpack_id": {"key": "buildpackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, buildpack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword buildpack_id: The id of supported buildpack. - :paramtype buildpack_id: str - :keyword version: The version of supported buildpack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.buildpack_id = buildpack_id - self.version = version - - -class SupportedBuildpacksCollection(_serialization.Model): - """Object that includes an array of supported buildpacks resources and a possible link for next - set. - - :ivar value: Collection of supported buildpacks resources. - :vartype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedBuildpackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedBuildpackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported buildpacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedRuntimeVersion(_serialization.Model): - """Supported deployment runtime version descriptor. - - :ivar value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", "Java_21", and "NetCore_31". - :vartype value: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedRuntimeValue - :ivar platform: The platform of this runtime version (possible values: "Java" or ".NET"). Known - values are: "Java" and ".NET Core". - :vartype platform: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedRuntimePlatform - :ivar version: The detailed version (major.minor) of the platform. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "platform": {"key": "platform", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[Union[str, "_models.SupportedRuntimeValue"]] = None, - platform: Optional[Union[str, "_models.SupportedRuntimePlatform"]] = None, - version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: The raw value which could be passed to deployment CRUD operations. Known values - are: "Java_8", "Java_11", "Java_17", "Java_21", and "NetCore_31". - :paramtype value: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedRuntimeValue - :keyword platform: The platform of this runtime version (possible values: "Java" or ".NET"). - Known values are: "Java" and ".NET Core". - :paramtype platform: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedRuntimePlatform - :keyword version: The detailed version (major.minor) of the platform. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.platform = platform - self.version = version - - -class SupportedServerVersion(_serialization.Model): - """Supported server version. - - :ivar value: The raw server version value which could be passed to deployment CRUD operations. - :vartype value: str - :ivar server: The server name. - :vartype server: str - :ivar version: The Server version. - :vartype version: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "str"}, - "server": {"key": "server", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__( - self, *, value: Optional[str] = None, server: Optional[str] = None, version: Optional[str] = None, **kwargs: Any - ) -> None: - """ - :keyword value: The raw server version value which could be passed to deployment CRUD - operations. - :paramtype value: str - :keyword server: The server name. - :paramtype server: str - :keyword version: The Server version. - :paramtype version: str - """ - super().__init__(**kwargs) - self.value = value - self.server = server - self.version = version - - -class SupportedServerVersions(_serialization.Model): - """Supported server versions. - - :ivar value: Collection of the supported server versions. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedServerVersion] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedServerVersion]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedServerVersion"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of the supported server versions. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedServerVersion] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SupportedStackResource(ProxyResource): - """Supported stack resource payload. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SystemData - :ivar properties: Supported stack resource properties. - :vartype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStackResourceProperties - """ - - _validation = { - "id": {"readonly": True}, - "name": {"readonly": True}, - "type": {"readonly": True}, - "system_data": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "name": {"key": "name", "type": "str"}, - "type": {"key": "type", "type": "str"}, - "system_data": {"key": "systemData", "type": "SystemData"}, - "properties": {"key": "properties", "type": "SupportedStackResourceProperties"}, - } - - def __init__( - self, *, properties: Optional["_models.SupportedStackResourceProperties"] = None, **kwargs: Any - ) -> None: - """ - :keyword properties: Supported stack resource properties. - :paramtype properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStackResourceProperties - """ - super().__init__(**kwargs) - self.properties = properties - - -class SupportedStackResourceProperties(_serialization.Model): - """Supported stack resource properties. - - :ivar stack_id: The id of supported stack. - :vartype stack_id: str - :ivar version: The version of supported stack. - :vartype version: str - """ - - _attribute_map = { - "stack_id": {"key": "stackId", "type": "str"}, - "version": {"key": "version", "type": "str"}, - } - - def __init__(self, *, stack_id: Optional[str] = None, version: Optional[str] = None, **kwargs: Any) -> None: - """ - :keyword stack_id: The id of supported stack. - :paramtype stack_id: str - :keyword version: The version of supported stack. - :paramtype version: str - """ - super().__init__(**kwargs) - self.stack_id = stack_id - self.version = version - - -class SupportedStacksCollection(_serialization.Model): - """Object that includes an array of supported stacks resources and a possible link for next set. - - :ivar value: Collection of supported stacks resources. - :vartype value: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStackResource] - :ivar next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :vartype next_link: str - """ - - _attribute_map = { - "value": {"key": "value", "type": "[SupportedStackResource]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__( - self, - *, - value: Optional[List["_models.SupportedStackResource"]] = None, - next_link: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword value: Collection of supported stacks resources. - :paramtype value: - list[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStackResource] - :keyword next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :paramtype next_link: str - """ - super().__init__(**kwargs) - self.value = value - self.next_link = next_link - - -class SystemData(_serialization.Model): - """Metadata pertaining to creation and last modification of the resource. - - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CreatedByType - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: ~datetime.datetime - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values - are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.LastModifiedByType - :ivar last_modified_at: The timestamp of resource modification (UTC). - :vartype last_modified_at: ~datetime.datetime - """ - - _attribute_map = { - "created_by": {"key": "createdBy", "type": "str"}, - "created_by_type": {"key": "createdByType", "type": "str"}, - "created_at": {"key": "createdAt", "type": "iso-8601"}, - "last_modified_by": {"key": "lastModifiedBy", "type": "str"}, - "last_modified_by_type": {"key": "lastModifiedByType", "type": "str"}, - "last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"}, - } - - def __init__( - self, - *, - created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, - created_at: Optional[datetime.datetime] = None, - last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "_models.LastModifiedByType"]] = None, - last_modified_at: Optional[datetime.datetime] = None, - **kwargs: Any - ) -> None: - """ - :keyword created_by: The identity that created the resource. - :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :paramtype created_by_type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CreatedByType - :keyword created_at: The timestamp of resource creation (UTC). - :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: The identity that last modified the resource. - :paramtype last_modified_by: str - :keyword last_modified_by_type: The type of identity that last modified the resource. Known - values are: "User", "Application", "ManagedIdentity", and "Key". - :paramtype last_modified_by_type: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.LastModifiedByType - :keyword last_modified_at: The timestamp of resource modification (UTC). - :paramtype last_modified_at: ~datetime.datetime - """ - super().__init__(**kwargs) - self.created_by = created_by - self.created_by_type = created_by_type - self.created_at = created_at - self.last_modified_by = last_modified_by - self.last_modified_by_type = last_modified_by_type - self.last_modified_at = last_modified_at - - -class TcpScaleRule(_serialization.Model): - """Azure Spring Apps App Instance Tcp scaling rule. - - :ivar metadata: Metadata properties to describe tcp scale rule. - :vartype metadata: dict[str, str] - :ivar auth: Authentication secrets for the tcp scale rule. - :vartype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - - _attribute_map = { - "metadata": {"key": "metadata", "type": "{str}"}, - "auth": {"key": "auth", "type": "[ScaleRuleAuth]"}, - } - - def __init__( - self, - *, - metadata: Optional[Dict[str, str]] = None, - auth: Optional[List["_models.ScaleRuleAuth"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword metadata: Metadata properties to describe tcp scale rule. - :paramtype metadata: dict[str, str] - :keyword auth: Authentication secrets for the tcp scale rule. - :paramtype auth: list[~azure.mgmt.appplatform.v2024_01_01_preview.models.ScaleRuleAuth] - """ - super().__init__(**kwargs) - self.metadata = metadata - self.auth = auth - - -class TCPSocketAction(ProbeAction): - """TCPSocketAction describes an action based on opening a socket. - - All required parameters must be populated in order to send to server. - - :ivar type: The type of the action to take to perform the health check. Required. Known values - are: "HTTPGetAction", "TCPSocketAction", and "ExecAction". - :vartype type: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.ProbeActionType - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.type: str = "TCPSocketAction" - - -class TemporaryDisk(_serialization.Model): - """Temporary disk payload. - - :ivar size_in_gb: Size of the temporary disk in GB. - :vartype size_in_gb: int - :ivar mount_path: Mount path of the temporary disk. - :vartype mount_path: str - """ - - _validation = { - "size_in_gb": {"maximum": 5, "minimum": 0}, - } - - _attribute_map = { - "size_in_gb": {"key": "sizeInGB", "type": "int"}, - "mount_path": {"key": "mountPath", "type": "str"}, - } - - def __init__(self, *, size_in_gb: Optional[int] = None, mount_path: str = "/tmp", **kwargs: Any) -> None: - """ - :keyword size_in_gb: Size of the temporary disk in GB. - :paramtype size_in_gb: int - :keyword mount_path: Mount path of the temporary disk. - :paramtype mount_path: str - """ - super().__init__(**kwargs) - self.size_in_gb = size_in_gb - self.mount_path = mount_path - - -class TestKeys(_serialization.Model): - """Test keys payload. - - :ivar primary_key: Primary key. - :vartype primary_key: str - :ivar secondary_key: Secondary key. - :vartype secondary_key: str - :ivar primary_test_endpoint: Primary test endpoint. - :vartype primary_test_endpoint: str - :ivar secondary_test_endpoint: Secondary test endpoint. - :vartype secondary_test_endpoint: str - :ivar enabled: Indicates whether the test endpoint feature enabled or not. - :vartype enabled: bool - """ - - _attribute_map = { - "primary_key": {"key": "primaryKey", "type": "str"}, - "secondary_key": {"key": "secondaryKey", "type": "str"}, - "primary_test_endpoint": {"key": "primaryTestEndpoint", "type": "str"}, - "secondary_test_endpoint": {"key": "secondaryTestEndpoint", "type": "str"}, - "enabled": {"key": "enabled", "type": "bool"}, - } - - def __init__( - self, - *, - primary_key: Optional[str] = None, - secondary_key: Optional[str] = None, - primary_test_endpoint: Optional[str] = None, - secondary_test_endpoint: Optional[str] = None, - enabled: Optional[bool] = None, - **kwargs: Any - ) -> None: - """ - :keyword primary_key: Primary key. - :paramtype primary_key: str - :keyword secondary_key: Secondary key. - :paramtype secondary_key: str - :keyword primary_test_endpoint: Primary test endpoint. - :paramtype primary_test_endpoint: str - :keyword secondary_test_endpoint: Secondary test endpoint. - :paramtype secondary_test_endpoint: str - :keyword enabled: Indicates whether the test endpoint feature enabled or not. - :paramtype enabled: bool - """ - super().__init__(**kwargs) - self.primary_key = primary_key - self.secondary_key = secondary_key - self.primary_test_endpoint = primary_test_endpoint - self.secondary_test_endpoint = secondary_test_endpoint - self.enabled = enabled - - -class TriggeredBuildResult(_serialization.Model): - """The build result triggered by a build. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The unique build id of this build result. - :vartype id: str - :ivar provisioning_state: The provisioning state of this build result. Known values are: - "Queuing", "Building", "Succeeded", "Failed", "Deleting", and "Canceled". - :vartype provisioning_state: str or - ~azure.mgmt.appplatform.v2024_01_01_preview.models.TriggeredBuildResultProvisioningState - :ivar image: The container image of this build result. - :vartype image: str - :ivar last_transition_time: The last transition time of this build result. - :vartype last_transition_time: ~datetime.datetime - :ivar last_transition_reason: The last transition reason of this build result. - :vartype last_transition_reason: str - :ivar last_transition_status: The last transition status of this build result. - :vartype last_transition_status: str - """ - - _validation = { - "provisioning_state": {"readonly": True}, - } - - _attribute_map = { - "id": {"key": "id", "type": "str"}, - "provisioning_state": {"key": "provisioningState", "type": "str"}, - "image": {"key": "image", "type": "str"}, - "last_transition_time": {"key": "lastTransitionTime", "type": "iso-8601"}, - "last_transition_reason": {"key": "lastTransitionReason", "type": "str"}, - "last_transition_status": {"key": "lastTransitionStatus", "type": "str"}, - } - - def __init__( - self, - *, - id: Optional[str] = None, # pylint: disable=redefined-builtin - image: Optional[str] = None, - last_transition_time: Optional[datetime.datetime] = None, - last_transition_reason: Optional[str] = None, - last_transition_status: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword id: The unique build id of this build result. - :paramtype id: str - :keyword image: The container image of this build result. - :paramtype image: str - :keyword last_transition_time: The last transition time of this build result. - :paramtype last_transition_time: ~datetime.datetime - :keyword last_transition_reason: The last transition reason of this build result. - :paramtype last_transition_reason: str - :keyword last_transition_status: The last transition status of this build result. - :paramtype last_transition_status: str - """ - super().__init__(**kwargs) - self.id = id - self.provisioning_state = None - self.image = image - self.last_transition_time = last_transition_time - self.last_transition_reason = last_transition_reason - self.last_transition_status = last_transition_status - - -class UserAssignedManagedIdentity(_serialization.Model): - """The details of the user-assigned managed identity assigned to an App. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar principal_id: Principal Id of user-assigned managed identity. - :vartype principal_id: str - :ivar client_id: Client Id of user-assigned managed identity. - :vartype client_id: str - """ - - _validation = { - "principal_id": {"readonly": True}, - "client_id": {"readonly": True}, - } - - _attribute_map = { - "principal_id": {"key": "principalId", "type": "str"}, - "client_id": {"key": "clientId", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.principal_id = None - self.client_id = None - - -class ValidationMessages(_serialization.Model): - """Validate messages of the configuration service git repositories. - - :ivar name: The name of the configuration service git repository. - :vartype name: str - :ivar messages: Detailed validation messages. - :vartype messages: list[str] - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "messages": {"key": "messages", "type": "[str]"}, - } - - def __init__(self, *, name: Optional[str] = None, messages: Optional[List[str]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the configuration service git repository. - :paramtype name: str - :keyword messages: Detailed validation messages. - :paramtype messages: list[str] - """ - super().__init__(**kwargs) - self.name = name - self.messages = messages - - -class WarUploadedUserSourceInfo(UploadedUserSourceInfo): - """Uploaded War binary for a deployment. - - All required parameters must be populated in order to send to server. - - :ivar type: Type of the source uploaded. Required. - :vartype type: str - :ivar version: Version of the source. - :vartype version: str - :ivar relative_path: Relative path of the storage which stores the source. - :vartype relative_path: str - :ivar runtime_version: Runtime version of the war file. - :vartype runtime_version: str - :ivar jvm_options: JVM parameter. - :vartype jvm_options: str - :ivar server_version: Server version, currently only Apache Tomcat is supported. - :vartype server_version: str - """ - - _validation = { - "type": {"required": True}, - } - - _attribute_map = { - "type": {"key": "type", "type": "str"}, - "version": {"key": "version", "type": "str"}, - "relative_path": {"key": "relativePath", "type": "str"}, - "runtime_version": {"key": "runtimeVersion", "type": "str"}, - "jvm_options": {"key": "jvmOptions", "type": "str"}, - "server_version": {"key": "serverVersion", "type": "str"}, - } - - def __init__( - self, - *, - version: Optional[str] = None, - relative_path: Optional[str] = None, - runtime_version: Optional[str] = None, - jvm_options: Optional[str] = None, - server_version: Optional[str] = None, - **kwargs: Any - ) -> None: - """ - :keyword version: Version of the source. - :paramtype version: str - :keyword relative_path: Relative path of the storage which stores the source. - :paramtype relative_path: str - :keyword runtime_version: Runtime version of the war file. - :paramtype runtime_version: str - :keyword jvm_options: JVM parameter. - :paramtype jvm_options: str - :keyword server_version: Server version, currently only Apache Tomcat is supported. - :paramtype server_version: str - """ - super().__init__(version=version, relative_path=relative_path, **kwargs) - self.type: str = "War" - self.runtime_version = runtime_version - self.jvm_options = jvm_options - self.server_version = server_version - - -class WeeklyMaintenanceScheduleConfiguration(MaintenanceScheduleConfiguration): - """Weekly planned maintenance. - - Variables are only populated by the server, and will be ignored when sending a request. - - All required parameters must be populated in order to send to server. - - :ivar frequency: The frequency to run the maintenance job. Required. "Weekly" - :vartype frequency: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.Frequency - :ivar hour: The hour to run the maintenance job. Required. - :vartype hour: int - :ivar duration: The duration time to run the maintenance job, specified in ISO8601 format, e.g. - PT8H. - :vartype duration: str - :ivar day: The day to run the maintenance job. Required. Known values are: "Monday", "Tuesday", - "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :vartype day: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.WeekDay - """ - - _validation = { - "frequency": {"required": True}, - "hour": {"required": True, "maximum": 23, "minimum": 0}, - "duration": {"readonly": True}, - "day": {"required": True}, - } - - _attribute_map = { - "frequency": {"key": "frequency", "type": "str"}, - "hour": {"key": "hour", "type": "int"}, - "duration": {"key": "duration", "type": "str"}, - "day": {"key": "day", "type": "str"}, - } - - def __init__(self, *, hour: int, day: Union[str, "_models.WeekDay"], **kwargs: Any) -> None: - """ - :keyword hour: The hour to run the maintenance job. Required. - :paramtype hour: int - :keyword day: The day to run the maintenance job. Required. Known values are: "Monday", - "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", and "Sunday". - :paramtype day: str or ~azure.mgmt.appplatform.v2024_01_01_preview.models.WeekDay - """ - super().__init__(**kwargs) - self.frequency: str = "Weekly" - self.hour = hour - self.duration = None - self.day = day diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/models/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/__init__.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/__init__.py deleted file mode 100644 index 66e2c3f17e2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/__init__.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._services_operations import ServicesOperations -from ._apms_operations import ApmsOperations -from ._eureka_servers_operations import EurekaServersOperations -from ._config_servers_operations import ConfigServersOperations -from ._configuration_services_operations import ConfigurationServicesOperations -from ._service_registries_operations import ServiceRegistriesOperations -from ._application_live_views_operations import ApplicationLiveViewsOperations -from ._dev_tool_portals_operations import DevToolPortalsOperations -from ._container_registries_operations import ContainerRegistriesOperations -from ._build_service_operations import BuildServiceOperations -from ._buildpack_binding_operations import BuildpackBindingOperations -from ._build_service_builder_operations import BuildServiceBuilderOperations -from ._build_service_agent_pool_operations import BuildServiceAgentPoolOperations -from ._monitoring_settings_operations import MonitoringSettingsOperations -from ._apps_operations import AppsOperations -from ._bindings_operations import BindingsOperations -from ._storages_operations import StoragesOperations -from ._certificates_operations import CertificatesOperations -from ._custom_domains_operations import CustomDomainsOperations -from ._deployments_operations import DeploymentsOperations -from ._operations import Operations -from ._runtime_versions_operations import RuntimeVersionsOperations -from ._skus_operations import SkusOperations -from ._gateways_operations import GatewaysOperations -from ._gateway_route_configs_operations import GatewayRouteConfigsOperations -from ._gateway_custom_domains_operations import GatewayCustomDomainsOperations -from ._api_portals_operations import ApiPortalsOperations -from ._api_portal_custom_domains_operations import ApiPortalCustomDomainsOperations -from ._application_accelerators_operations import ApplicationAcceleratorsOperations -from ._customized_accelerators_operations import CustomizedAcceleratorsOperations -from ._predefined_accelerators_operations import PredefinedAcceleratorsOperations - -from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import -from ._patch import patch_sdk as _patch_sdk - -__all__ = [ - "ServicesOperations", - "ApmsOperations", - "EurekaServersOperations", - "ConfigServersOperations", - "ConfigurationServicesOperations", - "ServiceRegistriesOperations", - "ApplicationLiveViewsOperations", - "DevToolPortalsOperations", - "ContainerRegistriesOperations", - "BuildServiceOperations", - "BuildpackBindingOperations", - "BuildServiceBuilderOperations", - "BuildServiceAgentPoolOperations", - "MonitoringSettingsOperations", - "AppsOperations", - "BindingsOperations", - "StoragesOperations", - "CertificatesOperations", - "CustomDomainsOperations", - "DeploymentsOperations", - "Operations", - "RuntimeVersionsOperations", - "SkusOperations", - "GatewaysOperations", - "GatewayRouteConfigsOperations", - "GatewayCustomDomainsOperations", - "ApiPortalsOperations", - "ApiPortalCustomDomainsOperations", - "ApplicationAcceleratorsOperations", - "CustomizedAcceleratorsOperations", - "PredefinedAcceleratorsOperations", -] -__all__.extend([p for p in _patch_all if p not in __all__]) -_patch_sdk() diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portal_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portal_custom_domains_operations.py deleted file mode 100644 index edc7e5c0930..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portal_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`api_portal_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - """Get the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: ApiPortalCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_custom_domain_resource, (IOBase, bytes)): - _content = api_portal_custom_domain_resource - else: - _json = self._serialize.body(api_portal_custom_domain_resource, "ApiPortalCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: _models.ApiPortalCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Required. - :type api_portal_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - domain_name: str, - api_portal_custom_domain_resource: Union[_models.ApiPortalCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalCustomDomainResource]: - """Create or update the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :param api_portal_custom_domain_resource: The API portal custom domain for the create or update - operation. Is either a ApiPortalCustomDomainResource type or a IO[bytes] type. Required. - :type api_portal_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalCustomDomainResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_portal_custom_domain_resource=api_portal_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the API portal custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param domain_name: The name of the API portal custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> Iterable["_models.ApiPortalCustomDomainResource"]: - """Handle requests to list all API portal custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An iterator like instance of either ApiPortalCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portals_operations.py deleted file mode 100644 index 0b96236cb6c..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_api_portals_operations.py +++ /dev/null @@ -1,832 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, api_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apiPortalName": _SERIALIZER.url("api_portal_name", api_portal_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApiPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`api_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> _models.ApiPortalResource: - """Get the API portal and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: ApiPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApiPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(api_portal_resource, (IOBase, bytes)): - _content = api_portal_resource - else: - _json = self._serialize.body(api_portal_resource, "ApiPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: _models.ApiPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Required. - :type api_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - api_portal_resource: Union[_models.ApiPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApiPortalResource]: - """Create the default API portal or update the existing API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param api_portal_resource: The API portal for the create or update operation. Is either a - ApiPortalResource type or a IO[bytes] type. Required. - :type api_portal_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource - or IO[bytes] - :return: An instance of LROPoller that returns either ApiPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApiPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_portal_resource=api_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApiPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApiPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApiPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, api_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the default API portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApiPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApiPortalResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApiPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApiPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApiPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - api_portal_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param api_portal_name: The name of API portal. Required. - :type api_portal_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - api_portal_name=api_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apms_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apms_operations.py deleted file mode 100644 index 4bf1356c01f..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apms_operations.py +++ /dev/null @@ -1,750 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_secret_keys_request( - resource_group_name: str, service_name: str, apm_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apms/{apmName}/listSecretKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "apmName": _SERIALIZER.url("apm_name", apm_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApmsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`apms` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.ApmResource"]: - """Get collection of APMs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApmResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApmResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApmResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any) -> _models.ApmResource: - """Get the APM by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApmResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm_resource, (IOBase, bytes)): - _content = apm_resource - else: - _json = self._serialize.body(apm_resource, "ApmResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApmResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: _models.ApmResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Required. - :type apm_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - apm_name: str, - apm_resource: Union[_models.ApmResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApmResource]: - """Create or update an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :param apm_resource: Parameters for the create or update operation. Is either a ApmResource - type or a IO[bytes] type. Required. - :type apm_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource or IO[bytes] - :return: An instance of LROPoller that returns either ApmResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApmResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - apm_resource=apm_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApmResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApmResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApmResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an APM. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_secret_keys( - self, resource_group_name: str, service_name: str, apm_name: str, **kwargs: Any - ) -> _models.ApmSecretKeys: - """List keys of APM sensitive properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm_name: The name of the APM. Required. - :type apm_name: str - :return: ApmSecretKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmSecretKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApmSecretKeys] = kwargs.pop("cls", None) - - _request = build_list_secret_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - apm_name=apm_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApmSecretKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_accelerators_operations.py deleted file mode 100644 index cbbf7805ba7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_accelerators_operations.py +++ /dev/null @@ -1,668 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`application_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationAcceleratorResource"]: - """Handle requests to list all application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - """Get the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: ApplicationAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_accelerator_resource, (IOBase, bytes)): - _content = application_accelerator_resource - else: - _json = self._serialize.body(application_accelerator_resource, "ApplicationAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: _models.ApplicationAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Required. - :type application_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - application_accelerator_resource: Union[_models.ApplicationAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationAcceleratorResource]: - """Create or update the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param application_accelerator_resource: The application accelerator for the create or update - operation. Is either a ApplicationAcceleratorResource type or a IO[bytes] type. Required. - :type application_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - application_accelerator_resource=application_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the application accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_live_views_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_live_views_operations.py deleted file mode 100644 index 58c0eb84771..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_application_live_views_operations.py +++ /dev/null @@ -1,666 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url( - "application_live_view_name", application_live_view_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url( - "application_live_view_name", application_live_view_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, application_live_view_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationLiveViews/{applicationLiveViewName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationLiveViewName": _SERIALIZER.url( - "application_live_view_name", application_live_view_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class ApplicationLiveViewsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`application_live_views` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ApplicationLiveViewResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ApplicationLiveViewResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: ApplicationLiveViewResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> _models.ApplicationLiveViewResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(application_live_view_resource, (IOBase, bytes)): - _content = application_live_view_resource - else: - _json = self._serialize.body(application_live_view_resource, "ApplicationLiveViewResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: _models.ApplicationLiveViewResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Required. - :type application_live_view_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_live_view_name: str, - application_live_view_resource: Union[_models.ApplicationLiveViewResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ApplicationLiveViewResource]: - """Create the default Application Live View or update the existing Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :param application_live_view_resource: Parameters for the update operation. Is either a - ApplicationLiveViewResource type or a IO[bytes] type. Required. - :type application_live_view_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource or IO[bytes] - :return: An instance of LROPoller that returns either ApplicationLiveViewResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ApplicationLiveViewResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ApplicationLiveViewResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - application_live_view_resource=application_live_view_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ApplicationLiveViewResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ApplicationLiveViewResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ApplicationLiveViewResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, application_live_view_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Live View. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_live_view_name: The name of Application Live View. Required. - :type application_live_view_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_live_view_name=application_live_view_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apps_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apps_operations.py deleted file mode 100644 index eb69d40840b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_apps_operations.py +++ /dev/null @@ -1,1437 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - sync_status: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if sync_status is not None: - _params["syncStatus"] = _SERIALIZER.query("sync_status", sync_status, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_set_active_deployments_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/setActiveDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class AppsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`apps` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - app_name: str, - sync_status: Optional[str] = None, - **kwargs: Any - ) -> _models.AppResource: - """Get an App and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param sync_status: Indicates whether sync status. Default value is None. - :type sync_status: str - :return: AppResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - sync_status=sync_status, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Create a new App or update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the create or update operation. Is either a AppResource - type or a IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(app_resource, (IOBase, bytes)): - _content = app_resource - else: - _json = self._serialize.body(app_resource, "AppResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: _models.AppResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Required. - :type app_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - app_resource: Union[_models.AppResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Operation to update an exiting App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param app_resource: Parameters for the update operation. Is either a AppResource type or a - IO[bytes] type. Required. - :type app_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - app_resource=app_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.AppResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either AppResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AppResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AppResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for an App, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _set_active_deployments_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> _models.AppResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(active_deployment_collection, (IOBase, bytes)): - _content = active_deployment_collection - else: - _json = self._serialize.body(active_deployment_collection, "ActiveDeploymentCollection") - - _request = build_set_active_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("AppResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("AppResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: _models.ActiveDeploymentCollection, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ActiveDeploymentCollection - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Required. - :type active_deployment_collection: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_set_active_deployments( - self, - resource_group_name: str, - service_name: str, - app_name: str, - active_deployment_collection: Union[_models.ActiveDeploymentCollection, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.AppResource]: - """Set existing Deployment under the app as active. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param active_deployment_collection: A list of Deployment name to be active. Is either a - ActiveDeploymentCollection type or a IO[bytes] type. Required. - :type active_deployment_collection: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ActiveDeploymentCollection or IO[bytes] - :return: An instance of LROPoller that returns either AppResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.AppResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.AppResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._set_active_deployments_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - active_deployment_collection=active_deployment_collection, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("AppResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.AppResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.AppResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - app_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the resource name is valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_bindings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_bindings_operations.py deleted file mode 100644 index 66f939827e3..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_bindings_operations.py +++ /dev/null @@ -1,944 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, binding_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings/{bindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "bindingName": _SERIALIZER.url("binding_name", binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/bindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BindingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`bindings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> _models.BindingResource: - """Get a Binding and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: BindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Create a new Binding or update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the create or update operation. Is either a - BindingResource type or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, binding_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(binding_resource, (IOBase, bytes)): - _content = binding_resource - else: - _json = self._serialize.body(binding_resource, "BindingResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("BindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: _models.BindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Required. - :type binding_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - binding_name: str, - binding_resource: Union[_models.BindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BindingResource]: - """Operation to update an exiting Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param binding_name: The name of the Binding resource. Required. - :type binding_name: str - :param binding_resource: Parameters for the update operation. Is either a BindingResource type - or a IO[bytes] type. Required. - :type binding_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource or - IO[bytes] - :return: An instance of LROPoller that returns either BindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - binding_name=binding_name, - binding_resource=binding_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.BindingResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either BindingResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_agent_pool_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_agent_pool_operations.py deleted file mode 100644 index 3f21781ebe9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_agent_pool_operations.py +++ /dev/null @@ -1,553 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "agentPoolName": _SERIALIZER.url("agent_pool_name", agent_pool_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceAgentPoolOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_agent_pool` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildServiceAgentPoolResource"]: - """List build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuildServiceAgentPoolResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, agent_pool_name: str, **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - """Get build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :return: BuildServiceAgentPoolResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildServiceAgentPoolResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(agent_pool_resource, (IOBase, bytes)): - _content = agent_pool_resource - else: - _json = self._serialize.body(agent_pool_resource, "BuildServiceAgentPoolResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: _models.BuildServiceAgentPoolResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Required. - :type agent_pool_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - agent_pool_name: str, - agent_pool_resource: Union[_models.BuildServiceAgentPoolResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildServiceAgentPoolResource]: - """Create or update build service agent pool. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param agent_pool_name: The name of the build service agent pool resource. Required. - :type agent_pool_name: str - :param agent_pool_resource: Parameters for the update operation. Is either a - BuildServiceAgentPoolResource type or a IO[bytes] type. Required. - :type agent_pool_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildServiceAgentPoolResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildServiceAgentPoolResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildServiceAgentPoolResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - agent_pool_name=agent_pool_name, - agent_pool_resource=agent_pool_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildServiceAgentPoolResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildServiceAgentPoolResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildServiceAgentPoolResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_builder_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_builder_operations.py deleted file mode 100644 index 827b1c8816e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_builder_operations.py +++ /dev/null @@ -1,801 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_deployments_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/listUsingDeployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceBuilderOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service_builder` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.BuilderResource: - """Get a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: BuilderResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuilderResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(builder_resource, (IOBase, bytes)): - _content = builder_resource - else: - _json = self._serialize.body(builder_resource, "BuilderResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuilderResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: _models.BuilderResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Required. - :type builder_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - builder_resource: Union[_models.BuilderResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuilderResource]: - """Create or update a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param builder_resource: The target builder for the create or update operation. Is either a - BuilderResource type or a IO[bytes] type. Required. - :type builder_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource or - IO[bytes] - :return: An instance of LROPoller that returns either BuilderResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuilderResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - builder_resource=builder_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuilderResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuilderResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuilderResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a KPack builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.BuilderResource"]: - """List KPack builders result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either BuilderResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuilderResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuilderResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuilderResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_deployments( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> _models.DeploymentList: - """List deployments that are using the builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: DeploymentList or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentList - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentList] = kwargs.pop("cls", None) - - _request = build_list_deployments_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentList", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_operations.py deleted file mode 100644 index b2551adb4c6..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_build_service_operations.py +++ /dev/null @@ -1,1953 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_build_services_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_service_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_builds_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_build_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_build_results_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_build_result_log_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}/results/{buildResultName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildName": _SERIALIZER.url("build_name", build_name, "str"), - "buildResultName": _SERIALIZER.url("build_result_name", build_result_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_resource_upload_url_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/getResourceUploadUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_buildpacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_buildpack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - buildpack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedBuildpacks/{buildpackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "buildpackName": _SERIALIZER.url("buildpack_name", buildpack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_stacks_request( - resource_group_name: str, service_name: str, build_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_supported_stack_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - stack_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/supportedStacks/{stackName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "stackName": _SERIALIZER.url("stack_name", stack_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildServiceOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`build_service` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_build_services( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildService"]: - """List build services resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildService or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildServiceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_services_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildServiceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_service( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.BuildService: - """Get a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: BuildService or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - _request = build_get_build_service_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> _models.BuildService: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build_service, (IOBase, bytes)): - _content = build_service - else: - _json = self._serialize.body(build_service, "BuildService") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildService", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildService", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: _models.BuildService, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Required. - :type build_service: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_service: Union[_models.BuildService, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildService]: - """Create a build service resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_service: Parameters for the create operation. Is either a BuildService type or a - IO[bytes] type. Required. - :type build_service: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService or - IO[bytes] - :return: An instance of LROPoller that returns either BuildService or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildService] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildService] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_service=build_service, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildService", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildService].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildService]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_builds( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> Iterable["_models.Build"]: - """List KPack builds. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: An iterator like instance of either Build or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.Build] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_builds_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> _models.Build: - """Get a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - _request = build_get_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: _models.Build, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Required. - :type build: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def create_or_update_build( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build: Union[_models.Build, IO[bytes]], - **kwargs: Any - ) -> _models.Build: - """Create or update a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build: Parameters for the create or update operation. Is either a Build type or a - IO[bytes] type. Required. - :type build: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build or IO[bytes] - :return: Build or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.Build - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.Build] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(build, (IOBase, bytes)): - _content = build - else: - _json = self._serialize.body(build, "Build") - - _request = build_create_or_update_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("Build", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("Build", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _delete_build_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_build_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete_build( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> LROPoller[None]: - """delete a KPack build. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_build_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_build_results( - self, resource_group_name: str, service_name: str, build_service_name: str, build_name: str, **kwargs: Any - ) -> Iterable["_models.BuildResult"]: - """List KPack build results. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :return: An iterator like instance of either BuildResult or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildResultCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_build_results_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildResultCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get_build_result( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResult: - """Get a KPack build result. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildResult] = kwargs.pop("cls", None) - - _request = build_get_build_result_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_build_result_log( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - build_name: str, - build_result_name: str, - **kwargs: Any - ) -> _models.BuildResultLog: - """Get a KPack build result log download URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param build_name: The name of the build resource. Required. - :type build_name: str - :param build_result_name: The name of the build result resource. Required. - :type build_result_name: str - :return: BuildResultLog or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildResultLog - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildResultLog] = kwargs.pop("cls", None) - - _request = build_get_build_result_log_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - build_name=build_name, - build_result_name=build_result_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildResultLog", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_resource_upload_url( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.ResourceUploadDefinition: - """Get an resource upload URL for build service, which may be artifacts or source archive. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: ResourceUploadDefinition or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceUploadDefinition - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ResourceUploadDefinition] = kwargs.pop("cls", None) - - _request = build_get_resource_upload_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ResourceUploadDefinition", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_buildpacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedBuildpacksCollection: - """Get all supported buildpacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedBuildpacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_buildpacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_buildpack( - self, resource_group_name: str, service_name: str, build_service_name: str, buildpack_name: str, **kwargs: Any - ) -> _models.SupportedBuildpackResource: - """Get the supported buildpack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param buildpack_name: The name of the buildpack resource. Required. - :type buildpack_name: str - :return: SupportedBuildpackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedBuildpackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedBuildpackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_buildpack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - buildpack_name=buildpack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedBuildpackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_supported_stacks( - self, resource_group_name: str, service_name: str, build_service_name: str, **kwargs: Any - ) -> _models.SupportedStacksCollection: - """Get all supported stacks. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :return: SupportedStacksCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStacksCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedStacksCollection] = kwargs.pop("cls", None) - - _request = build_list_supported_stacks_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStacksCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_supported_stack( - self, resource_group_name: str, service_name: str, build_service_name: str, stack_name: str, **kwargs: Any - ) -> _models.SupportedStackResource: - """Get the supported stack resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param stack_name: The name of the stack resource. Required. - :type stack_name: str - :return: SupportedStackResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedStackResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedStackResource] = kwargs.pop("cls", None) - - _request = build_get_supported_stack_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - stack_name=stack_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("SupportedStackResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_buildpack_binding_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_buildpack_binding_operations.py deleted file mode 100644 index 19820ecf720..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_buildpack_binding_operations.py +++ /dev/null @@ -1,873 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_for_cluster_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings/{buildpackBindingName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - "buildpackBindingName": _SERIALIZER.url("buildpack_binding_name", buildpack_binding_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builders/{builderName}/buildpackBindings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "buildServiceName": _SERIALIZER.url("build_service_name", build_service_name, "str"), - "builderName": _SERIALIZER.url("builder_name", builder_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class BuildpackBindingOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`buildpack_binding` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_for_cluster( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Get collection of buildpack bindings under all builders. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> _models.BuildpackBindingResource: - """Get a buildpack binding by name. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: BuildpackBindingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> _models.BuildpackBindingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(buildpack_binding, (IOBase, bytes)): - _content = buildpack_binding - else: - _json = self._serialize.body(buildpack_binding, "BuildpackBindingResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: _models.BuildpackBindingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. - Required. - :type buildpack_binding: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - buildpack_binding: Union[_models.BuildpackBindingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.BuildpackBindingResource]: - """Create or update a buildpack binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :param buildpack_binding: The target buildpack binding for the create or update operation. Is - either a BuildpackBindingResource type or a IO[bytes] type. Required. - :type buildpack_binding: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource or IO[bytes] - :return: An instance of LROPoller that returns either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BuildpackBindingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - buildpack_binding=buildpack_binding, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.BuildpackBindingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.BuildpackBindingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - build_service_name: str, - builder_name: str, - buildpack_binding_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Buildpack Binding. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :param buildpack_binding_name: The name of the Buildpack Binding Name. Required. - :type buildpack_binding_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - buildpack_binding_name=buildpack_binding_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, build_service_name: str, builder_name: str, **kwargs: Any - ) -> Iterable["_models.BuildpackBindingResource"]: - """Handles requests to list all buildpack bindings in a builder. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param build_service_name: The name of the build service resource. Required. - :type build_service_name: str - :param builder_name: The name of the builder resource. Required. - :type builder_name: str - :return: An iterator like instance of either BuildpackBindingResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.BuildpackBindingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.BuildpackBindingResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - build_service_name=build_service_name, - builder_name=builder_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("BuildpackBindingResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_certificates_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_certificates_operations.py deleted file mode 100644 index bd636fc79e1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_certificates_operations.py +++ /dev/null @@ -1,658 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, certificate_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "certificateName": _SERIALIZER.url("certificate_name", certificate_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CertificatesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`certificates` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> _models.CertificateResource: - """Get the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: CertificateResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> _models.CertificateResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(certificate_resource, (IOBase, bytes)): - _content = certificate_resource - else: - _json = self._serialize.body(certificate_resource, "CertificateResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CertificateResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: _models.CertificateResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Required. - :type certificate_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - certificate_name: str, - certificate_resource: Union[_models.CertificateResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CertificateResource]: - """Create or update certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :param certificate_resource: Parameters for the create or update operation. Is either a - CertificateResource type or a IO[bytes] type. Required. - :type certificate_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource or IO[bytes] - :return: An instance of LROPoller that returns either CertificateResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CertificateResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - certificate_resource=certificate_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CertificateResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CertificateResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CertificateResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, certificate_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the certificate resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param certificate_name: The name of the certificate resource. Required. - :type certificate_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - certificate_name=certificate_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.CertificateResource"]: - """List all the certificates of one user. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either CertificateResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.CertificateResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CertificateResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CertificateResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_config_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_config_servers_operations.py deleted file mode 100644 index 47533f42aea..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_config_servers_operations.py +++ /dev/null @@ -1,849 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`config_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ConfigServerResource: - """Get the config server and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ConfigServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_resource, (IOBase, bytes)): - _content = config_server_resource - else: - _json = self._serialize.body(config_server_resource, "ConfigServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: _models.ConfigServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Required. - :type config_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - config_server_resource: Union[_models.ConfigServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerResource]: - """Update the config server. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_resource: Parameters for the update operation. Is either a - ConfigServerResource type or a IO[bytes] type. Required. - :type config_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_resource=config_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigServerSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(config_server_settings, (IOBase, bytes)): - _content = config_server_settings - else: - _json = self._serialize.body(config_server_settings, "ConfigServerSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: _models.ConfigServerSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Required. - :type config_server_settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - config_server_settings: Union[_models.ConfigServerSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigServerSettingsValidateResult]: - """Check if the config server settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param config_server_settings: Config server settings to be validated. Is either a - ConfigServerSettings type or a IO[bytes] type. Required. - :type config_server_settings: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettings or IO[bytes] - :return: An instance of LROPoller that returns either ConfigServerSettingsValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigServerSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigServerSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - config_server_settings=config_server_settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigServerSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigServerSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigServerSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_configuration_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_configuration_services_operations.py deleted file mode 100644 index 26d4615c0c0..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_configuration_services_operations.py +++ /dev/null @@ -1,1170 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_resource_request( - resource_group_name: str, service_name: str, configuration_service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configurationServices/{configurationServiceName}/validateResource", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "configurationServiceName": _SERIALIZER.url( - "configuration_service_name", configuration_service_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ConfigurationServicesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`configuration_services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> _models.ConfigurationServiceResource: - """Get the Application Configuration Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: ConfigurationServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceResource]: - """Create the default Application Configuration Service or update the existing Application - Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Parameters for the update operation. Is either a - ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ConfigurationServiceResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, configuration_service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Application Configuration Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ConfigurationServiceResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ConfigurationServiceResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ConfigurationServiceResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> _models.ConfigurationServiceSettingsValidateResult: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(settings, (IOBase, bytes)): - _content = settings - else: - _json = self._serialize.body(settings, "ConfigurationServiceSettings") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: _models.ConfigurationServiceSettings, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettings - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Required. - :type settings: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - settings: Union[_models.ConfigurationServiceSettings, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service settings are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param settings: Application Configuration Service settings to be validated. Is either a - ConfigurationServiceSettings type or a IO[bytes] type. Required. - :type settings: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettings - or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - settings=settings, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _validate_resource_initial( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ConfigurationServiceSettingsValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ConfigurationServiceSettingsValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(configuration_service_resource, (IOBase, bytes)): - _content = configuration_service_resource - else: - _json = self._serialize.body(configuration_service_resource, "ConfigurationServiceResource") - - _request = build_validate_resource_request( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: _models.ConfigurationServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Required. - :type configuration_service_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate_resource( - self, - resource_group_name: str, - service_name: str, - configuration_service_name: str, - configuration_service_resource: Union[_models.ConfigurationServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ConfigurationServiceSettingsValidateResult]: - """Check if the Application Configuration Service resource is valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param configuration_service_name: The name of Application Configuration Service. Required. - :type configuration_service_name: str - :param configuration_service_resource: Application Configuration Service resource to be - validated. Is either a ConfigurationServiceResource type or a IO[bytes] type. Required. - :type configuration_service_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either - ConfigurationServiceSettingsValidateResult or the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ConfigurationServiceSettingsValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ConfigurationServiceSettingsValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_resource_initial( - resource_group_name=resource_group_name, - service_name=service_name, - configuration_service_name=configuration_service_name, - configuration_service_resource=configuration_service_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ConfigurationServiceSettingsValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ConfigurationServiceSettingsValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ConfigurationServiceSettingsValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_container_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_container_registries_operations.py deleted file mode 100644 index 06d7c82fa28..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_container_registries_operations.py +++ /dev/null @@ -1,923 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, service_name: str, container_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/containerRegistries/{containerRegistryName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "containerRegistryName": _SERIALIZER.url( - "container_registry_name", container_registry_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class ContainerRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`container_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ContainerRegistryResource"]: - """List container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ContainerRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> _models.ContainerRegistryResource: - """Get the container registries resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: ContainerRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> _models.ContainerRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_resource, (IOBase, bytes)): - _content = container_registry_resource - else: - _json = self._serialize.body(container_registry_resource, "ContainerRegistryResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: _models.ContainerRegistryResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Required. - :type container_registry_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_resource: Union[_models.ContainerRegistryResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryResource]: - """Create or update container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_resource: Parameters for the create or update operation. Is either a - ContainerRegistryResource type or a IO[bytes] type. Required. - :type container_registry_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_resource=container_registry_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, container_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete a container registry resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.ContainerRegistryValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.ContainerRegistryValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(container_registry_properties, (IOBase, bytes)): - _content = container_registry_properties - else: - _json = self._serialize.body(container_registry_properties, "ContainerRegistryProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: _models.ContainerRegistryProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Required. - :type container_registry_properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - container_registry_name: str, - container_registry_properties: Union[_models.ContainerRegistryProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ContainerRegistryValidateResult]: - """Check if the container registry properties are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param container_registry_name: The name of the container registry. Required. - :type container_registry_name: str - :param container_registry_properties: Parameters for the validate operation. Is either a - ContainerRegistryProperties type or a IO[bytes] type. Required. - :type container_registry_properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryProperties or IO[bytes] - :return: An instance of LROPoller that returns either ContainerRegistryValidateResult or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ContainerRegistryValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ContainerRegistryValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - container_registry_name=container_registry_name, - container_registry_properties=container_registry_properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ContainerRegistryValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ContainerRegistryValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ContainerRegistryValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_custom_domains_operations.py deleted file mode 100644 index b8f534c00d9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_custom_domains_operations.py +++ /dev/null @@ -1,945 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, app_name: str, domain_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, app_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> _models.CustomDomainResource: - """Get the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: CustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Create or update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(domain_resource, (IOBase, bytes)): - _content = domain_resource - else: - _json = self._serialize.body(domain_resource, "CustomDomainResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: _models.CustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Required. - :type domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - domain_name: str, - domain_resource: Union[_models.CustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomDomainResource]: - """Update custom domain of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param domain_name: The name of the custom domain resource. Required. - :type domain_name: str - :param domain_resource: Parameters for the create or update operation. Is either a - CustomDomainResource type or a IO[bytes] type. Required. - :type domain_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource - or IO[bytes] - :return: An instance of LROPoller that returns either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - domain_name=domain_name, - domain_resource=domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, app_name: str, **kwargs: Any - ) -> Iterable["_models.CustomDomainResource"]: - """List the custom domains of one lifecycle application. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :return: An iterator like instance of either CustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_customized_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_customized_accelerators_operations.py deleted file mode 100644 index c34281eb1be..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_customized_accelerators_operations.py +++ /dev/null @@ -1,1005 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "customizedAcceleratorName": _SERIALIZER.url( - "customized_accelerator_name", customized_accelerator_name, "str", pattern=r"^[a-z0-9]([-a-z0-9]*[a-z0-9])$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "customizedAcceleratorName": _SERIALIZER.url( - "customized_accelerator_name", customized_accelerator_name, "str", pattern=r"^[a-z0-9]([-a-z0-9]*[a-z0-9])$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "customizedAcceleratorName": _SERIALIZER.url( - "customized_accelerator_name", customized_accelerator_name, "str", pattern=r"^[a-z0-9]([-a-z0-9]*[a-z0-9])$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/customizedAccelerators/{customizedAcceleratorName}/validate", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "customizedAcceleratorName": _SERIALIZER.url( - "customized_accelerator_name", customized_accelerator_name, "str", pattern=r"^[a-z0-9]([-a-z0-9]*[a-z0-9])$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class CustomizedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`customized_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.CustomizedAcceleratorResource"]: - """Handle requests to list all customized accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either CustomizedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - """Get the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: CustomizedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> _models.CustomizedAcceleratorResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(customized_accelerator_resource, (IOBase, bytes)): - _content = customized_accelerator_resource - else: - _json = self._serialize.body(customized_accelerator_resource, "CustomizedAcceleratorResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: _models.CustomizedAcceleratorResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Required. - :type customized_accelerator_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - customized_accelerator_resource: Union[_models.CustomizedAcceleratorResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorResource]: - """Create or update the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param customized_accelerator_resource: The customized accelerator for the create or update - operation. Is either a CustomizedAcceleratorResource type or a IO[bytes] type. Required. - :type customized_accelerator_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorResource or the - result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - customized_accelerator_resource=customized_accelerator_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Delete the customized accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _validate_initial( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.CustomizedAcceleratorValidateResult]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.CustomizedAcceleratorValidateResult]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(properties, (IOBase, bytes)): - _content = properties - else: - _json = self._serialize.body(properties, "CustomizedAcceleratorProperties") - - _request = build_validate_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: _models.CustomizedAcceleratorProperties, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProperties - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Required. - :type properties: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_validate( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - customized_accelerator_name: str, - properties: Union[_models.CustomizedAcceleratorProperties, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.CustomizedAcceleratorValidateResult]: - """Check the customized accelerator are valid. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param customized_accelerator_name: The name of the customized accelerator. Required. - :type customized_accelerator_name: str - :param properties: Customized accelerator properties to be validated. Is either a - CustomizedAcceleratorProperties type or a IO[bytes] type. Required. - :type properties: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorProperties or IO[bytes] - :return: An instance of LROPoller that returns either CustomizedAcceleratorValidateResult or - the result of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomizedAcceleratorValidateResult] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomizedAcceleratorValidateResult] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._validate_initial( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - customized_accelerator_name=customized_accelerator_name, - properties=properties, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("CustomizedAcceleratorValidateResult", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.CustomizedAcceleratorValidateResult].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.CustomizedAcceleratorValidateResult]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_deployments_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_deployments_operations.py deleted file mode 100644 index cdf6072e5a9..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_deployments_operations.py +++ /dev/null @@ -1,2946 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, - service_name: str, - app_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_for_cluster_request( - resource_group_name: str, - service_name: str, - subscription_id: str, - *, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/deployments", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - if version is not None: - _params["version"] = [_SERIALIZER.query("version", q, "str") if q is not None else "" for q in version] - if expand is not None: - _params["$expand"] = _SERIALIZER.query("expand", expand, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/enableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_remote_debugging_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/disableRemoteDebugging", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_remote_debugging_config_request( # pylint: disable=name-too-long - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getRemoteDebuggingConfig", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_log_file_url_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/getLogFileUrl", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_heap_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateHeapDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_generate_thread_dump_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/generateThreadDump", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_jfr_request( - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/deployments/{deploymentName}/startJFR", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "appName": _SERIALIZER.url("app_name", app_name, "str"), - "deploymentName": _SERIALIZER.url("deployment_name", deployment_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class DeploymentsOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`deployments` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.DeploymentResource: - """Get a Deployment and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: DeploymentResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Create a new Deployment or update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the create or update operation. Is either a - DeploymentResource type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Operation to delete a Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> _models.DeploymentResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(deployment_resource, (IOBase, bytes)): - _content = deployment_resource - else: - _json = self._serialize.body(deployment_resource, "DeploymentResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("DeploymentResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: _models.DeploymentResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Required. - :type deployment_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - deployment_resource: Union[_models.DeploymentResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DeploymentResource]: - """Operation to update an exiting Deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param deployment_resource: Parameters for the update operation. Is either a DeploymentResource - type or a IO[bytes] type. Required. - :type deployment_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource or IO[bytes] - :return: An instance of LROPoller that returns either DeploymentResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DeploymentResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - deployment_resource=deployment_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DeploymentResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DeploymentResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DeploymentResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list( - self, - resource_group_name: str, - service_name: str, - app_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """Handles requests to list all resources in an App. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_for_cluster( - self, - resource_group_name: str, - service_name: str, - version: Optional[List[str]] = None, - expand: Optional[str] = None, - **kwargs: Any - ) -> Iterable["_models.DeploymentResource"]: - """List deployments for a certain service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param version: Version of the deployments to be listed. Default value is None. - :type version: list[str] - :param expand: The expand expression to apply on the operation. Default value is None. - :type expand: str - :return: An iterator like instance of either DeploymentResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.DeploymentResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DeploymentResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_for_cluster_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - version=version, - expand=expand, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DeploymentResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Start the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Stop the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the deployment. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_remote_debugging_initial( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(remote_debugging_payload, (IOBase, bytes)): - _content = remote_debugging_payload - else: - if remote_debugging_payload is not None: - _json = self._serialize.body(remote_debugging_payload, "RemoteDebuggingPayload") - else: - _json = None - - _request = build_enable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[_models.RemoteDebuggingPayload] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebuggingPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[IO[bytes]] = None, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Default value is None. - :type remote_debugging_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_remote_debugging( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - remote_debugging_payload: Optional[Union[_models.RemoteDebuggingPayload, IO[bytes]]] = None, - **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Enable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param remote_debugging_payload: Parameters for enable remote debugging. Is either a - RemoteDebuggingPayload type or a IO[bytes] type. Default value is None. - :type remote_debugging_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebuggingPayload or IO[bytes] - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - remote_debugging_payload=remote_debugging_payload, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _disable_remote_debugging_initial( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_disable_remote_debugging_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_disable_remote_debugging( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> LROPoller[_models.RemoteDebugging]: - """Disable remote debugging. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: An instance of LROPoller that returns either RemoteDebugging or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_remote_debugging_initial( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.RemoteDebugging].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.RemoteDebugging]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def get_remote_debugging_config( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> _models.RemoteDebugging: - """Get remote debugging config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: RemoteDebugging or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.RemoteDebugging - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.RemoteDebugging] = kwargs.pop("cls", None) - - _request = build_get_remote_debugging_config_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("RemoteDebugging", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get_log_file_url( - self, resource_group_name: str, service_name: str, app_name: str, deployment_name: str, **kwargs: Any - ) -> Optional[_models.LogFileUrlResponse]: - """Get deployment log file URL. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :return: LogFileUrlResponse or None or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.LogFileUrlResponse or None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[Optional[_models.LogFileUrlResponse]] = kwargs.pop("cls", None) - - _request = build_get_log_file_url_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize("LogFileUrlResponse", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _generate_heap_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_heap_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_heap_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Heap Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_heap_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _generate_thread_dump_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_generate_thread_dump_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_generate_thread_dump( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Generate Thread Dump. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._generate_thread_dump_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_jfr_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(diagnostic_parameters, (IOBase, bytes)): - _content = diagnostic_parameters - else: - _json = self._serialize.body(diagnostic_parameters, "DiagnosticParameters") - - _request = build_start_jfr_request( - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: _models.DiagnosticParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Required. - :type diagnostic_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_start_jfr( - self, - resource_group_name: str, - service_name: str, - app_name: str, - deployment_name: str, - diagnostic_parameters: Union[_models.DiagnosticParameters, IO[bytes]], - **kwargs: Any - ) -> LROPoller[None]: - """Start JFR. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param app_name: The name of the App resource. Required. - :type app_name: str - :param deployment_name: The name of the Deployment resource. Required. - :type deployment_name: str - :param diagnostic_parameters: Parameters for the diagnostic operation. Is either a - DiagnosticParameters type or a IO[bytes] type. Required. - :type diagnostic_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DiagnosticParameters or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_jfr_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - app_name=app_name, - deployment_name=deployment_name, - diagnostic_parameters=diagnostic_parameters, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_dev_tool_portals_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_dev_tool_portals_operations.py deleted file mode 100644 index 4d13d675a8e..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_dev_tool_portals_operations.py +++ /dev/null @@ -1,666 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/devToolPortals", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url( - "dev_tool_portal_name", dev_tool_portal_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url( - "dev_tool_portal_name", dev_tool_portal_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, dev_tool_portal_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "devToolPortalName": _SERIALIZER.url( - "dev_tool_portal_name", dev_tool_portal_name, "str", pattern=r"^[a-z][a-z0-9]*$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -class DevToolPortalsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`dev_tool_portals` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.DevToolPortalResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("DevToolPortalResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> _models.DevToolPortalResource: - """Get the Application Live and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: DevToolPortalResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> _models.DevToolPortalResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(dev_tool_portal_resource, (IOBase, bytes)): - _content = dev_tool_portal_resource - else: - _json = self._serialize.body(dev_tool_portal_resource, "DevToolPortalResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: _models.DevToolPortalResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Required. - :type dev_tool_portal_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - dev_tool_portal_name: str, - dev_tool_portal_resource: Union[_models.DevToolPortalResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.DevToolPortalResource]: - """Create the default Dev Tool Portal or update the existing Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :param dev_tool_portal_resource: Parameters for the create or update operation. Is either a - DevToolPortalResource type or a IO[bytes] type. Required. - :type dev_tool_portal_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource or IO[bytes] - :return: An instance of LROPoller that returns either DevToolPortalResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.DevToolPortalResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.DevToolPortalResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - dev_tool_portal_resource=dev_tool_portal_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("DevToolPortalResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.DevToolPortalResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.DevToolPortalResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, dev_tool_portal_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Dev Tool Portal. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param dev_tool_portal_name: The name of Dev Tool Portal. Required. - :type dev_tool_portal_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - dev_tool_portal_name=dev_tool_portal_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_eureka_servers_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_eureka_servers_operations.py deleted file mode 100644 index 0112495ce47..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_eureka_servers_operations.py +++ /dev/null @@ -1,712 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/eurekaServers/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class EurekaServersOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`eureka_servers` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.EurekaServerResourceCollection: - """List the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResourceCollection or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResourceCollection - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.EurekaServerResourceCollection] = kwargs.pop("cls", None) - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResourceCollection", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.EurekaServerResource: - """Get the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: EurekaServerResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 201: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> _models.EurekaServerResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(eureka_server_resource, (IOBase, bytes)): - _content = eureka_server_resource - else: - _json = self._serialize.body(eureka_server_resource, "EurekaServerResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: _models.EurekaServerResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Required. - :type eureka_server_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - eureka_server_resource: Union[_models.EurekaServerResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.EurekaServerResource]: - """Update the eureka server settings. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param eureka_server_resource: Parameters for the update operation. Is either a - EurekaServerResource type or a IO[bytes] type. Required. - :type eureka_server_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource or IO[bytes] - :return: An instance of LROPoller that returns either EurekaServerResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.EurekaServerResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.EurekaServerResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - eureka_server_resource=eureka_server_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("EurekaServerResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.EurekaServerResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.EurekaServerResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_custom_domains_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_custom_domains_operations.py deleted file mode 100644 index 4bbd5dce114..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_custom_domains_operations.py +++ /dev/null @@ -1,701 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "domainName": _SERIALIZER.url("domain_name", domain_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayCustomDomainsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_custom_domains` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - """Get the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: GatewayCustomDomainResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayCustomDomainResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_custom_domain_resource, (IOBase, bytes)): - _content = gateway_custom_domain_resource - else: - _json = self._serialize.body(gateway_custom_domain_resource, "GatewayCustomDomainResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: _models.GatewayCustomDomainResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Required. - :type gateway_custom_domain_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - domain_name: str, - gateway_custom_domain_resource: Union[_models.GatewayCustomDomainResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayCustomDomainResource]: - """Create or update the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :param gateway_custom_domain_resource: The gateway custom domain resource for the create or - update operation. Is either a GatewayCustomDomainResource type or a IO[bytes] type. Required. - :type gateway_custom_domain_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayCustomDomainResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayCustomDomainResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - gateway_custom_domain_resource=gateway_custom_domain_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayCustomDomainResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayCustomDomainResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, domain_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway custom domain. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param domain_name: The name of the Spring Cloud Gateway custom domain. Required. - :type domain_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - domain_name=domain_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayCustomDomainResource"]: - """Handle requests to list all Spring Cloud Gateway custom domains. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayCustomDomainResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayCustomDomainResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayCustomDomainResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayCustomDomainResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_route_configs_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_route_configs_operations.py deleted file mode 100644 index d4ede3e21d1..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateway_route_configs_operations.py +++ /dev/null @@ -1,704 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - "routeConfigName": _SERIALIZER.url("route_config_name", route_config_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewayRouteConfigsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateway_route_configs` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - """Get the Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: GatewayRouteConfigResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayRouteConfigResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_route_config_resource, (IOBase, bytes)): - _content = gateway_route_config_resource - else: - _json = self._serialize.body(gateway_route_config_resource, "GatewayRouteConfigResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: _models.GatewayRouteConfigResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Required. - :type gateway_route_config_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - route_config_name: str, - gateway_route_config_resource: Union[_models.GatewayRouteConfigResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayRouteConfigResource]: - """Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud - Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :param gateway_route_config_resource: The Spring Cloud Gateway route config for the create or - update operation. Is either a GatewayRouteConfigResource type or a IO[bytes] type. Required. - :type gateway_route_config_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource or IO[bytes] - :return: An instance of LROPoller that returns either GatewayRouteConfigResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayRouteConfigResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - gateway_route_config_resource=gateway_route_config_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayRouteConfigResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayRouteConfigResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, route_config_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the Spring Cloud Gateway route config. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param route_config_name: The name of the Spring Cloud Gateway route config. Required. - :type route_config_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - route_config_name=route_config_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Iterable["_models.GatewayRouteConfigResource"]: - """Handle requests to list all Spring Cloud Gateway route configs. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An iterator like instance of either GatewayRouteConfigResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayRouteConfigResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayRouteConfigResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayRouteConfigResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateways_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateways_operations.py deleted file mode 100644 index e742ee1581b..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_gateways_operations.py +++ /dev/null @@ -1,1319 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_capacity_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_env_secrets_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/listEnvSecrets", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_restart_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/restart", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_validate_domain_request( - resource_group_name: str, service_name: str, gateway_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "gatewayName": _SERIALIZER.url("gateway_name", gateway_name, "str", pattern=r"^[a-z][a-z0-9]*$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class GatewaysOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`gateways` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> _models.GatewayResource: - """Get the Spring Cloud Gateway and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: GatewayResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> _models.GatewayResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_resource, (IOBase, bytes)): - _content = gateway_resource - else: - _json = self._serialize.body(gateway_resource, "GatewayResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: _models.GatewayResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Required. - :type gateway_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_resource: Union[_models.GatewayResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_resource: The gateway for the create or update operation. Is either a - GatewayResource type or a IO[bytes] type. Required. - :type gateway_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource or - IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_resource=gateway_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_capacity_initial( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> Optional[_models.GatewayResource]: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[Optional[_models.GatewayResource]] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(gateway_capacity_resource, (IOBase, bytes)): - _content = gateway_capacity_resource - else: - _json = self._serialize.body(gateway_capacity_resource, "SkuObject") - - _request = build_update_capacity_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - response_headers = {} - if response.status_code == 200: - deserialized = self._deserialize("GatewayResource", pipeline_response) - - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, deserialized, response_headers) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: _models.SkuObject, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuObject - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Required. - :type gateway_capacity_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_capacity( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - gateway_capacity_resource: Union[_models.SkuObject, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.GatewayResource]: - """Operation to update an exiting Spring Cloud Gateway capacity. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param gateway_capacity_resource: The gateway capacity for the update operation. Is either a - SkuObject type or a IO[bytes] type. Required. - :type gateway_capacity_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.SkuObject - or IO[bytes] - :return: An instance of LROPoller that returns either GatewayResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.GatewayResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_capacity_initial( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - gateway_capacity_resource=gateway_capacity_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("GatewayResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.GatewayResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.GatewayResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_env_secrets( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> Dict[str, str]: - """List sensitive environment variables of Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: dict mapping str to str or the result of cls(response) - :rtype: dict[str, str] - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[Dict[str, str]] = kwargs.pop("cls", None) - - _request = build_list_env_secrets_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("{str}", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _restart_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_restart_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_restart( - self, resource_group_name: str, service_name: str, gateway_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Restart the Spring Cloud Gateway. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._restart_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.GatewayResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either GatewayResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.GatewayResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GatewayResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("GatewayResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: _models.CustomDomainValidatePayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Required. - :type validate_payload: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def validate_domain( - self, - resource_group_name: str, - service_name: str, - gateway_name: str, - validate_payload: Union[_models.CustomDomainValidatePayload, IO[bytes]], - **kwargs: Any - ) -> _models.CustomDomainValidateResult: - """Check the domains are valid as well as not in use. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param gateway_name: The name of Spring Cloud Gateway. Required. - :type gateway_name: str - :param validate_payload: Custom domain payload to be validated. Is either a - CustomDomainValidatePayload type or a IO[bytes] type. Required. - :type validate_payload: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidatePayload or IO[bytes] - :return: CustomDomainValidateResult or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.CustomDomainValidateResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.CustomDomainValidateResult] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(validate_payload, (IOBase, bytes)): - _content = validate_payload - else: - _json = self._serialize.body(validate_payload, "CustomDomainValidatePayload") - - _request = build_validate_domain_request( - resource_group_name=resource_group_name, - service_name=service_name, - gateway_name=gateway_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("CustomDomainValidateResult", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_monitoring_settings_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_monitoring_settings_operations.py deleted file mode 100644 index e5b9af09af7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_monitoring_settings_operations.py +++ /dev/null @@ -1,613 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_put_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_patch_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/monitoringSettings/default", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -class MonitoringSettingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`monitoring_settings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.MonitoringSettingResource: - """Get the Monitoring Setting and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: MonitoringSettingResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _update_put_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_put_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_put( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_put_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _update_patch_initial( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> _models.MonitoringSettingResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(monitoring_setting_resource, (IOBase, bytes)): - _content = monitoring_setting_resource - else: - _json = self._serialize.body(monitoring_setting_resource, "MonitoringSettingResource") - - _request = build_update_patch_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: _models.MonitoringSettingResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Required. - :type monitoring_setting_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update_patch( - self, - resource_group_name: str, - service_name: str, - monitoring_setting_resource: Union[_models.MonitoringSettingResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.MonitoringSettingResource]: - """Update the Monitoring Setting. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param monitoring_setting_resource: Parameters for the update operation. Is either a - MonitoringSettingResource type or a IO[bytes] type. Required. - :type monitoring_setting_resource: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource or IO[bytes] - :return: An instance of LROPoller that returns either MonitoringSettingResource or the result - of cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.MonitoringSettingResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.MonitoringSettingResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_patch_initial( - resource_group_name=resource_group_name, - service_name=service_name, - monitoring_setting_resource=monitoring_setting_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("MonitoringSettingResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.MonitoringSettingResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.MonitoringSettingResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_operations.py deleted file mode 100644 index 7b82ff03ca2..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_operations.py +++ /dev/null @@ -1,154 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/operations") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class Operations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`operations` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OperationDetail"]: - """Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either OperationDetail or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.OperationDetail] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AvailableOperations] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("AvailableOperations", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_patch.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_patch.py deleted file mode 100644 index f7dd3251033..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_patch.py +++ /dev/null @@ -1,20 +0,0 @@ -# ------------------------------------ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT License. -# ------------------------------------ -"""Customize generated code here. - -Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize -""" -from typing import List - -__all__: List[str] = [] # Add all objects you want publicly available to users at this package level - - -def patch_sdk(): - """Do not remove from this file. - - `patch_sdk` is a last resort escape hatch that allows you to do customizations - you can't accomplish using the techniques described in - https://aka.ms/azsdk/python/dpcodegen/python/customize - """ diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_predefined_accelerators_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_predefined_accelerators_operations.py deleted file mode 100644 index 0bfc95ec22d..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_predefined_accelerators_operations.py +++ /dev/null @@ -1,626 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request( - resource_group_name: str, service_name: str, application_accelerator_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_get_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "predefinedAcceleratorName": _SERIALIZER.url( - "predefined_accelerator_name", predefined_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/disable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "predefinedAcceleratorName": _SERIALIZER.url( - "predefined_accelerator_name", predefined_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_request( - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - subscription_id: str, - **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/applicationAccelerators/{applicationAcceleratorName}/predefinedAccelerators/{predefinedAcceleratorName}/enable", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "applicationAcceleratorName": _SERIALIZER.url( - "application_accelerator_name", application_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - "predefinedAcceleratorName": _SERIALIZER.url( - "predefined_accelerator_name", predefined_accelerator_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$" - ), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -class PredefinedAcceleratorsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`predefined_accelerators` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, application_accelerator_name: str, **kwargs: Any - ) -> Iterable["_models.PredefinedAcceleratorResource"]: - """Handle requests to list all predefined accelerators. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :return: An iterator like instance of either PredefinedAcceleratorResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("PredefinedAcceleratorResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def get( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> _models.PredefinedAcceleratorResource: - """Get the predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: PredefinedAcceleratorResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.PredefinedAcceleratorResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.PredefinedAcceleratorResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("PredefinedAcceleratorResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _disable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_disable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Disable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _enable_initial( # pylint: disable=inconsistent-return-statements - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_enable_request( - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_enable( - self, - resource_group_name: str, - service_name: str, - application_accelerator_name: str, - predefined_accelerator_name: str, - **kwargs: Any - ) -> LROPoller[None]: - """Enable predefined accelerator. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param application_accelerator_name: The name of the application accelerator. Required. - :type application_accelerator_name: str - :param predefined_accelerator_name: The name of the predefined accelerator. Required. - :type predefined_accelerator_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - application_accelerator_name=application_accelerator_name, - predefined_accelerator_name=predefined_accelerator_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_runtime_versions_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_runtime_versions_operations.py deleted file mode 100644 index 1cdd6180643..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_runtime_versions_operations.py +++ /dev/null @@ -1,124 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Optional, TypeVar - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_runtime_versions_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.AppPlatform/runtimeVersions") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class RuntimeVersionsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`runtime_versions` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list_runtime_versions(self, **kwargs: Any) -> _models.AvailableRuntimeVersions: - """Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - - :return: AvailableRuntimeVersions or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.AvailableRuntimeVersions - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.AvailableRuntimeVersions] = kwargs.pop("cls", None) - - _request = build_list_runtime_versions_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("AvailableRuntimeVersions", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_service_registries_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_service_registries_operations.py deleted file mode 100644 index f5ad94d86c7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_service_registries_operations.py +++ /dev/null @@ -1,558 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, service_registry_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries/{serviceRegistryName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "serviceRegistryName": _SERIALIZER.url("service_registry_name", service_registry_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/serviceRegistries", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServiceRegistriesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`service_registries` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - """Get the Service Registry and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: ServiceRegistryResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> _models.ServiceRegistryResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def begin_create_or_update( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[_models.ServiceRegistryResource]: - """Create the default Service Registry or update the existing Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceRegistryResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceRegistryResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, service_registry_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Disable the default Service Registry. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param service_registry_name: The name of Service Registry. Required. - :type service_registry_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - service_registry_name=service_registry_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.ServiceRegistryResource"]: - """Handles requests to list all resources in a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either ServiceRegistryResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceRegistryResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceRegistryResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceRegistryResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_services_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_services_operations.py deleted file mode 100644 index c3ff76ffd02..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_services_operations.py +++ /dev/null @@ -1,2690 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_update_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_test_keys_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listTestKeys", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_regenerate_test_key_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/regenerateTestKey", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_test_endpoint_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableTestEndpoint", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_stop_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_start_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_flush_vnet_dns_setting_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/flushVirtualNetworkDnsSettings", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_apm_types_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedApmTypes", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_globally_enabled_apms_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/listGloballyEnabledApms", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_enable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/enableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_disable_apm_globally_request( - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/disableApmGlobally", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_check_name_availability_request(location: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "location": _SERIALIZER.url("location", location, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_by_subscription_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/Spring") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_supported_server_versions_request( # pylint: disable=name-too-long - resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/supportedServerVersions", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class ServicesOperations: # pylint: disable=too-many-public-methods - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`services` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.ServiceResource: - """Get a Service and its properties. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: ServiceResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Create a new Service or update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the create or update operation. Is either a ServiceResource - type or a IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Operation to delete a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _update_initial( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> _models.ServiceResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(resource, (IOBase, bytes)): - _content = resource - else: - _json = self._serialize.body(resource, "ServiceResource") - - _request = build_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("ServiceResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: _models.ServiceResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Required. - :type resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_update( - self, - resource_group_name: str, - service_name: str, - resource: Union[_models.ServiceResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.ServiceResource]: - """Operation to update an exiting Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param resource: Parameters for the update operation. Is either a ServiceResource type or a - IO[bytes] type. Required. - :type resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource or IO[bytes] - :return: An instance of LROPoller that returns either ServiceResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.ServiceResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - resource=resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("ServiceResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.ServiceResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.ServiceResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - @distributed_trace - def list_test_keys(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """List test keys for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_list_test_keys_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: _models.RegenerateTestKeyRequestPayload, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RegenerateTestKeyRequestPayload - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Required. - :type regenerate_test_key_request: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def regenerate_test_key( - self, - resource_group_name: str, - service_name: str, - regenerate_test_key_request: Union[_models.RegenerateTestKeyRequestPayload, IO[bytes]], - **kwargs: Any - ) -> _models.TestKeys: - """Regenerate a test key for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param regenerate_test_key_request: Parameters for the operation. Is either a - RegenerateTestKeyRequestPayload type or a IO[bytes] type. Required. - :type regenerate_test_key_request: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.RegenerateTestKeyRequestPayload or IO[bytes] - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(regenerate_test_key_request, (IOBase, bytes)): - _content = regenerate_test_key_request - else: - _json = self._serialize.body(regenerate_test_key_request, "RegenerateTestKeyRequestPayload") - - _request = build_regenerate_test_key_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def disable_test_endpoint( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - """Disable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: None or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_disable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def enable_test_endpoint(self, resource_group_name: str, service_name: str, **kwargs: Any) -> _models.TestKeys: - """Enable test endpoint functionality for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: TestKeys or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.TestKeys - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.TestKeys] = kwargs.pop("cls", None) - - _request = build_enable_test_endpoint_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("TestKeys", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _stop_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_stop_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_stop(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Stop a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._stop_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _start_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 304: ResourceNotModifiedError, - 404: lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - 409: lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_start_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_start(self, resource_group_name: str, service_name: str, **kwargs: Any) -> LROPoller[None]: - """Start a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._start_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _flush_vnet_dns_setting_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_flush_vnet_dns_setting_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @distributed_trace - def begin_flush_vnet_dns_setting( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Flush Virtual Network DNS settings for a VNET injected Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._flush_vnet_dns_setting_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list_supported_apm_types( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedApmType"]: - """List supported APM types for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedApmType or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedApmType] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedApmTypes] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_apm_types_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedApmTypes", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_globally_enabled_apms( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> _models.GloballyEnabledApms: - """List globally enabled APMs for a Service. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: GloballyEnabledApms or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.GloballyEnabledApms - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.GloballyEnabledApms] = kwargs.pop("cls", None) - - _request = build_list_globally_enabled_apms_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("GloballyEnabledApms", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _enable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_enable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_enable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_enable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Enable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the enable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._enable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - def _disable_apm_globally_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(apm, (IOBase, bytes)): - _content = apm - else: - _json = self._serialize.body(apm, "ApmReference") - - _request = build_disable_apm_globally_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - response_headers = {} - if response.status_code == 202: - response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) - - if cls: - return cls(pipeline_response, None, response_headers) # type: ignore - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: _models.ApmReference, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_disable_apm_globally( - self, - resource_group_name: str, - service_name: str, - apm: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Required. - :type apm: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_disable_apm_globally( - self, resource_group_name: str, service_name: str, apm: Union[_models.ApmReference, IO[bytes]], **kwargs: Any - ) -> LROPoller[None]: - """Disable an APM globally. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param apm: The target APM for the disable operation. Is either a ApmReference type or a - IO[bytes] type. Required. - :type apm: ~azure.mgmt.appplatform.v2024_01_01_preview.models.ApmReference or IO[bytes] - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._disable_apm_globally_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - apm=apm, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast( - PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "azure-async-operation"}, **kwargs) - ) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: _models.NameAvailabilityParameters, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailabilityParameters - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def check_name_availability( - self, - location: str, - availability_parameters: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Required. - :type availability_parameters: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def check_name_availability( - self, - location: str, - availability_parameters: Union[_models.NameAvailabilityParameters, IO[bytes]], - **kwargs: Any - ) -> _models.NameAvailability: - """Checks that the resource name is valid and is not already in use. - - :param location: the region. Required. - :type location: str - :param availability_parameters: Parameters supplied to the operation. Is either a - NameAvailabilityParameters type or a IO[bytes] type. Required. - :type availability_parameters: - ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailabilityParameters or IO[bytes] - :return: NameAvailability or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.NameAvailability - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(availability_parameters, (IOBase, bytes)): - _content = availability_parameters - else: - _json = self._serialize.body(availability_parameters, "NameAvailabilityParameters") - - _request = build_check_name_availability_request( - location=location, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("NameAvailability", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @distributed_trace - def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a subscription. - - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_by_subscription_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.ServiceResource"]: - """Handles requests to list all resources in a resource group. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :return: An iterator like instance of either ServiceResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ServiceResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ServiceResourceList] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ServiceResourceList", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) - - @distributed_trace - def list_supported_server_versions( - self, resource_group_name: str, service_name: str, **kwargs: Any - ) -> Iterable["_models.SupportedServerVersion"]: - """Lists all of the available server versions supported by Microsoft.AppPlatform provider. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either SupportedServerVersion or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.SupportedServerVersion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.SupportedServerVersions] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_supported_server_versions_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("SupportedServerVersions", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_skus_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_skus_operations.py deleted file mode 100644 index 0ecacb76e17..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_skus_operations.py +++ /dev/null @@ -1,160 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus") - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class SkusOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`skus` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.ResourceSku"]: - """Lists all of the available skus of the Microsoft.AppPlatform provider. - - :return: An iterator like instance of either ResourceSku or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.ResourceSku] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.ResourceSkuCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("ResourceSkuCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_storages_operations.py b/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_storages_operations.py deleted file mode 100644 index 4dc210f92f7..00000000000 --- a/src/spring/azext_spring/vendored_sdks/appplatform/v2024_01_01_preview/operations/_storages_operations.py +++ /dev/null @@ -1,655 +0,0 @@ -# pylint: disable=too-many-lines,too-many-statements -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from io import IOBase -from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse -from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.core.rest import HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat -from azure.mgmt.core.polling.arm_polling import ARMPolling - -from .. import models as _models -from ..._serialization import Serializer -from .._vendor import _convert_request - -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_get_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_create_or_update_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - if content_type is not None: - _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_delete_request( - resource_group_name: str, service_name: str, storage_name: str, subscription_id: str, **kwargs: Any -) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - "storageName": _SERIALIZER.url("storage_name", storage_name, "str"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) - - -def build_list_request(resource_group_name: str, service_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-01-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop( - "template_url", - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - ) # pylint: disable=line-too-long - path_format_arguments = { - "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"), - "serviceName": _SERIALIZER.url("service_name", service_name, "str", pattern=r"^[a-z][a-z0-9-]*[a-z0-9]$"), - } - - _url: str = _url.format(**path_format_arguments) # type: ignore - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class StoragesOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.appplatform.v2024_01_01_preview.AppPlatformManagementClient`'s - :attr:`storages` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version") - - @distributed_trace - def get( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> _models.StorageResource: - """Get the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: StorageResource or the result of cls(response) - :rtype: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource - :raises ~azure.core.exceptions.HttpResponseError: - """ - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - _request = build_get_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - def _create_or_update_initial( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> _models.StorageResource: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - - content_type = content_type or "application/json" - _json = None - _content = None - if isinstance(storage_resource, (IOBase, bytes)): - _content = storage_resource - else: - _json = self._serialize.body(storage_resource, "StorageResource") - - _request = build_create_or_update_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - content_type=content_type, - json=_json, - content=_content, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize("StorageResource", pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - - return deserialized # type: ignore - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: _models.StorageResource, - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource - :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @overload - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: IO[bytes], - *, - content_type: str = "application/json", - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Required. - :type storage_resource: IO[bytes] - :keyword content_type: Body Parameter content-type. Content type parameter for binary body. - Default value is "application/json". - :paramtype content_type: str - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - - @distributed_trace - def begin_create_or_update( - self, - resource_group_name: str, - service_name: str, - storage_name: str, - storage_resource: Union[_models.StorageResource, IO[bytes]], - **kwargs: Any - ) -> LROPoller[_models.StorageResource]: - """Create or update storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :param storage_resource: Parameters for the create or update operation. Is either a - StorageResource type or a IO[bytes] type. Required. - :type storage_resource: ~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource or - IO[bytes] - :return: An instance of LROPoller that returns either StorageResource or the result of - cls(response) - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.StorageResource] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - storage_resource=storage_resource, - api_version=api_version, - content_type=content_type, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize("StorageResource", pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[_models.StorageResource].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[_models.StorageResource]( - self._client, raw_result, get_long_running_output, polling_method # type: ignore - ) - - def _delete_initial( # pylint: disable=inconsistent-return-statements - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> None: - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - - _request = build_delete_request( - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - - response = pipeline_response.http_response - - if response.status_code not in [200, 202, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - @distributed_trace - def begin_delete( - self, resource_group_name: str, service_name: str, storage_name: str, **kwargs: Any - ) -> LROPoller[None]: - """Delete the storage resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :param storage_name: The name of the storage resource. Required. - :type storage_name: str - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[None] = kwargs.pop("cls", None) - polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) - lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) - cont_token: Optional[str] = kwargs.pop("continuation_token", None) - if cont_token is None: - raw_result = self._delete_initial( # type: ignore - resource_group_name=resource_group_name, - service_name=service_name, - storage_name=storage_name, - api_version=api_version, - cls=lambda x, y, z: x, - headers=_headers, - params=_params, - **kwargs - ) - kwargs.pop("error_map", None) - - def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements - if cls: - return cls(pipeline_response, None, {}) # type: ignore - - if polling is True: - polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) - elif polling is False: - polling_method = cast(PollingMethod, NoPolling()) - else: - polling_method = polling - if cont_token: - return LROPoller[None].from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output, - ) - return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - @distributed_trace - def list(self, resource_group_name: str, service_name: str, **kwargs: Any) -> Iterable["_models.StorageResource"]: - """List all the storages of one Azure Spring Apps resource. - - :param resource_group_name: The name of the resource group that contains the resource. You can - obtain this value from the Azure Resource Manager API or the portal. Required. - :type resource_group_name: str - :param service_name: The name of the Service resource. Required. - :type service_name: str - :return: An iterator like instance of either StorageResource or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.appplatform.v2024_01_01_preview.models.StorageResource] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop( - "api_version", _params.pop("api-version", self._api_version or "2024-01-01-preview") - ) - cls: ClsType[_models.StorageResourceCollection] = kwargs.pop("cls", None) - - error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - resource_group_name=resource_group_name, - service_name=service_name, - subscription_id=self._config.subscription_id, - api_version=api_version, - headers=_headers, - params=_params, - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request = _convert_request(_request) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("StorageResourceCollection", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data)